@Override
 public void runWithEvent(Event event) {
   /*
    * Attempt to open the drop-down menu.
    */
   DropDownMenuAction.showMenu(this, event);
 }
  /*
   * Common constructor.
   */
  public VisualizationModeAction(final String propertyKey, IPropertyHost host) {
    super("Update mode", Action.AS_DROP_DOWN_MENU);

    this.menuCreator =
        DropDownMenuAction.getMenuFor(
            propertyKey, getText(), VisualizationMode.class.getEnumConstants(), host);

    setImageDescriptor(
        AdunaActivator.imageDescriptorFromPlugin(AdunaActivator.PLUGIN_ID, "icons/selection.gif"));
    setMenuCreator(menuCreator);
  }
Ejemplo n.º 3
0
 @Override
 public void runWithEvent(Event event) {
   DropDownMenuAction.showMenu(this, event);
 }