Skip to content

Commit 1f40aa1

Browse files
HeikoKlarejjohnstn
andauthored
Replace pre-generated disabled icon with on-the-fly generated ones (#2190)
* Replace pre-generated disabled icon with on-the-fly generated ones SWT's algorithm to calculate disabled icons on the fly has been enhanced to produce results that are equal to the existing, pre-generated disabled icons being used. This makes the usage of pre-generated disabled icons obsolete. This is particularly important for the introduction of SVG icons, as the quality of on-the-fly generated disabled icons based on the original SVGs is better for arbitrary zooms than the scaled up or scaled downs versions of the PNG-based disabled icons. This change removes all explicit specifications of disabled image descriptors or replaces them with image descriptors derived from their enabled version. * Fix missing comment specifier --------- Co-authored-by: Jeff Johnston <[email protected]>
1 parent 877c999 commit 1f40aa1

29 files changed

+29
-111
lines changed

org.eclipse.jdt.astview/src/org/eclipse/jdt/astview/ASTViewImages.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ public class ASTViewImages {
4141
//---- Helper methods to access icons on the file system --------------------------------------
4242

4343
public static void setImageDescriptors(IAction action, String type) {
44-
ImageDescriptor id= create("d", type); //$NON-NLS-1$
45-
if (id != null)
46-
action.setDisabledImageDescriptor(id);
47-
48-
id= create("e", type); //$NON-NLS-1$
44+
ImageDescriptor id= create("e", type); //$NON-NLS-1$
4945
if (id != null) {
5046
action.setImageDescriptor(id);
5147
} else {

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/CompareResultsAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public CompareResultsAction(FailureTrace view) {
3131
setDescription(JUnitMessages.CompareResultsAction_description);
3232
setToolTipText(JUnitMessages.CompareResultsAction_tooltip);
3333

34-
setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/compare.png")); //$NON-NLS-1$
3534
setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/compare.svg")); //$NON-NLS-1$
3635
//PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJUnitHelpContextIds.ENABLEFILTER_ACTION);
3736
fView= view;

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/EnableStackFilterAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public EnableStackFilterAction(FailureTrace view) {
3232
setDescription(JUnitMessages.EnableStackFilterAction_action_description);
3333
setToolTipText(JUnitMessages.EnableStackFilterAction_action_tooltip);
3434

35-
setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/cfilter.png")); //$NON-NLS-1$
3635
setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/cfilter.svg")); //$NON-NLS-1$
3736
PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJUnitHelpContextIds.ENABLEFILTER_ACTION);
3837

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/JUnitPlugin.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,6 @@ public static void setLocalImageDescriptors(IAction action, String iconName) {
148148
}
149149

150150
private static void setImageDescriptors(IAction action, String type, String relPath) {
151-
ImageDescriptor id= createImageDescriptor("d" + type, relPath, false); //$NON-NLS-1$
152-
if (id != null)
153-
action.setDisabledImageDescriptor(id);
154-
155151
ImageDescriptor descriptor= createImageDescriptor("e" + type, relPath, true); //$NON-NLS-1$
156152
action.setImageDescriptor(descriptor);
157153
}

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ScrollLockAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public ScrollLockAction(TestRunnerViewPart viewer) {
2929
super(JUnitMessages.ScrollLockAction_action_label);
3030
fRunnerViewPart= viewer;
3131
setToolTipText(JUnitMessages.ScrollLockAction_action_tooltip);
32-
setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/lock.png")); //$NON-NLS-1$
3332
setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/lock.svg")); //$NON-NLS-1$
3433
PlatformUI.getWorkbench().getHelpSystem().setHelp(
3534
this,

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowNextFailureAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ShowNextFailureAction extends Action {
2121

2222
public ShowNextFailureAction(TestRunnerViewPart part) {
2323
super(JUnitMessages.ShowNextFailureAction_label);
24-
setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/select_next.png")); //$NON-NLS-1$
2524
setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_next.svg")); //$NON-NLS-1$
2625
setToolTipText(JUnitMessages.ShowNextFailureAction_tooltip);
2726
fPart= part;

org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/ShowPreviousFailureAction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ShowPreviousFailureAction extends Action {
2121

2222
public ShowPreviousFailureAction(TestRunnerViewPart part) {
2323
super(JUnitMessages.ShowPreviousFailureAction_label);
24-
setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/select_prev.png")); //$NON-NLS-1$
2524
setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_prev.svg")); //$NON-NLS-1$
2625
setToolTipText(JUnitMessages.ShowPreviousFailureAction_tooltip);
2726
fPart= part;

org.eclipse.jdt.ui/internal compatibility/org/eclipse/jdt/internal/ui/dialogs/TypeSelectionComponent.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ private void createViewMenu(Composite parent) {
352352
fToolBar.setLayoutData(data);
353353

354354
fToolItem.setImage(JavaPluginImages.get(JavaPluginImages.IMG_ELCL_VIEW_MENU));
355-
fToolItem.setDisabledImage(JavaPluginImages.get(JavaPluginImages.IMG_DLCL_VIEW_MENU));
356355
fToolItem.setToolTipText(JavaUIMessages.TypeSelectionComponent_menu);
357356
fToolItem.addSelectionListener(new SelectionAdapter() {
358357
@Override

org.eclipse.jdt.ui/plugin.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,6 @@
15231523
toolbarPath="org.eclipse.ui.edit.text.actionSet.presentation/Presentation"
15241524
id="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"
15251525
definitionId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences"
1526-
disabledIcon="$nl$/icons/full/dtool16/mark_occurrences.png"
15271526
icon="$nl$/icons/full/etool16/mark_occurrences.svg"
15281527
helpContextId="org.eclipse.jdt.ui.toggle_mark_occurrences_action_context"
15291528
label="%toggleMarkOccurrences.label"
@@ -1536,7 +1535,6 @@
15361535
toolbarPath="org.eclipse.ui.edit.text.actionSet.presentation/Presentation"
15371536
id="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"
15381537
definitionId="org.eclipse.jdt.ui.edit.text.java.toggleBreadcrumb"
1539-
disabledIcon="$nl$/icons/full/dtool16/toggle_breadcrumb.png"
15401538
icon="$nl$/icons/full/etool16/toggle_breadcrumb.svg"
15411539
helpContextId="org.eclipse.jdt.ui.toggle_mini_browser_action_context"
15421540
label="%toggleBreadcrumb.label"
@@ -1984,7 +1982,6 @@
19841982
id="org.eclipse.jdt.ui.actions.NewTypeDropDown"
19851983
toolbarPath="Normal/JavaWizards"
19861984
class="org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction"
1987-
disabledIcon="$nl$/icons/full/dtool16/newclass_wiz.png"
19881985
icon="$nl$/icons/full/etool16/newclass_wiz.svg"
19891986
label="%OpenClassWizardAction.label"
19901987
style="pulldown"

org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPluginImages.java

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
import org.osgi.framework.Bundle;
2828

29+
import org.eclipse.swt.SWT;
2930
import org.eclipse.swt.graphics.Image;
3031
import org.eclipse.swt.graphics.ImageData;
3132
import org.eclipse.swt.widgets.Display;
@@ -57,9 +58,7 @@ public class JavaPluginImages {
5758
private static final String T_OVR= "ovr16"; //$NON-NLS-1$
5859
private static final String T_WIZBAN= "wizban"; //$NON-NLS-1$
5960
private static final String T_ELCL= "elcl16"; //$NON-NLS-1$
60-
private static final String T_DLCL= "dlcl16"; //$NON-NLS-1$
6161
private static final String T_ETOOL= "etool16"; //$NON-NLS-1$
62-
private static final String T_DTOOL= "dtool16"; //$NON-NLS-1$
6362
private static final String T_EVIEW= "eview16"; //$NON-NLS-1$
6463

6564
/*
@@ -77,7 +76,6 @@ public class JavaPluginImages {
7776
public static final String IMG_FIELD_DEFAULT= NAME_PREFIX + "field_default_obj.gif"; //$NON-NLS-1$
7877

7978
public static final String IMG_ELCL_VIEW_MENU= NAME_PREFIX + T_ELCL + "view_menu.gif"; //$NON-NLS-1$
80-
public static final String IMG_DLCL_VIEW_MENU= NAME_PREFIX + T_DLCL + "view_menu.gif"; //$NON-NLS-1$
8179

8280
public static final String IMG_OBJS_GHOST= NAME_PREFIX + "ghost.gif"; //$NON-NLS-1$
8381
public static final String IMG_OBJS_SEARCH_TSK= NAME_PREFIX + "search_tsk.gif"; //$NON-NLS-1$
@@ -213,13 +211,10 @@ public class JavaPluginImages {
213211
public static final ImageDescriptor DESC_VIEW_JDKCOMPLIANCE_TAB= createUnManaged(T_EVIEW, "jdkcompliance_tab.svg"); //$NON-NLS-1$
214212

215213
public static final ImageDescriptor DESC_ELCL_FILTER= createUnManaged(T_ELCL, "filter_ps.svg"); //$NON-NLS-1$
216-
public static final ImageDescriptor DESC_DLCL_FILTER= createUnManaged(T_DLCL, "filter_ps.png"); //$NON-NLS-1$
217214

218215
public static final ImageDescriptor DESC_ELCL_CODE_ASSIST= createUnManaged(T_ELCL, "metharg_obj.svg"); //$NON-NLS-1$
219-
public static final ImageDescriptor DESC_DLCL_CODE_ASSIST= createUnManaged(T_DLCL, "metharg_obj.png"); //$NON-NLS-1$
220216

221217
public static final ImageDescriptor DESC_ELCL_VIEW_MENU= createManaged(T_ELCL, "view_menu.svg", IMG_ELCL_VIEW_MENU); //$NON-NLS-1$
222-
public static final ImageDescriptor DESC_DLCL_VIEW_MENU= createManaged(T_DLCL, "view_menu.png", IMG_DLCL_VIEW_MENU); //$NON-NLS-1$
223218

224219
public static final ImageDescriptor DESC_MISC_PUBLIC= createManagedFromKey(T_OBJ, IMG_MISC_PUBLIC);
225220
public static final ImageDescriptor DESC_MISC_PROTECTED= createManagedFromKey(T_OBJ, IMG_MISC_PROTECTED);
@@ -249,7 +244,6 @@ public class JavaPluginImages {
249244
public static final ImageDescriptor DESC_OBJS_CFILE= createManagedFromKey(T_OBJ, IMG_OBJS_CFILE);
250245
public static final ImageDescriptor DESC_OBJS_CFILECLASS= createManagedFromKey(T_OBJ, IMG_OBJS_CFILECLASS);
251246
public static final ImageDescriptor DESC_ELCL_CLEAR= createUnManaged(T_ELCL, "clear_co.svg"); //$NON-NLS-1$
252-
public static final ImageDescriptor DESC_DLCL_CLEAR= createUnManaged(T_DLCL, "clear_co.png"); //$NON-NLS-1$
253247
public static final ImageDescriptor DESC_OBJS_CFILEINT= createManagedFromKey(T_OBJ, IMG_OBJS_CFILEINT);
254248
public static final ImageDescriptor DESC_OBJS_PACKAGE= createManagedFromKey(T_OBJ, IMG_OBJS_PACKAGE);
255249
public static final ImageDescriptor DESC_OBJS_EMPTY_LOGICAL_PACKAGE= createManagedFromKey(T_OBJ, IMG_OBJS_EMPTY_LOGICAL_PACKAGE);
@@ -383,46 +377,28 @@ public class JavaPluginImages {
383377
public static final ImageDescriptor DESC_ELCL_INCLUSION= createUnManaged(T_ELCL, "inclusion_filter_attrib.svg"); //$NON-NLS-1$
384378
public static final ImageDescriptor DESC_ELCL_EXCLUSION= createUnManaged(T_ELCL, "exclusion_filter_attrib.svg"); //$NON-NLS-1$
385379

386-
public static final ImageDescriptor DESC_DLCL_ADD_TO_BP= createUnManaged(T_DLCL, "add_to_buildpath.png"); //$NON-NLS-1$
387-
public static final ImageDescriptor DESC_DLCL_REMOVE_FROM_BP= createUnManaged(T_DLCL, "remove_from_buildpath.png"); //$NON-NLS-1$
388-
public static final ImageDescriptor DESC_DLCL_INCLUSION= createUnManaged(T_DLCL, "inclusion_filter_attrib.png"); //$NON-NLS-1$
389-
public static final ImageDescriptor DESC_DLCL_EXCLUSION= createUnManaged(T_DLCL, "exclusion_filter_attrib.png"); //$NON-NLS-1$
390-
391-
public static final ImageDescriptor DESC_DLCL_ADD_LINKED_SOURCE_TO_BUILDPATH= createUnManaged(T_DLCL, "add_linked_source_to_buildpath.png"); //$NON-NLS-1$
392380
public static final ImageDescriptor DESC_ELCL_ADD_LINKED_SOURCE_TO_BUILDPATH= createUnManaged(T_ELCL, "add_linked_source_to_buildpath.svg"); //$NON-NLS-1$
393381

394-
public static final ImageDescriptor DESC_DLCL_CONFIGURE_BUILDPATH= createUnManaged(T_DLCL, "configure_build_path.png"); //$NON-NLS-1$
395382
public static final ImageDescriptor DESC_ELCL_CONFIGURE_BUILDPATH= createUnManaged(T_ELCL, "configure_build_path.svg"); //$NON-NLS-1$
396383

397-
public static final ImageDescriptor DESC_DLCL_CONFIGURE_ANNOTATIONS= createUnManaged(T_DLCL, "configure_annotations.png"); //$NON-NLS-1$
398384
public static final ImageDescriptor DESC_ELCL_CONFIGURE_ANNOTATIONS= createUnManaged(T_ELCL, "configure_annotations.svg"); //$NON-NLS-1$
399385

400-
public static final ImageDescriptor DESC_DLCL_CONFIGURE_BUILDPATH_FILTERS= createUnManaged(T_DLCL, "configure_buildpath_filters.png"); //$NON-NLS-1$
401386
public static final ImageDescriptor DESC_ELCL_CONFIGURE_BUILDPATH_FILTERS= createUnManaged(T_ELCL, "configure_buildpath_filters.svg"); //$NON-NLS-1$
402387

403-
public static final ImageDescriptor DESC_DLCL_CONFIGURE_OUTPUT_FOLDER= createUnManaged(T_DLCL, "configure_output_folder.png"); //$NON-NLS-1$
404388
public static final ImageDescriptor DESC_ELCL_CONFIGURE_OUTPUT_FOLDER= createUnManaged(T_ELCL, "configure_output_folder.svg"); //$NON-NLS-1$
405389

406-
public static final ImageDescriptor DESC_DLCL_CONFIGURE_PROBLEM_SEVERITIES= createUnManaged(T_DLCL, "configure_problem_severity.png"); //$NON-NLS-1$
407390
public static final ImageDescriptor DESC_ELCL_CONFIGURE_PROBLEM_SEVERITIES= createManagedFromKey(T_ELCL, IMG_CONFIGURE_PROBLEM_SEVERITIES);
408391

409-
public static final ImageDescriptor DESC_DLCL_EXCLUDE_FROM_BUILDPATH= createUnManaged(T_DLCL, "exclude_from_buildpath.png"); //$NON-NLS-1$
410392
public static final ImageDescriptor DESC_ELCL_EXCLUDE_FROM_BUILDPATH= createUnManaged(T_ELCL, "exclude_from_buildpath.svg"); //$NON-NLS-1$
411393

412-
public static final ImageDescriptor DESC_DLCL_INCLUDE_ON_BUILDPATH= createUnManaged(T_DLCL, "include_on_buildpath.png"); //$NON-NLS-1$
413394
public static final ImageDescriptor DESC_ELCL_INCLUDE_ON_BUILDPATH= createUnManaged(T_ELCL, "include_on_buildpath.svg"); //$NON-NLS-1$
414395

415-
public static final ImageDescriptor DESC_DLCL_ADD_AS_SOURCE_FOLDER= createUnManaged(T_DLCL, "add_as_source_folder.png"); //$NON-NLS-1$
416396
public static final ImageDescriptor DESC_ELCL_ADD_AS_SOURCE_FOLDER= createUnManaged(T_ELCL, "add_as_source_folder.svg"); //$NON-NLS-1$
417397

418-
public static final ImageDescriptor DESC_DLCL_REMOVE_AS_SOURCE_FOLDER= createUnManaged(T_DLCL, "remove_as_source_folder.png"); //$NON-NLS-1$
419398
public static final ImageDescriptor DESC_ELCL_REMOVE_AS_SOURCE_FOLDER= createUnManaged(T_ELCL, "remove_as_source_folder.svg"); //$NON-NLS-1$
420399

421-
public static final ImageDescriptor DESC_DLCL_COPY_QUALIFIED_NAME= createUnManaged(T_DLCL, "cpyqual_menu.png"); //$NON-NLS-1$
422400
public static final ImageDescriptor DESC_ELCL_COPY_QUALIFIED_NAME= createUnManaged(T_ELCL, "cpyqual_menu.svg"); //$NON-NLS-1$
423401

424-
public static final ImageDescriptor DESC_DLCL_OPEN_BROWSER= createUnManaged(T_DLCL, "open_browser.png"); //$NON-NLS-1$
425-
426402
public static final ImageDescriptor DESC_ELCL_OPEN_BROWSER= createUnManaged(T_ELCL, "open_browser.svg"); //$NON-NLS-1$
427403

428404
public static final ImageDescriptor DESC_OBJ_OVERRIDES= createUnManaged(T_OBJ, "over_co.svg"); //$NON-NLS-1$
@@ -516,43 +492,28 @@ public class JavaPluginImages {
516492

517493
public static final ImageDescriptor DESC_TOOL_CLASSPATH_ORDER= createUnManaged(T_OBJ, "cp_order_obj.svg"); //$NON-NLS-1$
518494
public static final ImageDescriptor DESC_ELCL_EXPANDALL= createUnManaged(T_ELCL, "expandall.svg"); //$NON-NLS-1$
519-
public static final ImageDescriptor DESC_DLCL_EXPANDALL= createUnManaged(T_DLCL, "expandall.png"); //$NON-NLS-1$
520495
public static final ImageDescriptor DESC_ELCL_COLLAPSEALL= createUnManaged(T_ELCL, "collapseall.svg"); //$NON-NLS-1$
521-
public static final ImageDescriptor DESC_DLCL_COLLAPSEALL= createUnManaged(T_DLCL, "collapseall.png"); //$NON-NLS-1$
522496

523497
public static final ImageDescriptor DESC_ELCL_MODIFYALL= createUnManaged(T_ELCL, "modifyall.svg"); //$NON-NLS-1$
524498

525499
public static final ImageDescriptor DESC_ELCL_REMOVE_EXTRA_LINES= createUnManaged(T_ELCL, "remove_extra_lines.svg"); //$NON-NLS-1$
526-
public static final ImageDescriptor DESC_DLCL_REMOVE_EXTRA_LINES= createUnManaged(T_DLCL, "remove_extra_lines.png"); //$NON-NLS-1$
527500

528501
// Image descriptors used for formatter line wrapping preferences
529502
public static final ImageDescriptor DESC_ELCL_INDENT_COLUMN= createUnManaged(T_ELCL, "indent_column.svg"); //$NON-NLS-1$
530-
public static final ImageDescriptor DESC_DLCL_INDENT_COLUMN= createUnManaged(T_DLCL, "indent_column.png"); //$NON-NLS-1$
531503
public static final ImageDescriptor DESC_ELCL_INDENT_DEFAULT= createUnManaged(T_ELCL, "indent_default.svg"); //$NON-NLS-1$
532-
public static final ImageDescriptor DESC_DLCL_INDENT_DEFAULT= createUnManaged(T_DLCL, "indent_default.png"); //$NON-NLS-1$
533504
public static final ImageDescriptor DESC_ELCL_INDENT_ONE= createUnManaged(T_ELCL, "indent_one.svg"); //$NON-NLS-1$
534-
public static final ImageDescriptor DESC_DLCL_INDENT_ONE= createUnManaged(T_DLCL, "indent_one.png"); //$NON-NLS-1$
535505
public static final ImageDescriptor DESC_ELCL_WRAP_AFTER= createUnManaged(T_ELCL, "wrap_after.svg"); //$NON-NLS-1$
536-
public static final ImageDescriptor DESC_DLCL_WRAP_AFTER= createUnManaged(T_DLCL, "wrap_after.png"); //$NON-NLS-1$
537506
public static final ImageDescriptor DESC_ELCL_WRAP_ALL= createUnManaged(T_ELCL, "wrap_all.svg"); //$NON-NLS-1$
538-
public static final ImageDescriptor DESC_DLCL_WRAP_ALL= createUnManaged(T_DLCL, "wrap_all.png"); //$NON-NLS-1$
539507
public static final ImageDescriptor DESC_ELCL_WRAP_ALL_INDENT= createUnManaged(T_ELCL, "wrap_all_indent.svg"); //$NON-NLS-1$
540-
public static final ImageDescriptor DESC_DLCL_WRAP_ALL_INDENT= createUnManaged(T_DLCL, "wrap_all_indent.png"); //$NON-NLS-1$
541508
public static final ImageDescriptor DESC_ELCL_WRAP_ALL_NOT_FIRST= createUnManaged(T_ELCL, "wrap_all_not_first.svg"); //$NON-NLS-1$
542-
public static final ImageDescriptor DESC_DLCL_WRAP_ALL_NOT_FIRST= createUnManaged(T_DLCL, "wrap_all_not_first.png"); //$NON-NLS-1$
543509
public static final ImageDescriptor DESC_ELCL_WRAP_BEFORE= createUnManaged(T_ELCL, "wrap_before.svg"); //$NON-NLS-1$
544-
public static final ImageDescriptor DESC_DLCL_WRAP_BEFORE= createUnManaged(T_DLCL, "wrap_before.png"); //$NON-NLS-1$
545510
public static final ImageDescriptor DESC_ELCL_WRAP_FIRST_NECESSARY= createUnManaged(T_ELCL, "wrap_first_necessary.svg"); //$NON-NLS-1$
546-
public static final ImageDescriptor DESC_DLCL_WRAP_FIRST_NECESSARY= createUnManaged(T_DLCL, "wrap_first_necessary.png"); //$NON-NLS-1$
547511
public static final ImageDescriptor DESC_ELCL_WRAP_FORCE= createUnManaged(T_ELCL, "wrap_force.svg"); //$NON-NLS-1$
548-
public static final ImageDescriptor DESC_DLCL_WRAP_FORCE= createUnManaged(T_DLCL, "wrap_force.png"); //$NON-NLS-1$
549512
public static final ImageDescriptor DESC_ELCL_WRAP_NECESSARY= createUnManaged(T_ELCL, "wrap_necessary.svg"); //$NON-NLS-1$
550-
public static final ImageDescriptor DESC_DLCL_WRAP_NECESSARY= createUnManaged(T_DLCL, "wrap_necessary.png"); //$NON-NLS-1$
551513
public static final ImageDescriptor DESC_ELCL_WRAP_NOT= createUnManaged(T_ELCL, "wrap_not.svg"); //$NON-NLS-1$
552-
public static final ImageDescriptor DESC_DLCL_WRAP_NOT= createUnManaged(T_DLCL, "wrap_not.png"); //$NON-NLS-1$
553514

554515
public static final ImageDescriptor DESC_ETOOL_JDOC_HOVER_EDIT= createUnManaged(T_ETOOL, "jdoc_hover_edit.svg"); //$NON-NLS-1$
555-
public static final ImageDescriptor DESC_DTOOL_JDOC_HOVER_EDIT= createUnManaged(T_DTOOL, "jdoc_hover_edit.png"); //$NON-NLS-1$
516+
public static final ImageDescriptor DESC_DTOOL_JDOC_HOVER_EDIT= ImageDescriptor.createWithFlags(DESC_ETOOL_JDOC_HOVER_EDIT, SWT.IMAGE_DISABLE);
556517

557518
// Keys for correction proposal. We have to put the image into the registry since "code assist" doesn't
558519
// have a life cycle. So no chance to dispose icons.

0 commit comments

Comments
 (0)