Package org.eclipse.ui.forms

Examples of org.eclipse.ui.forms.FormColors


    return getImageRegistry().get(key);
  }

  public FormColors getFormColors(Display display) {
    if (formColors == null) {
      formColors = new FormColors(display);
      formColors.markShared();
    }
    return formColors;
  }
View Full Code Here


    workspace = ResourcesPlugin.getWorkspace();
  }

  public FormColors getFormColors(final Display display) {
    if (formColors == null) {
      formColors = new FormColors(display);
      formColors.markShared();
    }
    return formColors;
  }
View Full Code Here

   * Clients that call this method must call {@link #dispose()} when they
   * are finished using the toolkit.
   *
   */
  public FormToolkit(Display display) {
    this(new FormColors(display));
  }
View Full Code Here

  public void createPartControl(Composite parent)
  {
    final Composite main = new Composite( parent, SWT.NONE );
    main.setLayout(new FormLayout());
    this.header = new FormHeading(main, SWT.NULL);
    this.formColors = new FormColors(parent.getDisplay());
           
    super.createPartControl(main);
    this.body = getGraphicalControl().getParent();
  }
View Full Code Here

    public Popup(Shell shell, Point position, int style) {
        super(shell);
       
        setShellStyle(style);
        this.position = position;
        this.colors = new FormColors(shell.getDisplay());
    }
View Full Code Here

     * @param toolkit
     * @param key
     * @return color. May return null.
     */
    public Color getColor(FormToolkit toolkit, String key) {
        FormColors colors = toolkit.getColors();
        Color color = colors.getColor(key);
        if (color == null) {
            RGB rgb = getRGB(key);
            if (rgb != null)
                color = colors.createColor(key, rgb);
        }
        return color;
    }
View Full Code Here

  public ScrolledPageContent(Composite parent, int style) {
    super(parent, style);

    setFont(parent.getFont());

    FormColors colors = new FormColors(parent.getDisplay());
    colors.setBackground(null);
    colors.setForeground(null);

    fToolkit = new FormToolkit(colors);

    setExpandHorizontal(true);
    setExpandVertical(true);
View Full Code Here

  /**
   * Creates a toolkit that is self-sufficient (will manage its own colors).
   *
   */
  public FormToolkit(Display display) {
    this(new FormColors(display));
  }
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

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.