本文整理汇总了Java中org.eclipse.ui.internal.WorkbenchMessages.Workbench_copy方法的典型用法代码示例。如果您正苦于以下问题:Java WorkbenchMessages.Workbench_copy方法的具体用法?Java WorkbenchMessages.Workbench_copy怎么用?Java WorkbenchMessages.Workbench_copy使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.internal.WorkbenchMessages
的用法示例。
在下文中一共展示了WorkbenchMessages.Workbench_copy方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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_copy);
action.setToolTipText(WorkbenchMessages.Workbench_copyToolTip);
window.getPartService().addPartListener(action);
action.setActionDefinitionId(getCommandId());
ISharedImages sharedImages = window.getWorkbench()
.getSharedImages();
action.setImageDescriptor(sharedImages
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
action.setDisabledImageDescriptor(sharedImages
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED));
return action;
}
示例2: CopyAction
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
protected CopyAction() {
super(WorkbenchMessages.Workbench_copy);
setEnabled(false);
ISharedImages sharedImages = PlatformUI.getWorkbench().getSharedImages();
setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED));
}
示例3: CopyAction
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
CopyAction() {
super(WorkbenchMessages.Workbench_copy);
ISharedImages sharedImages = view.getSite().getWorkbenchWindow().getWorkbench().getSharedImages();
setImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY));
setDisabledImageDescriptor(sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED));
setEnabled(false);
}
示例4: CopyActionHandler
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
protected CopyActionHandler() {
super(WorkbenchMessages.Workbench_copy);
setId("ProperCopyAttribute");//$NON-NLS-1$
setEnabled(true);
setImageDescriptor(Activator.getImageDescriptor("images/menu/edit/copy.png"));
setActionDefinitionId(ActionFactory.COPY.getCommandId());
}
示例5: CopyActionHandler
import org.eclipse.ui.internal.WorkbenchMessages; //导入方法依赖的package包/类
protected CopyActionHandler() {
super(WorkbenchMessages.Workbench_copy);
setId("XLIFFEditorCopyActionHandler");//$NON-NLS-1$
setEnabled(false);
}