Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Anyone ever successfully used org.eclipse.ui.IStartup
Anyone ever successfully used org.eclipse.ui.IStartup [message #29104] Wed, 02 October 2002 15:20 Go to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.nospam

Anyone ever successfully used org.eclipse.ui.IStartup ?
I am getting

java.lang.ClassCastException:
org.eclipse.core.internal.plugins.DefaultPlugin
at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
at
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
:831)
at org.eclipse.core.runtime.Platform.run(Platform.java:416)
at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
at java.lang.Thread.run(Thread.java:536
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #29179 is a reply to message #29104] Wed, 02 October 2002 16:59 Go to previous messageGo to next message
Andrew McCullough is currently offline Andrew McCulloughFriend
Messages: 26
Registered: July 2009
Junior Member
Yes. Your plugin class must implement the IStartup interface and its method
(earlyStartup()), as well as defining the extension point in your
plugin.xml. I suspect that you have defined the extension point but not
implemented the interface (thus the ClassCast)?

-Andrew

"Alex" <nospam@nospam.nospam> wrote in message
news:anf1bu$khd$1@rogue.oti.com...
> Anyone ever successfully used org.eclipse.ui.IStartup ?
> I am getting
>
> java.lang.ClassCastException:
> org.eclipse.core.internal.plugins.DefaultPlugin
> at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :831)
> at org.eclipse.core.runtime.Platform.run(Platform.java:416)
> at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
> at java.lang.Thread.run(Thread.java:536
>
>
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #30246 is a reply to message #29179] Mon, 07 October 2002 15:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nospam.nospam.nospam

I have implemented the interface:

package ...;

import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.ui.IStartup;

/public class MyPlugin extends AbstractUIPlugin implements IStartup{

public MyPlugin(IPluginDescriptor descriptor) {
super(descriptor);
}

public void earlyStartup()
{
//System.out.println("earlyStartup");
}

}

"Andrew McCullough" <mccull1@us.ibm.com> wrote in message
news:anf779$okp$1@rogue.oti.com...
>
> Yes. Your plugin class must implement the IStartup interface and its
method
> (earlyStartup()), as well as defining the extension point in your
> plugin.xml. I suspect that you have defined the extension point but not
> implemented the interface (thus the ClassCast)?
>
> -Andrew
>
> "Alex" <nospam@nospam.nospam> wrote in message
> news:anf1bu$khd$1@rogue.oti.com...
> > Anyone ever successfully used org.eclipse.ui.IStartup ?
> > I am getting
> >
> > java.lang.ClassCastException:
> > org.eclipse.core.internal.plugins.DefaultPlugin
> > at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :831)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:416)
> > at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
> > at java.lang.Thread.run(Thread.java:536
> >
> >
>
>
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #30352 is a reply to message #29104] Mon, 07 October 2002 18:41 Go to previous message
Eclipse UserFriend
Originally posted by: john_arthorne.o_ti.com

The stack trace shows you are using the DefaultPlugin. This means you
are missing the "class" attribute for your plugin definition.
-

Alex wrote:

>Anyone ever successfully used org.eclipse.ui.IStartup ?
>I am getting
>
>java.lang.ClassCastException:
>org.eclipse.core.internal.plugins.DefaultPlugin
>at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
>at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
>:831)
>at org.eclipse.core.runtime.Platform.run(Platform.java:416)
>at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
>at java.lang.Thread.run(Thread.java:536
>
>
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #583935 is a reply to message #29104] Wed, 02 October 2002 16:59 Go to previous message
Andrew McCullough is currently offline Andrew McCulloughFriend
Messages: 26
Registered: July 2009
Junior Member
Yes. Your plugin class must implement the IStartup interface and its method
(earlyStartup()), as well as defining the extension point in your
plugin.xml. I suspect that you have defined the extension point but not
implemented the interface (thus the ClassCast)?

-Andrew

"Alex" <nospam@nospam.nospam> wrote in message
news:anf1bu$khd$1@rogue.oti.com...
> Anyone ever successfully used org.eclipse.ui.IStartup ?
> I am getting
>
> java.lang.ClassCastException:
> org.eclipse.core.internal.plugins.DefaultPlugin
> at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
> at
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> :831)
> at org.eclipse.core.runtime.Platform.run(Platform.java:416)
> at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
> at java.lang.Thread.run(Thread.java:536
>
>
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #584243 is a reply to message #29179] Mon, 07 October 2002 15:32 Go to previous message
Alex is currently offline AlexFriend
Messages: 65
Registered: July 2009
Member
I have implemented the interface:

package ...;

import org.eclipse.core.runtime.IPluginDescriptor;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.ui.IStartup;

/public class MyPlugin extends AbstractUIPlugin implements IStartup{

public MyPlugin(IPluginDescriptor descriptor) {
super(descriptor);
}

public void earlyStartup()
{
//System.out.println("earlyStartup");
}

}

"Andrew McCullough" <mccull1@us.ibm.com> wrote in message
news:anf779$okp$1@rogue.oti.com...
>
> Yes. Your plugin class must implement the IStartup interface and its
method
> (earlyStartup()), as well as defining the extension point in your
> plugin.xml. I suspect that you have defined the extension point but not
> implemented the interface (thus the ClassCast)?
>
> -Andrew
>
> "Alex" <nospam@nospam.nospam> wrote in message
> news:anf1bu$khd$1@rogue.oti.com...
> > Anyone ever successfully used org.eclipse.ui.IStartup ?
> > I am getting
> >
> > java.lang.ClassCastException:
> > org.eclipse.core.internal.plugins.DefaultPlugin
> > at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
> > at
> >
>
org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
> > :831)
> > at org.eclipse.core.runtime.Platform.run(Platform.java:416)
> > at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
> > at java.lang.Thread.run(Thread.java:536
> >
> >
>
>
Re: Anyone ever successfully used org.eclipse.ui.IStartup [message #584283 is a reply to message #29104] Mon, 07 October 2002 18:41 Go to previous message
John Arthorne is currently offline John ArthorneFriend
Messages: 176
Registered: July 2009
Senior Member
The stack trace shows you are using the DefaultPlugin. This means you
are missing the "class" attribute for your plugin definition.
-

Alex wrote:

>Anyone ever successfully used org.eclipse.ui.IStartup ?
>I am getting
>
>java.lang.ClassCastException:
>org.eclipse.core.internal.plugins.DefaultPlugin
>at org.eclipse.ui.internal.Workbench$10.run(Workbench.java:1114 )
>at
> org.eclipse.core.internal.runtime.InternalPlatform.run(Inter nalPlatform.java
>:831)
>at org.eclipse.core.runtime.Platform.run(Platform.java:416)
>at org.eclipse.ui.internal.Workbench$9.run(Workbench.java:1122)
>at java.lang.Thread.run(Thread.java:536
>
>
Previous Topic:update-manager & http-proxy
Next Topic:[ANN] AntView 2.2.8 Released
Goto Forum:
  


Current Time: Sat Nov 09 04:10:39 GMT 2024

Powered by FUDForum. Page generated in 0.03005 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top