Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Anonymous
Saturday, January 26th, 2008 at 6:06:35am MST 

  1. some.process MANIFEST.MF:
  2.  
  3. Manifest-Version: 1.0
  4. Bundle-ManifestVersion: 2
  5. Bundle-Name: Process Plug-in
  6. Bundle-SymbolicName: some.process
  7. Bundle-Version: 1.0.0
  8. Bundle-Activator: some.process.Activator
  9. Require-Bundle: org.eclipse.core.runtime
  10. Eclipse-LazyStart: true
  11. Bundle-RequiredExecutionEnvironment: JavaSE-1.6
  12.  
  13. some.process.Activator:
  14. package some.process;
  15.  
  16. import org.eclipse.core.runtime.Plugin;
  17. import org.osgi.framework.BundleContext;
  18.  
  19. /**
  20.  * The activator class controls the plug-in life cycle
  21.  */
  22. public class Activator extends Plugin {
  23.  
  24.         // The plug-in ID
  25.         public static final String PLUGIN_ID = "some.process";
  26.  
  27.         // The shared instance
  28.         private static Activator plugin;
  29.        
  30.         /**
  31.          * The constructor
  32.          */
  33.         public Activator() {
  34.         }
  35.  
  36.         /*
  37.          * (non-Javadoc)
  38.          * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
  39.          */
  40.         public void start(BundleContext context) throws Exception {
  41.                 super.start(context);
  42.                 System.err.println("I'm running");
  43.                 Runtime.getRuntime().exec("runserver");
  44.                 plugin = this;
  45.         }
  46.  
  47.         /*
  48.          * (non-Javadoc)
  49.          * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
  50.          */
  51.         public void stop(BundleContext context) throws Exception {
  52.                 plugin = null;
  53.                 super.stop(context);
  54.         }
  55.  
  56.         /**
  57.          * Returns the shared instance
  58.          *
  59.          * @return the shared instance
  60.          */
  61.         public static Activator getDefault() {
  62.                 return plugin;
  63.         }
  64.  
  65. }

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right
worth-right