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

The following examples show how to use org.eclipse.ui.internal.WorkbenchMessages#Workbench_paste . 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 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));
}
 
Example 2
Source File: PropertiesView.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
@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);
}
 
Example 3
Source File: TmMatchEditorBodyMenu.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
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));
}
 
Example 4
Source File: CellEditorGlobalActionHanlder.java    From tmxeditor8 with GNU General Public License v2.0 4 votes vote down vote up
protected PasteActionHandler() {
	super(WorkbenchMessages.Workbench_paste);
	setId("XLIFFEditorPasteActionHandler");//$NON-NLS-1$
	setEnabled(false);
}