From 059bc26f02ac764bc347e3adcdf97a950b6332da Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Mon, 19 Feb 2007 14:43:24 +0000 Subject: [PATCH] Fix outline menu icons --- .../icons/dlcl16/group_include.gif | Bin 0 -> 185 bytes .../org.eclipse.cdt.ui/icons/dlcl16/open_incl.gif | Bin 324 -> 0 bytes .../icons/dlcl16/open_include.gif | Bin 0 -> 353 bytes .../icons/elcl16/group_include.gif | Bin 0 -> 185 bytes .../org.eclipse.cdt.ui/icons/elcl16/open_incl.gif | Bin 324 -> 0 bytes .../icons/elcl16/open_include.gif | Bin 0 -> 353 bytes .../eclipse/cdt/internal/ui/CPluginImages.java | 4 +++- .../internal/ui/editor/CContentOutlinePage.java | 10 ++++------ 8 files changed, 7 insertions(+), 7 deletions(-) create mode 100644 core/org.eclipse.cdt.ui/icons/dlcl16/group_include.gif delete mode 100644 core/org.eclipse.cdt.ui/icons/dlcl16/open_incl.gif create mode 100644 core/org.eclipse.cdt.ui/icons/dlcl16/open_include.gif create mode 100644 core/org.eclipse.cdt.ui/icons/elcl16/group_include.gif delete mode 100644 core/org.eclipse.cdt.ui/icons/elcl16/open_incl.gif create mode 100644 core/org.eclipse.cdt.ui/icons/elcl16/open_include.gif diff --git a/core/org.eclipse.cdt.ui/icons/dlcl16/group_include.gif b/core/org.eclipse.cdt.ui/icons/dlcl16/group_include.gif new file mode 100644 index 0000000000000000000000000000000000000000..ea94702caff9d46b70fc7a6b341b6ada7bf0d612 GIT binary patch literal 185 zcmZ?wbhEHb6krfwIKsfNdh?kryDu(Ub7IN5lWVq~UAOJ*)P)CTEvbMZ)V_pB& z_GvqN=j@%k@@RhZ+RC2IO_R6hHm_lHtI|p7&hB6O|Nnmmyg>0M3nK%AD1#12706Bo zRoDXidX5CuGKGFYgDn$sB)cY^+t=j zEf#f~E$cR0)NZh8*lN?b)wXe)L(2~P#?8*{yIk6Ly8y}7ZSGxr-MjaC_a5->-S5${ z!*9YNzX=BeCm#u#d^lvvQHhKNGFgjcvKJ}kEmg`}qFKDspkj@A?RvYW&Hw-ZXP^Km z{$ycfV9;jJ0hs~v69Ze~fvE)^I#T^7mK5z2vYdNp`3em#78aI;iv(v1c{Va0R7i19 zS)Akj&V SisEiEixw~OS?1};U=09T(PD4_ diff --git a/core/org.eclipse.cdt.ui/icons/dlcl16/open_include.gif b/core/org.eclipse.cdt.ui/icons/dlcl16/open_include.gif new file mode 100644 index 0000000000000000000000000000000000000000..b902fca49ef8e30b0fa462b0167759f39acab6e5 GIT binary patch literal 353 zcmZ?wbhEHb6krfwxXQrr>Fe*Gzy5sq^84P4A5Y%=eE#m|+fTnffBSvs`S<%Te>{Bk zY{#TTGTTn=EKDo!?|SryhvRrq!4~IMKhU z%V2$n;hJ`%m955CHf3DdlzD4!&DBkr|NsAIAOsYDvM@3*m@w#o6oUN3z*grltH47? zDDs5LC5;@`c^4$QU(SkHzv<={i%AvxwI$z#>M-)Pv$OQ7iTd~LuzDvjqf4XtpJ1hp z6q}~29CvFScP+P;t2|F%4Nonrf~z8nAWO}3eikKHNiP0{f?Ty+60TC5tJkb%7IT&1 a*t}(nw5zPRh=}MO5pi)@pTo|M4AuY>sgSAw literal 0 HcmV?d00001 diff --git a/core/org.eclipse.cdt.ui/icons/elcl16/group_include.gif b/core/org.eclipse.cdt.ui/icons/elcl16/group_include.gif new file mode 100644 index 0000000000000000000000000000000000000000..ea94702caff9d46b70fc7a6b341b6ada7bf0d612 GIT binary patch literal 185 zcmZ?wbhEHb6krfwIKsfNdh?kryDu(Ub7IN5lWVq~UAOJ*)P)CTEvbMZ)V_pB& z_GvqN=j@%k@@RhZ+RC2IO_R6hHm_lHtI|p7&hB6O|Nnmmyg>0M3nK%AD1#12706Bo zRoDXidX5CuGKGFYgDn$sB)cY^+t=j zEf#f~E$cR0)NZh8*lN?b)wXe)L(2~P#?8*{yIk6Ly8y}7ZSGxr-MjaC_a5->-S5${ z!*9YNzX=BeCm#u#d^lvvQHhKNGFgjcvKJ}kEmg`}qFKDspkj@A?RvYW&Hw-ZXP^Km z{$ycfV9;jJ0hs~v69Ze~fvE)^I#T^7mK5z2vYdNp`3em#78aI;iv(v1c{Va0R7i19 zS)Akj&V SisEiEixw~OS?1};U=09T(PD4_ diff --git a/core/org.eclipse.cdt.ui/icons/elcl16/open_include.gif b/core/org.eclipse.cdt.ui/icons/elcl16/open_include.gif new file mode 100644 index 0000000000000000000000000000000000000000..b902fca49ef8e30b0fa462b0167759f39acab6e5 GIT binary patch literal 353 zcmZ?wbhEHb6krfwxXQrr>Fe*Gzy5sq^84P4A5Y%=eE#m|+fTnffBSvs`S<%Te>{Bk zY{#TTGTTn=EKDo!?|SryhvRrq!4~IMKhU z%V2$n;hJ`%m955CHf3DdlzD4!&DBkr|NsAIAOsYDvM@3*m@w#o6oUN3z*grltH47? zDDs5LC5;@`c^4$QU(SkHzv<={i%AvxwI$z#>M-)Pv$OQ7iTd~LuzDvjqf4XtpJ1hp z6q}~29CvFScP+P;t2|F%4Nonrf~z8nAWO}3eikKHNiP0{f?Ty+60TC5tJkb%7IT&1 a*t}(nw5zPRh=}MO5pi)@pTo|M4AuY>sgSAw literal 0 HcmV?d00001 diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java index af8c3eabe91..5dd80daf44b 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java @@ -9,6 +9,7 @@ * IBM Corporation - initial API and implementation * QNX Software System * Markus Schorn (Wind River Systems) + * Anton Leherbauer (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.ui; @@ -193,7 +194,8 @@ public class CPluginImages { public static final String IMG_MENU_SHIFT_RIGHT= NAME_PREFIX + "shift_r_edit.gif"; //$NON-NLS-1$ public static final String IMG_MENU_SHIFT_LEFT= NAME_PREFIX + "shift_l_edit.gif"; //$NON-NLS-1$ - public static final String IMG_MENU_OPEN_INCLUDE= NAME_PREFIX + "open_incl.gif"; //$NON-NLS-1$ + public static final String IMG_MENU_OPEN_INCLUDE= NAME_PREFIX + "open_include.gif"; //$NON-NLS-1$ + public static final String IMG_MENU_GROUP_INCLUDE= NAME_PREFIX + "group_include.gif"; //$NON-NLS-1$ public static final String IMG_MENU_SEGMENT_EDIT= NAME_PREFIX + "segment_edit.gif"; //$NON-NLS-1$ public static final String IMG_MENU_CODE_ASSIST= NAME_PREFIX + "metharg_obj.gif"; //$NON-NLS-1$ public static final String IMG_MENU_COLLAPSE_ALL= NAME_PREFIX + "collapseall.gif"; //$NON-NLS-1$ diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CContentOutlinePage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CContentOutlinePage.java index aafd4a5820a..46d385a6b8e 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CContentOutlinePage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CContentOutlinePage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2006 IBM Corporation and others. + * Copyright (c) 2005, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -9,6 +9,7 @@ * IBM Corporation - initial API and implementation * QNX Software System * Markus Schorn (Wind River Systems) + * Anton Leherbauer (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.ui.editor; @@ -76,7 +77,6 @@ import org.eclipse.cdt.internal.ui.util.ProblemTreeViewer; import org.eclipse.cdt.internal.ui.viewsupport.AppearanceAwareLabelProvider; import org.eclipse.cdt.internal.ui.viewsupport.CElementLabels; import org.eclipse.cdt.internal.ui.viewsupport.DecoratingCLabelProvider; -import org.eclipse.cdt.internal.ui.viewsupport.StandardCElementLabelProvider; public class CContentOutlinePage extends Page implements IContentOutlinePage, ISelectionChangedListener { private static final int TEXT_FLAGS = AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS | CElementLabels.F_APP_TYPE_SIGNATURE | CElementLabels.M_APP_RETURNTYPE; @@ -113,9 +113,7 @@ public class CContentOutlinePage extends Page implements IContentOutlinePage, IS super(ActionMessages.getString("IncludesGroupingAction.label")); //$NON-NLS-1$ setDescription(ActionMessages.getString("IncludesGroupingAction.description")); //$NON-NLS-1$ setToolTipText(ActionMessages.getString("IncludeGroupingAction.tooltip")); //$NON-NLS-1$ - //CPluginImages.setImageDescriptors(this, CPluginImages.T_LCL, "synced.gif"); //$NON-NLS-1$ - CPluginImages.setImageDescriptors(this, CPluginImages.T_LCL, "open_incl.gif"); //$NON-NLS-1$ - PlatformUI.getWorkbench().getHelpSystem().setHelp(this, ICHelpContextIds.LINK_EDITOR_ACTION); + CPluginImages.setImageDescriptors(this, CPluginImages.T_LCL, CPluginImages.IMG_MENU_GROUP_INCLUDE); boolean enabled= isIncludesGroupingEnabled(); setChecked(enabled); @@ -300,7 +298,7 @@ public class CContentOutlinePage extends Page implements IContentOutlinePage, IS protected ProblemTreeViewer createTreeViewer(Composite parent) { fTreeViewer = new ProblemTreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); fTreeViewer.setContentProvider(createContentProvider(fTreeViewer)); - fTreeViewer.setLabelProvider(new DecoratingCLabelProvider(new StandardCElementLabelProvider(TEXT_FLAGS, IMAGE_FLAGS), true)); + fTreeViewer.setLabelProvider(new DecoratingCLabelProvider(new AppearanceAwareLabelProvider(TEXT_FLAGS, IMAGE_FLAGS), true)); fTreeViewer.setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS); fTreeViewer.setUseHashlookup(true); fTreeViewer.addSelectionChangedListener(this);