Search in sources :

Example 1 with FormColors

use of org.eclipse.ui.forms.FormColors in project webtools.sourceediting by eclipse.

the class SSEUIPlugin method getDialogsFormToolkit.

public FormToolkit getDialogsFormToolkit() {
    if (fDialogsFormToolkit == null) {
        FormColors colors = new FormColors(Display.getCurrent());
        colors.setBackground(null);
        colors.setForeground(null);
        fDialogsFormToolkit = new FormToolkit(colors);
    }
    return fDialogsFormToolkit;
}
Also used : FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) FormColors(org.eclipse.ui.forms.FormColors)

Example 2 with FormColors

use of org.eclipse.ui.forms.FormColors in project eclipse-integration-commons by spring-projects.

the class UiUtil method getFormColors.

public static FormColors getFormColors(Display display) {
    if (formColors == null) {
        formColors = new FormColors(display);
        formColors.markShared();
    }
    return formColors;
}
Also used : FormColors(org.eclipse.ui.forms.FormColors)

Example 3 with FormColors

use of org.eclipse.ui.forms.FormColors in project erlide_eclipse by erlang.

the class ErlideUIPlugin method getDialogsFormToolkit.

public FormToolkit getDialogsFormToolkit() {
    if (fDialogsFormToolkit == null) {
        final FormColors colors = new FormColors(Display.getCurrent());
        colors.setBackground(null);
        colors.setForeground(null);
        fDialogsFormToolkit = new FormToolkit(colors);
    }
    return fDialogsFormToolkit;
}
Also used : FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) FormColors(org.eclipse.ui.forms.FormColors)

Example 4 with FormColors

use of org.eclipse.ui.forms.FormColors in project xtext-eclipse by eclipse.

the class ScrolledPageContent method getFormToolkit.

private static FormToolkit getFormToolkit() {
    if (toolkit == null) {
        FormColors colors = new FormColors(Display.getCurrent());
        colors.setBackground(null);
        colors.setForeground(null);
        toolkit = new FormToolkit(colors);
    }
    return toolkit;
}
Also used : FormToolkit(org.eclipse.ui.forms.widgets.FormToolkit) FormColors(org.eclipse.ui.forms.FormColors)

Example 5 with FormColors

use of org.eclipse.ui.forms.FormColors in project ITSTools by lip6.

the class ITSEditorPlugin method getFormColors.

/**
 * returns form colors of a display (singleton factory)
 *
 * @param display
 *            the display
 * @return the new formcolors or existing one
 */
public FormColors getFormColors(Display display) {
    if (formColors == null) {
        formColors = new FormColors(display);
        formColors.markShared();
    }
    return formColors;
}
Also used : FormColors(org.eclipse.ui.forms.FormColors)

Aggregations

FormColors (org.eclipse.ui.forms.FormColors)11 FormToolkit (org.eclipse.ui.forms.widgets.FormToolkit)5 GridData (org.eclipse.swt.layout.GridData)2 IFormColors (org.eclipse.ui.forms.IFormColors)2 CTabFolder (org.eclipse.swt.custom.CTabFolder)1 SashForm (org.eclipse.swt.custom.SashForm)1 ControlAdapter (org.eclipse.swt.events.ControlAdapter)1 ControlEvent (org.eclipse.swt.events.ControlEvent)1 Color (org.eclipse.swt.graphics.Color)1 Point (org.eclipse.swt.graphics.Point)1 GridLayout (org.eclipse.swt.layout.GridLayout)1 Composite (org.eclipse.swt.widgets.Composite)1 ManagedForm (org.eclipse.ui.forms.ManagedForm)1 PageBook (org.eclipse.ui.part.PageBook)1