X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.issues.ui%2Fsrc%2Forg%2Fsimantics%2Fissues%2Fui%2Finternal%2FActivator.java;h=17ac9c5c7da8437f146dd8360e7b76da912ce1d5;hp=790c0047198c3e2d66b9d2bd682088855bc6a565;hb=47269fe0acb894f346810417d950a1ab59cdc0ea;hpb=11309f6516278203264b680235cbbe1dc2bde98e diff --git a/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/internal/Activator.java b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/internal/Activator.java index 790c00471..17ac9c5c7 100644 --- a/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/internal/Activator.java +++ b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/internal/Activator.java @@ -26,7 +26,7 @@ import org.simantics.utils.ui.gfx.HSVAdjustmentImageDescriptor; public class Activator extends AbstractUIPlugin { - public static final String PLUGIN_ID = "org.simantics.issues.ui"; + public static final String PLUGIN_ID = "org.simantics.issues.ui"; //$NON-NLS-1$ static Activator instance; ServiceTracker messageScheme; @@ -59,29 +59,29 @@ public class Activator extends AbstractUIPlugin { Bundle bundle = context.getBundle(); - HIDE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/hide.png")); + HIDE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/hide.png")); //$NON-NLS-1$ UNHIDE_ICON = AlphaAdjustmentImageDescriptor.adjustAlpha(HSVAdjustmentImageDescriptor.adjust( HIDE_ICON, 0f, 0f, 1f), 96); //RESOLVE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/lightbulb.png")); //UNRESOLVE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/lightbulb_off.png")); - RESOLVE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/tick.png")); + RESOLVE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/tick.png")); //$NON-NLS-1$ UNRESOLVE_ICON = AlphaAdjustmentImageDescriptor.adjustAlpha(HSVAdjustmentImageDescriptor.adjust( RESOLVE_ICON, 0f, 0f, 1f), 96); - PURGE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/purge.gif")); + PURGE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/purge.gif")); //$NON-NLS-1$ - FATAL_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/fatal.png")); - ERROR_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/error.png")); - WARNING_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/warning.png")); - INFO_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/information.png")); - NOTE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/note.png")); - OK_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/noissue.png")); + FATAL_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/fatal.png")); //$NON-NLS-1$ + ERROR_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/error.png")); //$NON-NLS-1$ + WARNING_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/warning.png")); //$NON-NLS-1$ + INFO_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/information.png")); //$NON-NLS-1$ + NOTE_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/note.png")); //$NON-NLS-1$ + OK_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/noissue.png")); //$NON-NLS-1$ - FATAL_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/fatal_decoration.png")); - ERROR_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/error_decoration.png")); - WARNING_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/warning_decoration.png")); - INFO_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/information_decoration.png")); - NOTE_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/note_decoration.png")); + FATAL_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/fatal_decoration.png")); //$NON-NLS-1$ + ERROR_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/error_decoration.png")); //$NON-NLS-1$ + WARNING_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/warning_decoration.png")); //$NON-NLS-1$ + INFO_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/information_decoration.png")); //$NON-NLS-1$ + NOTE_DECORATION_ICON = ImageDescriptor.createFromURL(bundle.getResource("icons/note_decoration.png")); //$NON-NLS-1$ } @Override @@ -91,11 +91,11 @@ public class Activator extends AbstractUIPlugin { @Override protected void initializeImageRegistry(ImageRegistry reg) { - reg.put(Severity.FATAL.toString()+"-full", FATAL_ICON); - reg.put(Severity.ERROR.toString()+"-full", ERROR_ICON); - reg.put(Severity.WARNING.toString()+"-full", WARNING_ICON); - reg.put(Severity.INFO.toString()+"-full", INFO_ICON); - reg.put(Severity.NOTE.toString()+"-full", NOTE_ICON); + reg.put(Severity.FATAL.toString()+"-full", FATAL_ICON); //$NON-NLS-1$ + reg.put(Severity.ERROR.toString()+"-full", ERROR_ICON); //$NON-NLS-1$ + reg.put(Severity.WARNING.toString()+"-full", WARNING_ICON); //$NON-NLS-1$ + reg.put(Severity.INFO.toString()+"-full", INFO_ICON); //$NON-NLS-1$ + reg.put(Severity.NOTE.toString()+"-full", NOTE_ICON); //$NON-NLS-1$ reg.put(Severity.FATAL.toString(), FATAL_DECORATION_ICON); reg.put(Severity.ERROR.toString(), ERROR_DECORATION_ICON); reg.put(Severity.WARNING.toString(), WARNING_DECORATION_ICON); @@ -125,7 +125,7 @@ public class Activator extends AbstractUIPlugin { public static URL getDefaultResource(String name) { Activator plugin = getDefault(); - if(plugin == null) throw new IllegalStateException("The plugin is not active."); + if(plugin == null) throw new IllegalStateException("The plugin is not active."); //$NON-NLS-1$ Bundle bundle = plugin.getBundle(); return bundle.getResource(name); }