aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Piggott2011-01-26 14:32:11 (EST)
committerMilos Kleint2011-02-02 10:26:50 (EST)
commit6038488eae42b1319ef96ab5a2bee1221b4a0cc7 (patch)
tree89263965b29837258c560bac178672e3b2dc579d
parent7ce56aff3a66563304fde469df3b6ce8d81f6bdc (diff)
downloadm2e-core-6038488eae42b1319ef96ab5a2bee1221b4a0cc7.zip
m2e-core-6038488eae42b1319ef96ab5a2bee1221b4a0cc7.tar.gz
m2e-core-6038488eae42b1319ef96ab5a2bee1221b4a0cc7.tar.bz2
Bug 335491 - Add icon for discovery quickfix
Icon copied from org.eclipse.jdt.debug.ui
-rw-r--r--org.eclipse.m2e.discovery/icons/insp_sbook.gifbin0 -> 545 bytes
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java2
-rw-r--r--org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java3
3 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.m2e.discovery/icons/insp_sbook.gif b/org.eclipse.m2e.discovery/icons/insp_sbook.gif
new file mode 100644
index 0000000..a4548c5
--- /dev/null
+++ b/org.eclipse.m2e.discovery/icons/insp_sbook.gif
Binary files differ
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
index 4f20052..3519391 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/MavenDiscoveryIcons.java
@@ -29,6 +29,8 @@ public class MavenDiscoveryIcons {
private static ImageRegistry imageRegistry;
public static final ImageDescriptor WIZARD_BANNER = create("banner.gif"); //$NON-NLS-1$
+
+ public static final ImageDescriptor QUICK_FIX_ICON = create("insp_sbook.gif"); //$NON-NLS-1$
private static ImageDescriptor create(String string) {
try {
diff --git a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
index f9b8a05..5c3b5c7 100644
--- a/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
+++ b/org.eclipse.m2e.discovery/src/org/eclipse/m2e/internal/discovery/markers/DiscoveryWizardProposal.java
@@ -21,6 +21,7 @@ import org.eclipse.core.resources.IMarker;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.m2e.core.core.IMavenConstants;
import org.eclipse.m2e.internal.discovery.MavenDiscovery;
+import org.eclipse.m2e.internal.discovery.MavenDiscoveryIcons;
import org.eclipse.m2e.internal.discovery.Messages;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.views.markers.WorkbenchMarkerResolution;
@@ -56,7 +57,7 @@ class DiscoveryWizardProposal extends WorkbenchMarkerResolution {
}
public Image getImage() {
- return null; //TODO needs an icon
+ return MavenDiscoveryIcons.getImage(MavenDiscoveryIcons.QUICK_FIX_ICON);
}
@Override