Anyone ever successfully used org.eclipse.ui.IStartup [message #29104] |
Wed, 02 October 2002 15:20 |
Eclipse User |
|
|
|
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 #30246 is a reply to message #29179] |
Mon, 07 October 2002 15:32 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03005 seconds