Examples of ActionDescriptor


Examples of com.eclipsesource.tabris.internal.ui.ActionDescriptor

    return null;
  }

  private ActionDescriptor createDescriptor() {
    Action action = InstanceCreator.createInstance( actionType );
    return new ActionDescriptor( actionId, action, title, image, visible, enabled );
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.ActionDescriptor

   * @since 1.0
   */
  public UIConfiguration addActionConfiguration( ActionConfiguration configuration ) {
    whenNull( configuration ).throwIllegalArgument( "Action Configuration must not be null" );
    actionConfigurations.add( configuration );
    ActionDescriptor descriptor = configuration.getAdapter( ActionDescriptor.class );
    uiDescriptor.add( descriptor );
    UpdateUtil.fireUiUpdate( this );
    return this;
  }
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.ActionDescriptor

    return null;
  }

  private ActionDescriptor createDescriptor() {
    Action action = InstanceCreator.createInstance( actionType );
    return new ActionDescriptor( actionId, action )
               .setTitle( title )
               .setImage( image )
               .setVisible( visible )
               .setEnabled( enabled )
               .setPlacementPrority( placementPriority );
View Full Code Here

Examples of com.eclipsesource.tabris.internal.ui.ActionDescriptor

    proposalsMenu.setLocation( point );
    proposalsMenu.setVisible( true );
  }

  private void doSearch( String query ) {
    ActionDescriptor descriptor = getDescriptor();
    SearchAction action = ( SearchAction )descriptor.getAction();
    action.search( query );
    activateText( false );
    text.setText( "" );
    clearMenuItems();
  }
View Full Code Here

Examples of com.halware.nakedide.eclipse.ext.refact.ActionDescriptor

  public RenameActionRefactoring(
      IMethod method, String newMethodName,
      TextChangeManager textChangeManager) {
    super(textChangeManager);
    this.oldActionDescriptor = new ActionDescriptor(method);
    this.newActionDescriptor = new ActionDescriptor(method, newMethodName);
  }
View Full Code Here

Examples of com.mucommander.ui.action.ActionDescriptor

      int nbRows = allActionIds.size();
      data = new Object[nbRows][NUM_OF_COLUMNS];

            for(String actionId : allActionIds) {
        ActionDescriptor actionDescriptor = ActionProperties.getActionDescriptor(actionId);
       
        HashMap<Integer, Object> actionProperties = new HashMap<Integer, Object>();
       
        ImageIcon actionIcon = actionDescriptor.getIcon();
        if (actionIcon == null)
          actionIcon = transparentIcon;
        String actionLabel = actionDescriptor.getLabel();
       
        /* 0 -> action's icon & name pair */
        actionProperties.put(description, new Pair<ImageIcon, String>(IconManager.getPaddedIcon(actionIcon, new Insets(0, 4, 0, 4)), actionLabel));
        /* 1 -> action's accelerator */
        actionProperties.put(accelerator, ActionKeymap.getAccelerator(actionId));
        /* 2 -> action's alternate accelerator */
        actionProperties.put(alt_accelerator, ActionKeymap.getAlternateAccelerator(actionId));
        /* 3 -> action's description */
        actionProperties.put(tooltips, actionDescriptor.getDescription());
       
        db.put(actionId, actionProperties);
      }
    }
View Full Code Here

Examples of com.mucommander.ui.action.ActionDescriptor

      data = new Object[nbRows][NUM_OF_COLUMNS];
     
      for (int i = 0; i < nbRows; ++i) {
        String actionId = filteredActionIds.get(i);
        actionIds[i] = actionId;
        ActionDescriptor actionDescriptor = ActionProperties.getActionDescriptor(actionId);
       
        data[i][ACTION_DESCRIPTION_COLUMN_INDEX] = db.get(actionId).get(this.description);
       
        KeyStroke accelerator = (KeyStroke) db.get(actionId).get(this.accelerator);
        setAccelerator(accelerator, i);
       
        KeyStroke alternativeAccelerator = (KeyStroke) db.get(actionId).get(this.alt_accelerator);
        setAlternativeAccelerator(alternativeAccelerator, i);
       
        descriptions[i] = actionDescriptor.getDescription();
      }
     
      ShortcutsTable.this.clearSelection();
      ((DefaultTableModel) getModel()).setRowCount(data.length);
      ShortcutsTable.this.repaint();
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.extension.ActionDescriptor

  /**
   * This factory method returns a new ActionDescriptor for the
   * configuration element. It should be implemented by subclasses.
   */
  protected ActionDescriptor createActionDescriptor(IConfigurationElement element) {
    ActionDescriptor ad = null;
    try {
      ad = new ActionDescriptor(element);
      // these cases like "class not found" are handled
      // at lower level, so no action if formed. In that
      // case, we also don't want to form an action descriptor.
      if ((ad != null) && (ad.getAction() == null)) {
        ad = null;
      }
    }
    catch (Exception e) {
      Logger.traceException(EXTENDED_EDITOR, e);
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.extension.ActionDescriptor

      return true; // just cache the element - don't go into it
    }
    else if (tag.equals(TAG_ACTION)) {
      if (readingCache == null)
        readingCache = new ArrayList();
      ActionDescriptor ad = createActionDescriptor(element);
      if (ad != null)
        readingCache.add(ad);
      return true; // just cache the action - don't go into
    }
    else {
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.extension.ActionDescriptor

              System.out.println(getClass().getName() + "#contributeToMenu() added: " + menuElement.getAttribute(ATT_ID)); //$NON-NLS-1$
          }
        }
        else if (obj instanceof ActionDescriptor) {
          try {
            ActionDescriptor ad = (ActionDescriptor) obj;
            IMenuManager mm = contributeMenuAction(ad, menu, true, false);
            if (mm != null) {
              map.put(ad.getContributionItem(), mm);
              mm.addMenuListener(this);
              menus.add(mm);
              if (debugMenu)
                System.out.println(getClass().getName() + "#contributeToMenu() added: " + ad.getId()); //$NON-NLS-1$
            }
          }
          catch (Exception e) {
            Logger.logException("contributing to menu", e); //$NON-NLS-1$
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.