从这里回答http://www.eclipse.org/forums/index.php/t/362425/
MinifiedJavascriptUpdater:
package closure_compiler_save;import org.eclipse.ui.plugin.AbstractUIPlugin;import org.osgi.framework.BundleContext;public class Activator extends AbstractUIPlugin { // The plug-in ID public static final String PLUGIN_ID = "closure-compiler-save"; //$NON-NLS-1$ // The shared instance private static Activator plugin; public Activator() { } //gets here @Override public void start(BundleContext context) throws Exception { super.start(context); Activator.plugin = this; ResourcesPlugin.getWorkspace().addResourceChangeListener(new IResourceChangeListener() { public void resourceChanged(IResourceChangeEvent event) { System.out.println("Something changed!"); } }); } @Override public void stop(BundleContext context) throws Exception { Activator.plugin = null; super.stop(context); } public static Activator getDefault() { return plugin; }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)