Java Code Examples for org.eclipse.ui.internal.WorkbenchMessages#Workbench_copy

The following examples show how to use org.eclipse.ui.internal.WorkbenchMessages#Workbench_copy . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TmMatchEditorBodyMenu.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
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));
}
 
Example 2
Source File: MatchViewerBodyMenu.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 3
Source File: PropertiesView.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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());
}
 
Example 4
Source File: TmMatchEditorBodyMenu.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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));
}
 
Example 5
Source File: MatchViewerBodyMenu.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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);
}
 
Example 6
Source File: CellEditorGlobalActionHanlder.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected CopyActionHandler() {
	super(WorkbenchMessages.Workbench_copy);
	setId("XLIFFEditorCopyActionHandler");//$NON-NLS-1$
	setEnabled(false);
}