Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.FormColors


    }
  }

   private void onSashPaint(Event e) {
        Sash sash = (Sash)e.widget;
        FormColors colors = managedForm.getToolkit().getColors();
        boolean vertical = (sash.getStyle() & SWT.VERTICAL)!=0;
        GC gc = e.gc;
        Boolean hover = (Boolean)sash.getData("hover"); //$NON-NLS-1$
        gc.setBackground(colors.getColor(IFormColors.TB_BG));
        gc.setForeground(colors.getColor(IFormColors.TB_BORDER));
        Point size = sash.getSize();
        if (vertical) {
            if (hover!=null)
                gc.fillRectangle(0, 0, size.x, size.y);
            //else
View Full Code Here


    super.start(context);
  }
 
  public FormToolkit getDialogsFormToolkit() {
    if (fDialogsFormToolkit == null) {
      FormColors colors= new FormColors(Display.getCurrent());
      colors.setBackground(null);
      colors.setForeground(null)
      fDialogsFormToolkit= new FormToolkit(colors);
    }
    return fDialogsFormToolkit;
  }
View Full Code Here

    }
  }

   private void onSashPaint(Event e) {
        Sash sash = (Sash)e.widget;
        FormColors colors = managedForm.getToolkit().getColors();
        boolean vertical = (sash.getStyle() & SWT.VERTICAL)!=0;
        GC gc = e.gc;
        Boolean hover = (Boolean)sash.getData("hover"); //$NON-NLS-1$
        gc.setBackground(colors.getColor(IFormColors.TB_BG));
        gc.setForeground(colors.getColor(IFormColors.TB_BORDER));
        Point size = sash.getSize();
        if (vertical) {
            if (hover!=null)
                gc.fillRectangle(0, 0, size.x, size.y);
            //else
View Full Code Here

   * @param display
   * @return
   */
  public FormColors getFormColors(Display display) {
    if (null == formColors) {
      formColors = new FormColors(display);
      formColors.markShared(); // keep it from being disposed early
    }
    return formColors;
  }
View Full Code Here

  private FormText formText;

  private FormColors formColors;

  protected Control createDialogArea(Composite parent) {
    formColors = new FormColors(parent.getDisplay());
    parent.setLayout(new GridLayout());
    // Text field
    formText = new FormText(parent, SWT.MULTI | SWT.READ_ONLY);
    GridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);
    gd.horizontalIndent = INNER_BORDER;
View Full Code Here

     * @param display
     * @return
     */
    public FormColors getRuleBuilderFormColors(Display display) {
        if ( ruleBuilderFormColors == null ) {
            ruleBuilderFormColors = new FormColors( display );
            ruleBuilderFormColors.markShared();
        }
        return ruleBuilderFormColors;
    }
View Full Code Here

     * @param display
     * @return
     */
    public FormColors getRuleBuilderFormColors(Display display) {
        if ( ruleBuilderFormColors == null ) {
            ruleBuilderFormColors = new FormColors( display );
            ruleBuilderFormColors.markShared();
        }
        return ruleBuilderFormColors;
    }
View Full Code Here

  private FormText formText;

  private FormColors formColors;

  protected Control createDialogArea(Composite parent) {
    formColors = new FormColors(parent.getDisplay());
    parent.setLayout(new GridLayout());
    // Text field
    formText = new FormText(parent, SWT.MULTI | SWT.READ_ONLY);
    GridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);
    gd.horizontalIndent = INNER_BORDER;
View Full Code Here

    Composite body = managedForm.getForm().getBody();
    body.setLayout(new GridLayout(1, false)); // this is required !
    toolkit.paintBordersFor(body);

    ScrolledForm form = managedForm.getForm();
    FormColors colors = toolkit.getColors();
    colors.initializeSectionToolBarColors();
    Color gbg = colors.getColor(FormColors.TB_GBG);
    Color bg = colors.getBackground();
    form.getForm().setTextBackground(new Color[] { bg, gbg }, new int[] { 100 }, true);
    // form.getForm().setSeparatorVisible(true);

    createAEConfigSection(parentSashForm, toolkit);
View Full Code Here

    form = managedForm.getForm();
    FormToolkit toolkit = managedForm.getToolkit();
    form.setText(Messages.DDE_OverviewPage_Title);

    ScrolledForm form = managedForm.getForm();
    FormColors colors = toolkit.getColors();
    colors.initializeSectionToolBarColors();
    Color gbg = colors.getColor(FormColors.TB_GBG);
    Color bg = colors.getBackground();
    form.getForm().setTextBackground(new Color[] { bg, gbg }, new int[] { 100 }, true);

    fillBody(managedForm, toolkit);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.FormColors

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.