本文整理汇总了Java中org.eclipse.ui.internal.WorkbenchMessages.Workbench_paste方法的典型用法代码示例。如果您正苦于以下问题:Java WorkbenchMessages.Workbench_paste方法的具体用法?Java WorkbenchMessages.Workbench_paste怎么用?Java WorkbenchMessages.Workbench_paste使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.internal.WorkbenchMessages
的用法示例。
在下文中一共展示了WorkbenchMessages.Workbench_paste方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: create
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
public IWorkbenchAction create(IWorkbenchWindow window) {
if (window == null) {
throw new IllegalArgumentException();
}
RetargetAction action = new RetargetAction(getId(),
WorkbenchMessages.Workbench_paste);
action.setToolTipText(WorkbenchMessages.Workbench_pasteToolTip);
window.getPartService().addPartListener(action);
action.setActionDefinitionId(getCommandId());
ISharedImages sharedImages = window.getWorkbench()
.getSharedImages();
action.setImageDescriptor(sharedImages
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
action.setDisabledImageDescriptor(sharedImages
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED));
return action;
}
示例2: PasteAction
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
protected PasteAction() {
super(WorkbenchMessages.Workbench_paste);
setEnabled(false);
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE));
setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED));
}
示例3: PasteActionHandler
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
@SuppressWarnings("restriction")
protected PasteActionHandler() {
super(WorkbenchMessages.Workbench_paste);
setId("ProperPasteAttribute");//$NON-NLS-1$
setActionDefinitionId(ActionFactory.PASTE.getCommandId());
setImageDescriptor(Activator.getImageDescriptor("images/menu/edit/paste.png"));
setEnabled(true);
}
示例4: PasteActionHandler
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
protected PasteActionHandler() {
super(WorkbenchMessages.Workbench_paste);
setId("XLIFFEditorPasteActionHandler");//$NON-NLS-1$
setEnabled(false);
}