private void updateFilterActions(IAction[] filterActions) { if (filterActions != null) { for (IAction curr : filterActions) { if (curr instanceof IUpdate) { ((IUpdate) curr).update(); } } } }
private void update(IAction action) { if (action instanceof IUpdate) ((IUpdate) action).update(); }
protected void updateAction(String actionId) { IAction action= fGlobalActions.get(actionId); if (action instanceof IUpdate) ((IUpdate) action).update(); }
private void updateAction(String actionId) { IAction action= fGlobalActions.get(actionId); if (action instanceof IUpdate) ((IUpdate) action).update(); }
private void updateUndoAction() { IAction action = (IAction) _fGlobalActions.get(ITextEditorActionConstants.UNDO); if (action instanceof IUpdate) { ((IUpdate) action).update(); } }
/** * Updates the global action with the given id * * @param actionId action definition id */ protected void updateAction(String actionId) { IAction action= (IAction)fGlobalActions.get(actionId); if (action instanceof IUpdate) { ((IUpdate) action).update(); } }
private void updateUndoAction() { IAction action= (IAction) fGlobalActions.get(ITextEditorActionConstants.UNDO); if (action instanceof IUpdate) ((IUpdate) action).update(); }
private void updateAction(String actionId) { IAction action= (IAction) fGlobalActions.get(actionId); if (action instanceof IUpdate) ((IUpdate) action).update(); }
protected void updateAction(String actionId) { IAction action= (IAction) fGlobalActions.get(actionId); if (action instanceof IUpdate) ((IUpdate) action).update(); }
protected void updateActions() { Iterator iterator = fSelectionActions.iterator(); while (iterator.hasNext()) { IAction action = (IAction) fGlobalActions.get(iterator.next()); if (action instanceof IUpdate) { ((IUpdate) action).update(); } } }
public void textChanged(TextEvent event) { IUpdate findReplace = (IUpdate)fGlobalActions.get(ActionFactory.FIND.getId()); if (findReplace != null) { findReplace.update(); } } };
/** * Calls the update method of the action with the given action ID. * The action must exist in the action map and must be an instance of * </code>IUpdate</code> * * @param actionId The ID of the action to update */ protected void updateAction(String actionId) { IAction action= getAction(actionId); if (action instanceof IUpdate) { ((IUpdate) action).update(); } }
/** * Convenience method to add the action installed under the given action id to the given menu. * @param menu the menu to add the action to * @param actionId the id of the action to be added */ protected final void addAction(IMenuManager menu, String actionId) { IAction action= getAction(actionId); if (action != null) { if (action instanceof IUpdate) ((IUpdate) action).update(); menu.add(action); } }
/** * Updates to the current state. */ private void update() { if (fAction instanceof IUpdate) { ((IUpdate) fAction).update(); if (fCallerAction != null) { fCallerAction.setText(fAction.getText()); fCallerAction.setEnabled(fAction.isEnabled()); } } }
/** * Updates to the current state. */ private void update() { if (fAction instanceof IUpdate) { ((IUpdate) fAction).update(); if (fCallerAction != null) { fCallerAction.setText(fAction.getText()); fCallerAction.setEnabled(fAction.isEnabled()); } } }
/** * Updates to the current state. */ private void update() { if (fAction instanceof IUpdate) { ((IUpdate) fAction).update(); if (fCallerAction != null) { fCallerAction.setText(fAction.getText()); fCallerAction.setEnabled(fAction.isEnabled()); } } }
private void triggerAction(String actionID) { IAction action= getAction(actionID); if (action != null) { if (action instanceof IUpdate) ((IUpdate) action).update(); // hack to propagate line change if (action instanceof ISelectionListener) { ((ISelectionListener)action).selectionChanged(null, null); } if (action.isEnabled()) action.run(); } }
private void triggerAction(String actionID) { IAction action= getAction(actionID); if (action != null) { if (action instanceof IUpdate) ((IUpdate) action).update(); // hack to propagate line change if (action instanceof ISelectionListener) { ((ISelectionListener)action).selectionChanged(null, null); } if (action.isEnabled()) action.run(); } }
private void triggerAction(String actionID) { IAction action= getTextEditor().getAction(actionID); if (action != null) { if (action instanceof IUpdate) ((IUpdate) action).update(); // hack to propagate line change if (action instanceof ISelectionListener) { ((ISelectionListener)action).selectionChanged(null, null); } if (action.isEnabled()) action.run(); } }
public void update() { for (int i= 0; i < fActions.length; i++) { if (fActions[i] instanceof IUpdate) ((IUpdate) fActions[i]).update(); } IAction action= getEnabledAction(); setEnabled(getEnabledAction() != null); if (action == null) return; setText(action.getText()); setToolTipText(action.getToolTipText()); }