Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Launching a Plugin Programatically
Launching a Plugin Programatically [message #71533] Wed, 11 June 2003 18:16 Go to next message
Eclipse UserFriend
Hello,

As discussed on previous threads, I am trying to build what will
essentially be a custom Workbench that will enable to me launch all of
my tools ( some of which are Swing-based, so they all will have their
own window ). This custom-workbench will also facilitate the
data-transfer between tools and to outside processes.

I am having problems starting my Plugins though. What I want is to be
able to have a "Start Tool" button that will instantiate a new Plugin
and put up its window. I have tried several approaches:

1. org.eclipse.core.boot.Platform

Plugin zui = Platform.getPlugin( "org.isb.example.zui" );

this returns a non-null plugin but it does not seem to be initialized.
I can get its IPluginDescriptor from it, but I can't make the JFrame it
is supposed have appear, and it never seems to run either the startup()
method or any constructor.

2. org.isb.example.zui.ZuiExample ze =
org.isb.example.zui.ZuiExample.getInstance();

In the Plugin docs this is suggested and I made a static method that
would return an instance of my Plugin, supposing that it was actually
started which it never was. I then tried to pass my plugin a
IPluginDescriptor but that made Eclipse crash.


So if anyone has any hints that would be great. I am also not opposed
to switching to the Eclipse3.0M1 release from my current 2.1 release if
this sort of issue has been better addressed.

Any help welcome,

--rowan
Re: Launching a Plugin Programatically [message #72938 is a reply to message #71533] Thu, 12 June 2003 20:41 Go to previous message
Eclipse UserFriend
Dave,

So I got it to run on Windows.

go to:
https://sourceforge.net/projects/csbi/

download the one that is for win-0.1

then edit integrator.bat to reflect where your install is, this means
doing a regexp to replace "X:\integrator" with whatever your path is.


There should be a window that opens with two buttons a "Test Me!!!" and
a "JInteract". TestMe will open a new window that will show some text,
try right-clicking-and-dragging ;)

The JInteract one will open up an internal program called JInteract, and
if you are an MS/ICAT person you might know what it is.

--rowan


Rowan Christmas wrote:
> Hello,
>
> As discussed on previous threads, I am trying to build what will
> essentially be a custom Workbench that will enable to me launch all of
> my tools ( some of which are Swing-based, so they all will have their
> own window ). This custom-workbench will also facilitate the
> data-transfer between tools and to outside processes.
>
> I am having problems starting my Plugins though. What I want is to be
> able to have a "Start Tool" button that will instantiate a new Plugin
> and put up its window. I have tried several approaches:
>
> 1. org.eclipse.core.boot.Platform
>
> Plugin zui = Platform.getPlugin( "org.isb.example.zui" );
>
> this returns a non-null plugin but it does not seem to be initialized. I
> can get its IPluginDescriptor from it, but I can't make the JFrame it is
> supposed have appear, and it never seems to run either the startup()
> method or any constructor.
>
> 2. org.isb.example.zui.ZuiExample ze =
> org.isb.example.zui.ZuiExample.getInstance();
>
> In the Plugin docs this is suggested and I made a static method that
> would return an instance of my Plugin, supposing that it was actually
> started which it never was. I then tried to pass my plugin a
> IPluginDescriptor but that made Eclipse crash.
>
>
> So if anyone has any hints that would be great. I am also not opposed
> to switching to the Eclipse3.0M1 release from my current 2.1 release if
> this sort of issue has been better addressed.
>
> Any help welcome,
>
> --rowan
>
Previous Topic:eclipse skins?
Next Topic:IDE is slower?
Goto Forum:
  


Current Time: Fri Mar 14 01:27:55 EDT 2025

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

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

Back to the top