THEME: change icon in debug perspective
authorChangHyun Lee <leechwin.lee@samsung.com>
Fri, 1 Jul 2016 07:02:23 +0000 (16:02 +0900)
committerChangHyun Lee <leechwin.lee@samsung.com>
Fri, 1 Jul 2016 07:15:05 +0000 (16:15 +0900)
Change-Id: I0af57b70dfa9bf0f6babcb554ac9574ca969b635
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
org.eclipse.debug.ui/icons/full/dlcl18/collapseall.png [new file with mode: 0755]
org.eclipse.debug.ui/icons/full/elcl18/collapseall.png [new file with mode: 0755]
org.eclipse.debug.ui/plugin.xml
org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPluginImages.java
org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/IInternalDebugUIConstants.java
org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/CollapseAllAction.java

diff --git a/org.eclipse.debug.ui/icons/full/dlcl18/collapseall.png b/org.eclipse.debug.ui/icons/full/dlcl18/collapseall.png
new file mode 100755 (executable)
index 0000000..f5f12c5
Binary files /dev/null and b/org.eclipse.debug.ui/icons/full/dlcl18/collapseall.png differ
diff --git a/org.eclipse.debug.ui/icons/full/elcl18/collapseall.png b/org.eclipse.debug.ui/icons/full/elcl18/collapseall.png
new file mode 100755 (executable)
index 0000000..c02c181
Binary files /dev/null and b/org.eclipse.debug.ui/icons/full/elcl18/collapseall.png differ
index 3a39b43..b632748 100644 (file)
       <viewContribution
             targetID="org.eclipse.debug.ui.DebugView"
             id="org.eclipse.debug.ui.debugview.toolbar">
+         <!-- Tizen -->
+         <!--
          <action
                id="org.eclipse.debug.ui.debugview.toolbar.removeAllTerminated"
                toolbarPath="threadGroup"
                label="%RemoveAllTerminatedAction.label"
                tooltip="%RemoveAllTerminatedAction.tooltip">
          </action>
+         -->
+         <action
+               id="org.eclipse.debug.ui.debugview.toolbar.removeAllTerminated"
+               toolbarPath="threadGroup"
+               hoverIcon="$nl$/icons/full/elcl18/rem_all_co.png"
+               class="org.eclipse.debug.internal.ui.actions.RemoveAllTerminatedAction"
+               disabledIcon="$nl$/icons/full/dlcl18/rem_all_co.png"
+               icon="$nl$/icons/full/elcl18/rem_all_co.png"
+               helpContextId="remove_all_terminated_action_context"
+               label="%RemoveAllTerminatedAction.label"
+               tooltip="%RemoveAllTerminatedAction.tooltip">
+         </action>
+         <!-- ===== -->
       </viewContribution>
      
 <!-- Contributions to Breakpoints View Toolbar -->
       <viewContribution
             targetID="org.eclipse.debug.ui.BreakpointView"
             id="org.eclipse.debug.ui.breakpointsview.toolbar">
+         <!-- Tizen -->
+         <!--
          <action
                id="org.eclipse.debug.ui.breakpointsView.toolbar.removeAll"
                toolbarPath="breakpointGroup"
                   class="org.eclipse.debug.core.model.IBreakpoint">
             </selection>
          </action>
+         -->
+         <action
+               id="org.eclipse.debug.ui.breakpointsView.toolbar.removeAll"
+               toolbarPath="breakpointGroup"
+               hoverIcon="$nl$/icons/full/elcl18/rem_all_co.png"
+               class="org.eclipse.debug.internal.ui.actions.breakpoints.RemoveAllBreakpointsAction"
+               disabledIcon="$nl$/icons/full/dlcl18/rem_all_co.png"
+               icon="$nl$/icons/full/elcl18/rem_all_co.png"
+               helpContextId="remove_all_breakpoints_action_context"
+               label="%RemoveAllAction.label"
+               tooltip="%RemoveAllBreakpointsAction.tooltip">
+         </action>
+         <action
+               id="org.eclipse.debug.ui.breakpointsView.toolbar.remove"
+               definitionId="org.eclipse.ui.edit.delete"
+               toolbarPath="breakpointGroup"
+               hoverIcon="$nl$/icons/full/elcl18/rem_co.png"
+               class="org.eclipse.debug.internal.ui.actions.breakpoints.RemoveBreakpointAction"
+               disabledIcon="$nl$/icons/full/dlcl18/rem_co.png"
+               icon="$nl$/icons/full/elcl18/rem_co.png"
+               helpContextId="remove_breakpoint_action_context"
+               label="%RemoveAction.label"
+               tooltip="%RemoveBreakpointAction.tooltip">
+            <selection
+                  class="org.eclipse.debug.core.model.IBreakpoint">
+            </selection>
+         </action>
+         <!-- ===== -->
          <action
                id="org.eclipse.debug.ui.breakpointsView.toolbar.linkWithDebugView"
                toolbarPath="navigationGroup"
                label="%LinkWithDebugView.label"
                tooltip="%LinkWithDebugView.tooltip">
          </action>
+         <!-- Tizen -->
+         <!--
          <action
                class="org.eclipse.debug.internal.ui.actions.breakpoints.BreakpointsCollapseAllAction"
                definitionId="org.eclipse.ui.navigate.collapseAll"
                toolbarPath="navigationGroup"
                tooltip="%CollapseAll.tooltip">
          </action>
+         -->
+         <action
+               class="org.eclipse.debug.internal.ui.actions.breakpoints.BreakpointsCollapseAllAction"
+               definitionId="org.eclipse.ui.navigate.collapseAll"
+               helpContextId="breakpoints_collapse_all_action_context"
+               icon="$nl$/icons/full/elcl18/collapseall.png"
+               id="org.eclipse.debug.ui.breakpointsView.toolbar.collapseAll"
+               label="%CollapseAll.label"
+               toolbarPath="navigationGroup"
+               tooltip="%CollapseAll.tooltip">
+         </action>
+         <!-- ===== -->
          <action
                class="org.eclipse.debug.internal.ui.actions.breakpoints.BreakpointsExpandAllAction"
                definitionId="org.eclipse.ui.navigate.expandAll"
index 73a1457..6934429 100644 (file)
@@ -96,6 +96,7 @@ public class DebugPluginImages {
                /* Tizen */
                declareRegistryImage(IDebugUIConstants.IMG_LCL_18_REMOVE_ALL, ELCL_18 + "rem_all_co.png"); //$NON-NLS-1$
                declareRegistryImage(IDebugUIConstants.IMG_LCL_18_REMOVE, ELCL_18 + "rem_co.png"); //$NON-NLS-1$
+               declareRegistryImage(IInternalDebugUIConstants.IMG_LCL_18_COLLAPSE_ALL, ELCL_18 + "collapseall.png"); //$NON-NLS-1$
                /* ===== */
                declareRegistryImage(IInternalDebugUIConstants.IMG_LCL_SHOW_LOGICAL_STRUCTURE, ELCL + "var_cntnt_prvdr.png"); //$NON-NLS-1$
                declareRegistryImage(IInternalDebugUIConstants.IMG_LCL_COLLAPSE_ALL, ELCL + "collapseall.png"); //$NON-NLS-1$
@@ -121,6 +122,7 @@ public class DebugPluginImages {
                declareRegistryImage(IInternalDebugUIConstants.IMG_DLCL_REMOVE_ALL, DLCL + "rem_all_co.png"); //$NON-NLS-1$
                declareRegistryImage(IInternalDebugUIConstants.IMG_DLCL_REMOVE, DLCL + "rem_co.png"); //$NON-NLS-1$
                /* Tizen */
+               declareRegistryImage(IInternalDebugUIConstants.IMG_DLCL_18_COLLAPSE_ALL, DLCL_18 + "collapseall.png"); //$NON-NLS-1$
                declareRegistryImage(IInternalDebugUIConstants.IMG_DLCL_18_REMOVE_ALL, DLCL_18 + "rem_all_co.png"); //$NON-NLS-1$
                declareRegistryImage(IInternalDebugUIConstants.IMG_DLCL_18_REMOVE, DLCL_18 + "rem_co.png"); //$NON-NLS-1$
                /* ===== */
index 0113f4c..254988e 100644 (file)
@@ -31,7 +31,11 @@ public interface IInternalDebugUIConstants {
     public static final String ID_TOOLS_FOLDER_VIEW= "org.eclipse.debug.internal.ui.ToolsFolderView"; //$NON-NLS-1$
     public static final String ID_CONSOLE_FOLDER_VIEW= "org.eclipse.debug.internal.ui.ConsoleFolderView"; //$NON-NLS-1$
     public static final String ID_OUTLINE_FOLDER_VIEW= "org.eclipse.debug.internal.ui.OutlineFolderView"; //$NON-NLS-1$
-    
+
+    /* Tizen */
+    public static final String IMG_LCL_18_COLLAPSE_ALL = "IMG_LCL_18_COLLAPSE_ALL"; //$NON-NLS-1$
+    /* ===== */
+
     // tool images
     public static final String IMG_LCL_COLLAPSE_ALL = "IMG_LCL_COLLAPSE_ALL"; //$NON-NLS-1$
     public static final String IMG_LCL_TERMINATE = "IMG_LCL_TERMINATE"; //$NON-NLS-1$
@@ -64,6 +68,7 @@ public interface IInternalDebugUIConstants {
     public static final String IMG_DLCL_REMOVE_ALL = "IMG_DLCL_REMOVE_ALL"; //$NON-NLS-1$
     public static final String IMG_DLCL_REMOVE = "IMG_DLCL_REMOVE"; //$NON-NLS-1$
     /* Tizen */
+       public static final String IMG_DLCL_18_COLLAPSE_ALL = "IMG_DLCL_18_COLLAPSE_ALL"; //$NON-NLS-1$
     public static final String IMG_DLCL_18_REMOVE_ALL = "IMG_DLCL_18_REMOVE_ALL"; //$NON-NLS-1$
     public static final String IMG_DLCL_18_REMOVE = "IMG_DLCL_18_REMOVE"; //$NON-NLS-1$
     /* ===== */
index be528d0..242df90 100644 (file)
@@ -8,6 +8,11 @@
  * Contributors:
  *     IBM Corporation - initial API and implementation
  *******************************************************************************/
+/*
+ * 2016-07-01 leechwin.lee@samsung.com
+ * Modifications by S-Core Co., Ltd.
+ * 1. Give a Tizen identity
+ */
 package org.eclipse.debug.internal.ui.actions;
 
 import org.eclipse.debug.internal.ui.DebugPluginImages;
@@ -28,8 +33,12 @@ public class CollapseAllAction extends Action implements IUpdate {
        public CollapseAllAction(TreeModelViewer viewer) {
                super(ActionMessages.CollapseAllAction_0, DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COLLAPSE_ALL));
                setToolTipText(ActionMessages.CollapseAllAction_0);
-               setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COLLAPSE_ALL));
-               setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_COLLAPSE_ALL));
+               /* Tizen */
+               // setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COLLAPSE_ALL));
+               // setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_COLLAPSE_ALL));
+               setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_18_COLLAPSE_ALL));
+               setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_LCL_18_COLLAPSE_ALL));
+               /* ===== */
                setActionDefinitionId(CollapseAllHandler.COMMAND_ID);
                fViewer = viewer;
        }