26
26
import org .eclipse .jface .resource .ImageDescriptor ;
27
27
import org .eclipse .jface .text .IDocument ;
28
28
import org .eclipse .jface .viewers .Viewer ;
29
+ import org .eclipse .swt .SWT ;
29
30
import org .eclipse .swt .graphics .Image ;
30
31
import org .eclipse .swt .widgets .Composite ;
31
32
import org .eclipse .ui .IReusableEditor ;
@@ -60,11 +61,6 @@ public final class CompareUI {
60
61
*/
61
62
public static final String PREFERENCE_PAGE_ID = "org.eclipse.compare.internal.ComparePreferencePage" ; //$NON-NLS-1$
62
63
63
- /**
64
- * Image descriptor for the disabled icon of the 'Next' tool bar button.
65
- * @since 2.0
66
- */
67
- public static final ImageDescriptor DESC_DTOOL_NEXT = CompareUIPlugin .getImageDescriptor (ICompareUIConstants .DTOOL_NEXT );
68
64
/**
69
65
* Image descriptor for the normal icon of the 'Next' tool bar button.
70
66
* @since 2.0
@@ -75,12 +71,12 @@ public final class CompareUI {
75
71
* @since 2.0
76
72
*/
77
73
public static final ImageDescriptor DESC_ETOOL_NEXT = CompareUIPlugin .getImageDescriptor (ICompareUIConstants .ETOOL_NEXT );
78
-
79
74
/**
80
- * Image descriptor for the disabled icon of the 'Previous ' tool bar button.
75
+ * Image descriptor for the disabled icon of the 'Next ' tool bar button.
81
76
* @since 2.0
82
77
*/
83
- public static final ImageDescriptor DESC_DTOOL_PREV = CompareUIPlugin .getImageDescriptor (ICompareUIConstants .DTOOL_PREV );
78
+ public static final ImageDescriptor DESC_DTOOL_NEXT = ImageDescriptor .createWithFlags (DESC_ETOOL_NEXT , SWT .IMAGE_DISABLE );
79
+
84
80
/**
85
81
* Image descriptor for the normal icon of the 'Previous' tool bar button.
86
82
* @since 2.0
@@ -91,6 +87,11 @@ public final class CompareUI {
91
87
* @since 2.0
92
88
*/
93
89
public static final ImageDescriptor DESC_ETOOL_PREV = CompareUIPlugin .getImageDescriptor (ICompareUIConstants .ETOOL_PREV );
90
+ /**
91
+ * Image descriptor for the disabled icon of the 'Previous' tool bar button.
92
+ * @since 2.0
93
+ */
94
+ public static final ImageDescriptor DESC_DTOOL_PREV = ImageDescriptor .createWithFlags (DESC_ETOOL_PREV , SWT .IMAGE_DISABLE );
94
95
95
96
/**
96
97
* Name of the title property of a compare viewer.
0 commit comments