Runtime

org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance
Class ColorPalettePopup

java.lang.Object
  extended byorg.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ColorPalettePopup

public class ColorPalettePopup
extends java.lang.Object


Field Summary
static Point ICON_SIZE
          default color icon width
 
Constructor Summary
ColorPalettePopup(Shell parent, java.lang.String preferenceId, int rowHeight)
          Creates a PopupList above the specified shell.
 
Method Summary
 RGB getSelectedColor()
           
 RGB open(Point location)
          Launches the Popup List, waits for an item to be selected and then closes PopupList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_SIZE

public static final Point ICON_SIZE
default color icon width

Constructor Detail

ColorPalettePopup

public ColorPalettePopup(Shell parent,
                         java.lang.String preferenceId,
                         int rowHeight)
Creates a PopupList above the specified shell.

Parameters:
parent - a Shell control which will be the parent of the new instance (cannot be null)
Method Detail

open

public RGB open(Point location)
Launches the Popup List, waits for an item to be selected and then closes PopupList.

Returns:
the text of the selected item or null if no item is selected

getSelectedColor

public RGB getSelectedColor()

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.