THEME: change icon on debug perspective
authorChangHyun Lee <leechwin.lee@samsung.com>
Fri, 1 Jul 2016 07:05:32 +0000 (16:05 +0900)
committerSangho Park <sangho.p@samsung.com>
Fri, 1 Jul 2016 08:31:36 +0000 (17:31 +0900)
Change-Id: I07f8a10f56de78e37a664b372041db03f4dc35dc
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
12 files changed:
debug/org.eclipse.cdt.debug.ui/icons/dlcl18/open_new.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/dlcl18/refresh.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_all_co.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_co.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/dlcl18/toolbar_pinned.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/elcl18/open_new.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/elcl18/refresh.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_all_co.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_co.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/icons/elcl18/toolbar_pinned.png [new file with mode: 0755]
debug/org.eclipse.cdt.debug.ui/plugin.xml
debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java

diff --git a/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/open_new.png b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/open_new.png
new file mode 100755 (executable)
index 0000000..6b2d984
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/open_new.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/refresh.png b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/refresh.png
new file mode 100755 (executable)
index 0000000..d7f4920
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/refresh.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_all_co.png b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_all_co.png
new file mode 100755 (executable)
index 0000000..13fa0a6
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_all_co.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_co.png b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_co.png
new file mode 100755 (executable)
index 0000000..f6061fa
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/rem_co.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/toolbar_pinned.png b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/toolbar_pinned.png
new file mode 100755 (executable)
index 0000000..d98a12f
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/dlcl18/toolbar_pinned.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/elcl18/open_new.png b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/open_new.png
new file mode 100755 (executable)
index 0000000..e6aafa4
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/open_new.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/elcl18/refresh.png b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/refresh.png
new file mode 100755 (executable)
index 0000000..54cefd7
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/refresh.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_all_co.png b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_all_co.png
new file mode 100755 (executable)
index 0000000..13fa0a6
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_all_co.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_co.png b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_co.png
new file mode 100755 (executable)
index 0000000..936904e
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/rem_co.png differ
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/elcl18/toolbar_pinned.png b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/toolbar_pinned.png
new file mode 100755 (executable)
index 0000000..6946715
Binary files /dev/null and b/debug/org.eclipse.cdt.debug.ui/icons/elcl18/toolbar_pinned.png differ
index 8590cd9..c096a85 100644 (file)
       <viewContribution
             targetID="org.eclipse.debug.ui.VariableView"
             id="org.eclipse.debug.ui.variablesView.toolbar">
+         <!-- Tizen -->
+         <!--
          <action
                helpContextId="remove_all_globals_action_context"
                disabledIcon="icons/dlcl16/rem_all_co.gif"
                      id="org.eclipse.cdt.debug.ui"/>
             </enablement>
          </action>
+         -->
+         <action
+               helpContextId="remove_all_globals_action_context"
+               disabledIcon="icons/dlcl18/rem_all_co.png"
+               enablesFor="*"
+               toolbarPath="additions"
+               label="%RemoveAllGlobalsAction.label"
+               tooltip="%RemoveAllGlobalsAction.tooltip"
+               icon="icons/elcl18/rem_all_co.png"
+               class="org.eclipse.cdt.debug.internal.ui.actions.RemoveAllGlobalsActionDelegate"
+               id="org.eclipse.cdt.debug.internal.ui.actions.RemoveAllGlobalsActionDelegate">
+            <enablement>
+               <pluginState
+                     value="activated"
+                     id="org.eclipse.cdt.debug.ui"/>
+            </enablement>
+         </action>
+         <action
+               helpContextId="remove_globals_action_context"
+               disabledIcon="icons/dlcl18/rem_co.png"
+               enablesFor="+"
+               toolbarPath="additions"
+               label="%RemoveGlobalsAction.label"
+               tooltip="%RemoveGlobalsAction.tooltip"
+               icon="icons/elcl18/rem_co.png"
+               class="org.eclipse.cdt.debug.internal.ui.actions.RemoveGlobalsActionDelegate"
+               id="org.eclipse.cdt.debug.internal.ui.actions.RemoveGlobalsActionDelegate">
+            <enablement>
+               <pluginState
+                     value="activated"
+                     id="org.eclipse.cdt.debug.ui"/>
+            </enablement>
+         </action>
+         <!-- ===== -->
          <action
                helpContextId="add_globals_action_context"
                disabledIcon="icons/dlcl16/watch_globals.gif"
       <viewContribution
             id="org.eclipse.cdt.debug.ui.variable.toolbar"
             targetID="org.eclipse.debug.ui.VariableView">
+         <!-- Tizen -->
+         <!--
          <action
                class="org.eclipse.cdt.debug.internal.ui.actions.PinDebugContextActionDelegate"
                icon="icons/elcl16/toolbar_pinned.gif"
                style="push"
                toolbarPath="pinGroup">
          </action>
+         -->
+         <action
+               class="org.eclipse.cdt.debug.internal.ui.actions.PinDebugContextActionDelegate"
+               icon="icons/elcl18/toolbar_pinned.png"
+               id="org.eclipse.pinclone.variable.pinDebugContext"
+               label="%PinView.name "
+               style="toggle"
+               toolbarPath="pinGroup">
+         </action>
+         <action
+               class="org.eclipse.cdt.debug.internal.ui.actions.OpenNewViewActionDelegate"
+               icon="icons/elcl18/open_new.png"
+               id="org.eclipse.pinclone.variable.clone"
+               label="%OpenNewView.name"
+               style="push"
+               toolbarPath="pinGroup">
+         </action>
+         <!-- ===== -->
       </viewContribution>
       <viewContribution
             id="org.eclipse.cdt.debug.ui.register.toolbar"
index 4a9947c..882c692 100644 (file)
@@ -9,7 +9,11 @@
  * Nokia - Initial API and implementation
  * IBM Corporation
  *******************************************************************************/
-
+/*
+ * 2016-07-01 leechwin.lee@samsung.com
+ * Modifications by S-Core Co., Ltd.
+ * 1. Give a Tizen identity
+ */
 package org.eclipse.cdt.debug.internal.ui.views.executables;
 
 import java.net.URL;
@@ -101,6 +105,15 @@ public class ExecutablesView extends ViewPart {
        public static final String EXECUTABLES_VIEW_CONTEXT = "org.eclipse.cdt.debug.ui.executables_View_context"; //$NON-NLS-1$;
        private static final String PATH_LCL = ICONS_PATH + "elcl16/"; //$NON-NLS-1$
        private static final String PATH_LCL_DISABLED = ICONS_PATH + "dlcl16/"; //$NON-NLS-1$
+       /* Tizen */
+       private static final String PATH_LCL_18 = ICONS_PATH + "elcl18/"; //$NON-NLS-1$
+       private static final String PATH_LCL_18_DISABLED = ICONS_PATH + "dlcl18/"; //$NON-NLS-1$
+
+       public static final ImageDescriptor DESC_REFRESH_18 = create(PATH_LCL_18, "refresh.png"); //$NON-NLS-1$
+       public static final ImageDescriptor DESC_REFRESH_DISABLED_18 = create(PATH_LCL_18_DISABLED, "refresh.png"); //$NON-NLS-1$
+       public static final ImageDescriptor DESC_REMOVE_18 = create(PATH_LCL_18, "rem_co.png"); //$NON-NLS-1$
+       public static final ImageDescriptor DESC_REMOVE_DISABLED_18 = create(PATH_LCL_18_DISABLED, "rem_co.png"); //$NON-NLS-1$
+       /* ===== */
        public static final ImageDescriptor DESC_REFRESH = create(PATH_LCL, "refresh.gif"); //$NON-NLS-1$
        public static final ImageDescriptor DESC_REFRESH_DISABLED = create(PATH_LCL_DISABLED, "refresh.gif"); //$NON-NLS-1$
        public static final ImageDescriptor DESC_IMPORT = create(PATH_LCL, "import.gif"); //$NON-NLS-1$
@@ -473,8 +486,12 @@ public class ExecutablesView extends ViewPart {
                        }
                };
                action.setToolTipText(Messages.ExecutablesView_RemoveSelectedExes);
-               action.setImageDescriptor(ExecutablesView.DESC_REMOVE);
-               action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED);
+               /* Tizen */
+               // action.setImageDescriptor(ExecutablesView.DESC_REMOVE);
+               // action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED);
+               action.setImageDescriptor(ExecutablesView.DESC_REMOVE_18);
+               action.setDisabledImageDescriptor(ExecutablesView.DESC_REMOVE_DISABLED_18);
+               /* ===== */
                action.setEnabled(false);
                return action;
        }
@@ -538,8 +555,12 @@ public class ExecutablesView extends ViewPart {
                        }
                };
                action.setToolTipText(Messages.ExecutablesView_RefreshList);
-               action.setImageDescriptor(ExecutablesView.DESC_REFRESH);
-               action.setDisabledImageDescriptor(ExecutablesView.DESC_REFRESH_DISABLED);
+               /* Tizen */
+               // action.setImageDescriptor(ExecutablesView.DESC_REFRESH);
+               // action.setDisabledImageDescriptor(ExecutablesView.DESC_REFRESH_DISABLED);
+               action.setImageDescriptor(ExecutablesView.DESC_REFRESH_18);
+               action.setDisabledImageDescriptor(ExecutablesView.DESC_REFRESH_DISABLED_18);
+               /* ===== */
                action.setEnabled(true);
                return action;
        }