Terminal icons were updated and added.
COPY,PASTE,TOGGLE icons
Change-Id: Ic686ff94bf1153d400d7813bd9e9cc97958c5b7f
Signed-off-by: JaeMin Kim <jm.jemin.kim@samsung.com>
public static final String IMAGE_DLCL_CLEAR_ALL = "ImageDlclClearAll"; //$NON-NLS-1$
public static final String IMAGE_ELCL_CLEAR_ALL = "ImageElclClearAll"; //$NON-NLS-1$
+
+ /* Tizen */
+ public static final String IMAGE_CLCL_COPY = "Copy"; //$NON-NLS-1$
+ public static final String IMAGE_DLCL_COPY = "Copy"; //$NON-NLS-1$
+ public static final String IMAGE_ELCL_COPY = "Copy"; //$NON-NLS-1$
+
+ public static final String IMAGE_CLCL_PASTE = "Paste"; //$NON-NLS-1$
+ public static final String IMAGE_DLCL_PASTE = "Paste"; //$NON-NLS-1$
+ public static final String IMAGE_ELCL_PASTE = "Paste"; //$NON-NLS-1$
+ /* ===== */
}
public TerminalActionCopy() {
super(TerminalActionCopy.class.getName());
setActionDefinitionId("org.eclipse.tm.terminal.copy"); //$NON-NLS-1$
+ /* Tizen */
+
+ /* original
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
setupAction(ActionMessages.COPY, ActionMessages.COPY, si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY), si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY), si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED), true);
+ original end */
+
+ setupAction(ActionMessages.COPY, ActionMessages.COPY,
+ ImageConsts.IMAGE_CLCL_COPY,
+ ImageConsts.IMAGE_ELCL_COPY,
+ ImageConsts.IMAGE_DLCL_COPY,
+ false);
+
+ /* ===== */
}
public TerminalActionCopy(ITerminalViewControl target) {
super(target, TerminalActionCopy.class.getName());
setActionDefinitionId("org.eclipse.tm.terminal.copy"); //$NON-NLS-1$
+ /* Tizen */
+
+ /* original
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
setupAction(ActionMessages.COPY, ActionMessages.COPY, si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY), si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY), si
.getImageDescriptor(ISharedImages.IMG_TOOL_COPY_DISABLED), true);
+ original end */
+
+ setupAction(ActionMessages.COPY, ActionMessages.COPY,
+ ImageConsts.IMAGE_CLCL_COPY,
+ ImageConsts.IMAGE_ELCL_COPY,
+ ImageConsts.IMAGE_DLCL_COPY,
+ false);
+
+ /* ===== */
}
public void run() {
public TerminalActionPaste() {
super(TerminalActionPaste.class.getName());
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
+ /* Tizen */
+
+ /* original
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
+ setupAction(ActionMessages.PASTE, ActionMessages.PASTE, si
+ .getImageDescriptor(ISharedImages.IMAGE_CLCL_PASTE), si
+ .getImageDescriptor(ISharedImages.IMAGE_ELCL_PASTE), si
+ .getImageDescriptor(ISharedImages.IMAGE_DLCL_PASTE), true);
+ original end */
+
setupAction(ActionMessages.PASTE, ActionMessages.PASTE,
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED),
- false);
+ ImageConsts.IMAGE_CLCL_PASTE,
+ ImageConsts.IMAGE_ELCL_PASTE,
+ ImageConsts.IMAGE_DLCL_PASTE,
+ false);
+
+ /* ===== */
}
public TerminalActionPaste(ITerminalViewControl target) {
super(target, TerminalActionPaste.class.getName());
setActionDefinitionId("org.eclipse.tm.terminal.paste"); //$NON-NLS-1$
+ /* Tizen */
+
+ /* original
ISharedImages si = PlatformUI.getWorkbench().getSharedImages();
+ setupAction(ActionMessages.PASTE, ActionMessages.PASTE, si
+ .getImageDescriptor(ISharedImages.IMAGE_CLCL_PASTE), si
+ .getImageDescriptor(ISharedImages.IMAGE_ELCL_PASTE), si
+ .getImageDescriptor(ISharedImages.IMAGE_DLCL_PASTE), true);
+ original end */
+
setupAction(ActionMessages.PASTE, ActionMessages.PASTE,
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE),
- si.getImageDescriptor(ISharedImages.IMG_TOOL_PASTE_DISABLED),
- false);
+ ImageConsts.IMAGE_CLCL_PASTE,
+ ImageConsts.IMAGE_ELCL_PASTE,
+ ImageConsts.IMAGE_DLCL_PASTE,
+ false);
+
+ /* ===== */
}
public void run() {
putImageInRegistry(imageRegistry, ImageConsts.IMAGE_DLCL_CLEAR_ALL, ImageConsts.IMAGE_DIR_DLCL + "clear_co.png"); //$NON-NLS-1$
/* ===== */
+
+ /* Tizen */
+ /**
+ * TODO: COPY & PASTE icon, Now works well
+ * It seems that "enable COPY&PASTE icons are not working.
+ * This may cause problems
+ *
+ * @author jm.jemin.kim
+ * @since 2017-03-17
+ */
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_CLCL_COPY, ImageConsts.IMAGE_DIR_LOCALTOOL + "copy_co.png"); //$NON-NLS-1$
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_ELCL_COPY, ImageConsts.IMAGE_DIR_ELCL + "copy_co.png"); //$NON-NLS-1$
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_DLCL_COPY, ImageConsts.IMAGE_DIR_DLCL + "copy_co.png"); //$NON-NLS-1$
+
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_CLCL_PASTE, ImageConsts.IMAGE_DIR_LOCALTOOL + "paste_co.png"); //$NON-NLS-1$
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_ELCL_PASTE, ImageConsts.IMAGE_DIR_ELCL + "paste_co.png"); //$NON-NLS-1$
+ putImageInRegistry(imageRegistry, ImageConsts.IMAGE_DLCL_PASTE, ImageConsts.IMAGE_DIR_DLCL + "paste_co.png"); //$NON-NLS-1$
+ /* ===== */
+
} catch (MalformedURLException malformedURLException) {
malformedURLException.printStackTrace();
}