Results 1 to 2 of 2
  1. #1
    KingAndrew is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default Why is my Plugin Activator not being started?

    Hi All,
    I have an rcp. It has 2 plugins. One core and one ui. The activator for the ui is not getting called. The activator is:
    Java Code:
    Plugin extends AbstractUIPlugin
    	public void start(BundleContext context) throws Exception {
    		plugin = this;
    And in the MANIFEST.MF it has:
    Java Code:
    Manifest-Version: 1.0
    Bundle-ManifestVersion: 2
    Bundle-Name: Ui Plug-in
    Bundle-SymbolicName: com.myco.omni.adminsuite.ui; singleton:=true
    Bundle-Version: 1.0.0
    [B]Bundle-Activator: com.myco.omni.adminsuite.ui.Plugin[/B]
    Bundle-Vendor: myco
    Require-Bundle: org.eclipse.ui,
    Bundle-RequiredExecutionEnvironment: JavaSE-1.6
    When I am in on of my Views I call Plugin.getDefault(); and it returns null so clearly the start method has not been called.

    Does anyone see what I'm not doing that I should be?

    Thanks in advance,


  2. #2
    KingAndrew is offline Member
    Join Date
    Nov 2008
    Rep Power


    Talk about the weirdest thing. I still don't know why it wasn't calling/activating my plug-in so I decided to do it myself
    Java Code:
    Plugin plugin = Plugin.getDefault();
    			if(null == plugin){
    				plugin = [B]activatePlugin[/B](Plugin.PLUGIN_ID);
    private Plugin [B]activatePlugin[/B](String pluginID) {
    		Bundle bundle = Platform.getBundle(pluginID);
    		try {
    		} catch (BundleException e) {
    			// Auto-generated catch block
    		Application.writeToConsole("The Plug-in "+pluginID+" : "+bundle.getState());
    		return Plugin.getDefault();
    So that got it to load my plug-in. Hurray!!

    So I think I'll move that method somewhere that others can use it and while I'm trying it in the debugger from a fresh re-start of the application it does not get called but the start method on the plug-in is getting called like it should of from the start.

    So it seems like the plug-in registry has learned that it is supposed to load that plug-in now.

    Hope this helps someone else one day,


Similar Threads

  1. JSP Getting Started.
    By sukatoa in forum JavaServer Pages (JSP) and JSTL
    Replies: 7
    Last Post: 07-21-2008, 03:08 AM
  2. How do I get started?
    By programmer-in-training in forum New To Java
    Replies: 4
    Last Post: 01-11-2008, 08:45 AM
  3. Getting Started
    By Doorsmaniac in forum Java Applets
    Replies: 0
    Last Post: 11-24-2007, 04:40 AM
  4. I need help getting started
    By Android in forum New To Java
    Replies: 2
    Last Post: 10-30-2007, 05:46 PM
  5. AnyEdit Plugin For Eclipse Plugin
    By JavaForums in forum Eclipse
    Replies: 0
    Last Post: 05-18-2007, 01:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts