Java 类org.eclipse.gef.ui.actions.EditorPartAction 实例源码

项目:birt    文件:GraphicalEditorWithFlyoutPalette.java   
/**
 * Adds an editor action to this editor.
 * 
 * <p>
 * <Editor actions are actions that depend and work on the editor.
 * 
 * @param action
 *            the editor action
 */
protected void addEditorAction( EditorPartAction action )
{
    getActionRegistry( ).registerAction( action );
    editorActionIDs.add( action.getId( ) );
}
项目:seg.jUCMNav    文件:ActionRegistryManager.java   
/**
 * Adds an editor action to this editor.
 * 
 * <p>
 * Editor actions are actions that depend and work on the editor.
 * 
 * @param action
 *            the editor action
 */
public void addEditorAction(EditorPartAction action) {
    getActionRegistry().registerAction(action);
    editorActionIDs.add(action.getId());
}