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;
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
@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);
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);
}