mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 10:45:37 +02:00
Control: Fix Bug 367855 - TerminalActionPaste uses wrong icon for
disabled state
This commit is contained in:
parent
b1957c3415
commit
08844f654a
1 changed files with 10 additions and 8 deletions
|
@ -31,20 +31,22 @@ public class TerminalActionPaste extends AbstractTerminalAction {
|
||||||
super(TerminalActionPaste.class.getName());
|
super(TerminalActionPaste.class.getName());
|
||||||
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
|
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
|
||||||
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
|
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
|
||||||
setupAction(ActionMessages.PASTE, ActionMessages.PASTE, si
|
setupAction(ActionMessages.PASTE, ActionMessages.PASTE,
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE), si
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED), si
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE), false);
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED),
|
||||||
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public TerminalActionPaste(ITerminalViewControl target) {
|
public TerminalActionPaste(ITerminalViewControl target) {
|
||||||
super(target, TerminalActionPaste.class.getName());
|
super(target, TerminalActionPaste.class.getName());
|
||||||
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
|
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
|
||||||
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
|
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
|
||||||
setupAction(ActionMessages.PASTE, ActionMessages.PASTE, si
|
setupAction(ActionMessages.PASTE, ActionMessages.PASTE,
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE), si
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED), si
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
|
||||||
.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE), false);
|
si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED),
|
||||||
|
false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue