当前位置: 首页>>代码示例>>Java>>正文


Java IAction.AS_PUSH_BUTTON属性代码示例

本文整理汇总了Java中org.eclipse.jface.action.IAction.AS_PUSH_BUTTON属性的典型用法代码示例。如果您正苦于以下问题:Java IAction.AS_PUSH_BUTTON属性的具体用法?Java IAction.AS_PUSH_BUTTON怎么用?Java IAction.AS_PUSH_BUTTON使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.jface.action.IAction的用法示例。


在下文中一共展示了IAction.AS_PUSH_BUTTON属性的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

@Override
public void init ( final ICommonActionExtensionSite aSite )
{
    super.init ( aSite );
    final ICommonViewerSite viewSite = aSite.getViewSite ();
    if ( viewSite instanceof ICommonViewerWorkbenchSite )
    {
        final ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite)viewSite;
        this.openAction = new Action ( "Open", IAction.AS_PUSH_BUTTON ) {
            @Override
            public void run ()
            {
                EditorHelper.handleOpen ( workbenchSite.getPage (), workbenchSite.getSelectionProvider () );
            }
        };
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:CommonActionProvider.java

示例2: init

@Override
public void init ( final ICommonActionExtensionSite aSite )
{
    super.init ( aSite );
    final ICommonViewerSite viewSite = aSite.getViewSite ();
    if ( viewSite instanceof ICommonViewerWorkbenchSite )
    {
        final ICommonViewerWorkbenchSite workbenchSite = (ICommonViewerWorkbenchSite)viewSite;
        this.openAction = new Action ( "Open", IAction.AS_PUSH_BUTTON ) {
            @Override
            public void run ()
            {
                handleOpen ( workbenchSite );
            }
        };
    }
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:CommonActionProvider.java

示例3: fillPopupMenu

@Override
public void fillPopupMenu(IMenuManager manager, SchemaViewer viewer) {
	// add element
	ContextualAction action = new AddElementAction("Add", IAction.AS_PUSH_BUTTON, Notifications.notifyRefreshReveal(getContext()));
	action.init(getContext(), true);
	manager.add(action);
	// remove element
	action = new RemoveElementAction("Remove", IAction.AS_PUSH_BUTTON, Notifications.NOT_REF);
	action.init(getContext(), true);
	manager.add(action);		
	// copy
	action = new CopyElementAction("Copy", IAction.AS_PUSH_BUTTON, Notifications.NONE);
	action.init(getContext(), true);
	manager.add(action);
	// paste
	action = new PasteElementAction("Paste", IAction.AS_PUSH_BUTTON, Notifications.NOT_REF);
	action.init(getContext(), true);
	manager.add(action);
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:19,代码来源:StudioPopupMenuConfigurationImpl.java

示例4: ClearEdgeBenpointLayoutRetargetAction

public ClearEdgeBenpointLayoutRetargetAction(IWorkbenchWindow iww) {
	super(ClearEdgeBendpointLayoutAction.ID, ClearEdgeBendpointLayoutAction.LABEL,IAction.AS_PUSH_BUTTON);
	setToolTipText(ClearEdgeBendpointLayoutAction.LABEL);
	setImageDescriptor(ClearEdgeBendpointLayoutAction.imageDescriptor());
	setDisabledImageDescriptor(ClearEdgeBendpointLayoutAction.disabledImageDescriptor());
	setActionDefinitionId(ClearEdgeBendpointLayoutAction.ID);
	iww.getPartService().addPartListener(this);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:8,代码来源:ClearEdgeBenpointLayoutRetargetAction.java

示例5: AddAction

public AddAction ()
{
    super ( "Add Entry", IAction.AS_PUSH_BUTTON );
    setEnabled ( true );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:5,代码来源:WriteAttributesOperationWizardValuePage.java

示例6: RemoveAction

public RemoveAction ()
{
    super ( "Remove Entry", IAction.AS_PUSH_BUTTON );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:4,代码来源:WriteAttributesOperationWizardValuePage.java

示例7: MoveDownAction

public MoveDownAction(String label) {
	super("Move down " + label, IAction.AS_PUSH_BUTTON, label);		
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:3,代码来源:StringListAttributeControl.java

示例8: MoveUpAction

public MoveUpAction(String label) {
	super("Move up " + label, IAction.AS_PUSH_BUTTON, label);		
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:3,代码来源:StringListAttributeControl.java

示例9: RemoveValueAction

public RemoveValueAction(String label) {
	super("Remove " + label, IAction.AS_PUSH_BUTTON, label);		
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:3,代码来源:StringListAttributeControl.java

示例10: AddValueAction

public AddValueAction(String defaultName) {
	super("Add " + defaultName, IAction.AS_PUSH_BUTTON, defaultName);
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:3,代码来源:StringListAttributeControl.java

示例11: SwitchSchemaViewerDisplayModeAction

public SwitchSchemaViewerDisplayModeAction(AvroSchemaEditor editor, AvroContext.Kind kind) {
	super(CMD_ID, IAction.AS_PUSH_BUTTON);
	this.editor = editor;
	this.kind = kind;
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:5,代码来源:SwitchSchemaViewerDisplayModeAction.java

示例12: OpenPreferencesShellAction

public OpenPreferencesShellAction(IEditorServiceProvider serviceProvider) {
	super("Preferences", IAction.AS_PUSH_BUTTON);
	this.serviceProvider = serviceProvider;
}
 
开发者ID:Talend,项目名称:avro-schema-editor,代码行数:4,代码来源:OpenPreferencesShellAction.java


注:本文中的org.eclipse.jface.action.IAction.AS_PUSH_BUTTON属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。