1919import org .eclipse .core .runtime .IStatus ;
2020import org .eclipse .core .runtime .Status ;
2121import org .eclipse .jface .dialogs .IDialogSettings ;
22- import org .eclipse .jface .resource .ImageDescriptor ;
2322import org .eclipse .swt .widgets .Shell ;
2423import org .eclipse .ui .plugin .AbstractUIPlugin ;
2524import org .osgi .framework .BundleContext ;
@@ -49,13 +48,6 @@ public void stop(BundleContext context) throws Exception {
4948 super .stop (context );
5049 }
5150
52- /**
53- * Returns the shared instance.
54- */
55- public static DataflowUiPlugin getDefault () {
56- return plugin ;
57- }
58-
5951 public static IDialogSettings getDialogSettingsSection (String sectionName ) {
6052 IDialogSettings settings = plugin .getDialogSettings ();
6153 IDialogSettings section = settings .getSection (sectionName );
@@ -65,15 +57,8 @@ public static IDialogSettings getDialogSettingsSection(String sectionName) {
6557 return section ;
6658 }
6759
68- /**
69- * Returns an image descriptor for the image file at the given plug-in relative path.
70- */
71- public static ImageDescriptor getImageDescriptor (String path ) {
72- return imageDescriptorFromPlugin (PLUGIN_ID , path );
73- }
74-
7560 private static void log (IStatus status ) {
76- getDefault () .getLog ().log (status );
61+ plugin .getLog ().log (status );
7762 }
7863
7964 public static void logInfo (String message , Object ... fArgs ) {
@@ -90,6 +75,6 @@ public static void logError(Throwable e, String message, Object... fArgs) {
9075 }
9176
9277 public static Shell getActiveWindowShell () {
93- return getDefault () .getWorkbench ().getActiveWorkbenchWindow ().getShell ();
78+ return plugin .getWorkbench ().getActiveWorkbenchWindow ().getShell ();
9479 }
9580}
0 commit comments