本文整理汇总了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 () );
}
};
}
}
示例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 );
}
};
}
}
示例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);
}
示例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);
}
示例5: AddAction
public AddAction ()
{
super ( "Add Entry", IAction.AS_PUSH_BUTTON );
setEnabled ( true );
}
示例6: RemoveAction
public RemoveAction ()
{
super ( "Remove Entry", IAction.AS_PUSH_BUTTON );
}
示例7: MoveDownAction
public MoveDownAction(String label) {
super("Move down " + label, IAction.AS_PUSH_BUTTON, label);
}
示例8: MoveUpAction
public MoveUpAction(String label) {
super("Move up " + label, IAction.AS_PUSH_BUTTON, label);
}
示例9: RemoveValueAction
public RemoveValueAction(String label) {
super("Remove " + label, IAction.AS_PUSH_BUTTON, label);
}
示例10: AddValueAction
public AddValueAction(String defaultName) {
super("Add " + defaultName, IAction.AS_PUSH_BUTTON, defaultName);
}
示例11: SwitchSchemaViewerDisplayModeAction
public SwitchSchemaViewerDisplayModeAction(AvroSchemaEditor editor, AvroContext.Kind kind) {
super(CMD_ID, IAction.AS_PUSH_BUTTON);
this.editor = editor;
this.kind = kind;
}
示例12: OpenPreferencesShellAction
public OpenPreferencesShellAction(IEditorServiceProvider serviceProvider) {
super("Preferences", IAction.AS_PUSH_BUTTON);
this.serviceProvider = serviceProvider;
}