Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Load Custom Plugin on Eclipse-Start
Load Custom Plugin on Eclipse-Start [message #227042] Sat, 11 August 2007 15:30 Go to next message
Eclipse UserFriend
Originally posted by: mire.darkwind-guild.org

Hi,

my "problem" is as follows:

I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
from Eclipse I can start it using "Run.." -> "As new Configuration".
Which gives me the new Eclipse instance with all of my Plugins features,
perspectives and all.
However, how do I integrate my Plugin into Eclipse, so that it becomes
available on start, without having to "Run.." it? Any advice would be
much appreciated.

-M.
Re: Load Custom Plugin on Eclipse-Start [message #227048 is a reply to message #227042] Sat, 11 August 2007 15:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

M,

You'll probably want to use "File->Export->Plug-in
Development->Deployable plug-ins and fragments" to create plugins that
you will put into the plugins folder of your eclipse installation.
You'll need to restart and probably will need to use -clean so it sees
the new plugins are there.


Mire wrote:
> Hi,
>
> my "problem" is as follows:
>
> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
> from Eclipse I can start it using "Run.." -> "As new Configuration".
> Which gives me the new Eclipse instance with all of my Plugins
> features, perspectives and all.
> However, how do I integrate my Plugin into Eclipse, so that it becomes
> available on start, without having to "Run.." it? Any advice would be
> much appreciated.
>
> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227054 is a reply to message #227048] Sat, 11 August 2007 16:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mire.darkwind-guild.org

Hi,

first of all, thanks a ton for helping me again, Ed.

I was finally able to export my plugins the way you suggested and then
moved them (along with EMF, GEF) to the appropriate folder of a brandnew
Eclipse package.

However, while there are no complaints from Eclipse, my plugin-features
aren't available either (EMF, GEF are tho). In "About Eclipse SDK
Plug-ins" my plugins won't show up either. They do however show up in
the "Configuration Details" of Eclipses "About" as [installed]. They
seem to be the only [installed] ones there, whereas most others are
[active] or [starting] or [resolved] or whatever. Sorry for this stab in
the dark, but do I have to take any other action now in order to get
this to work?

TIA,
-M.

> M,
>
> You'll probably want to use "File->Export->Plug-in
> Development->Deployable plug-ins and fragments" to create plugins that
> you will put into the plugins folder of your eclipse installation.
> You'll need to restart and probably will need to use -clean so it sees
> the new plugins are there.
>
>
> Mire wrote:
>> Hi,
>>
>> my "problem" is as follows:
>>
>> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
>> from Eclipse I can start it using "Run.." -> "As new Configuration".
>> Which gives me the new Eclipse instance with all of my Plugins
>> features, perspectives and all.
>> However, how do I integrate my Plugin into Eclipse, so that it becomes
>> available on start, without having to "Run.." it? Any advice would be
>> much appreciated.
>>
>> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227059 is a reply to message #227042] Sat, 11 August 2007 17:20 Go to previous messageGo to next message
Charlie Kelly is currently offline Charlie KellyFriend
Messages: 276
Registered: July 2009
Senior Member
Hi Mire,

In your manifest, add an extension: org.eclipse.ui.startup

Create a class that implements IStartup.

Use the method earlyStartup() of that class to implement your code.

Charlie


Mire wrote:
> Hi,
>
> my "problem" is as follows:
>
> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
> from Eclipse I can start it using "Run.." -> "As new Configuration".
> Which gives me the new Eclipse instance with all of my Plugins features,
> perspectives and all.
> However, how do I integrate my Plugin into Eclipse, so that it becomes
> available on start, without having to "Run.." it? Any advice would be
> much appreciated.
>
> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227065 is a reply to message #227054] Sat, 11 August 2007 17:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

M,

If you run with -clean -debug the Error log should have details about
why your plugins failed to resolve or activate properly. It's very
important to make sure the build.properties correctly specifies what
should be in the final deployed result and that the MANIFEST.MF's
Bundle-Classpath will properly point at where the .class files end up.
When running from within the IDE, the PDE ends up using the contents of
the bin folder to run, so things might run fine that way but then fail
to run when you deploy...


Mire wrote:
> Hi,
>
> first of all, thanks a ton for helping me again, Ed.
>
> I was finally able to export my plugins the way you suggested and then
> moved them (along with EMF, GEF) to the appropriate folder of a
> brandnew Eclipse package.
>
> However, while there are no complaints from Eclipse, my
> plugin-features aren't available either (EMF, GEF are tho). In "About
> Eclipse SDK Plug-ins" my plugins won't show up either. They do however
> show up in the "Configuration Details" of Eclipses "About" as
> [installed]. They seem to be the only [installed] ones there, whereas
> most others are [active] or [starting] or [resolved] or whatever.
> Sorry for this stab in the dark, but do I have to take any other
> action now in order to get this to work?
>
> TIA,
> -M.
>
>> M,
>>
>> You'll probably want to use "File->Export->Plug-in
>> Development->Deployable plug-ins and fragments" to create plugins
>> that you will put into the plugins folder of your eclipse
>> installation. You'll need to restart and probably will need to use
>> -clean so it sees the new plugins are there.
>>
>>
>> Mire wrote:
>>> Hi,
>>>
>>> my "problem" is as follows:
>>>
>>> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
>>> from Eclipse I can start it using "Run.." -> "As new Configuration".
>>> Which gives me the new Eclipse instance with all of my Plugins
>>> features, perspectives and all.
>>> However, how do I integrate my Plugin into Eclipse, so that it
>>> becomes available on start, without having to "Run.." it? Any advice
>>> would be much appreciated.
>>>
>>> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227070 is a reply to message #227059] Sat, 11 August 2007 17:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mire.darkwind-guild.org

Hi,

Thank you for your answer, Charlie.

I'm not sure if that's what I was/am looking for.

My plugins add the functionality of a graphical editor based on emf, gef
to eclipse. I can add your suggested Extension and have it do stuff on
startup of the workbench.. but I wouldn't know how to make earlyStart()
"activate" them. Am I being subconsciously ignorant, or is there a
different way for my plugins to work and show up in New->Project and in
the Perspectives list.. just like they would in the
new_runtime_workbench instance?

-M.

> Hi Mire,
>
> In your manifest, add an extension: org.eclipse.ui.startup
>
> Create a class that implements IStartup.
>
> Use the method earlyStartup() of that class to implement your code.
>
> Charlie
>
>
> Mire wrote:
>> Hi,
>>
>> my "problem" is as follows:
>>
>> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
>> from Eclipse I can start it using "Run.." -> "As new Configuration".
>> Which gives me the new Eclipse instance with all of my Plugins
>> features, perspectives and all.
>> However, how do I integrate my Plugin into Eclipse, so that it becomes
>> available on start, without having to "Run.." it? Any advice would be
>> much appreciated.
>>
>> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227075 is a reply to message #227070] Sat, 11 August 2007 18:11 Go to previous messageGo to next message
Charlie Kelly is currently offline Charlie KellyFriend
Messages: 276
Registered: July 2009
Senior Member
Hi Mire,

I read the response(s) by Ed Merks.
His ideas are probably the best.

Charlie


Mire wrote:
> Hi,
>
> Thank you for your answer, Charlie.
>
> I'm not sure if that's what I was/am looking for.
>
> My plugins add the functionality of a graphical editor based on emf, gef
> to eclipse. I can add your suggested Extension and have it do stuff on
> startup of the workbench.. but I wouldn't know how to make earlyStart()
> "activate" them. Am I being subconsciously ignorant, or is there a
> different way for my plugins to work and show up in New->Project and in
> the Perspectives list.. just like they would in the
> new_runtime_workbench instance?
>
> -M.
>
>> Hi Mire,
>>
>> In your manifest, add an extension: org.eclipse.ui.startup
>>
>> Create a class that implements IStartup.
>>
>> Use the method earlyStartup() of that class to implement your code.
>>
>> Charlie
>>
>>
>> Mire wrote:
>>> Hi,
>>>
>>> my "problem" is as follows:
>>>
>>> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
>>> from Eclipse I can start it using "Run.." -> "As new Configuration".
>>> Which gives me the new Eclipse instance with all of my Plugins
>>> features, perspectives and all.
>>> However, how do I integrate my Plugin into Eclipse, so that it
>>> becomes available on start, without having to "Run.." it? Any advice
>>> would be much appreciated.
>>>
>>> -M.
Re: Load Custom Plugin on Eclipse-Start [message #227095 is a reply to message #227075] Sat, 11 August 2007 18:53 Go to previous message
Eclipse UserFriend
Originally posted by: mire.darkwind-guild.org

Hi,

this is kinda embarrassing, but I still wanted to let you two know that
I got it all solved. For some reason, the compiling during the export
gave an error on one of the required bundles, whereas it normally
compiled without problems. After I had that fixed, I kinda forgot about
it .. and ended up missing one of the multiple required "side-bundles"
of the emf model. So after I supplied that one to the plugin direction
too, it resolved. Another clean of my workspace resolved the remaining
runtime problems and it's all working flawlessly now.

Thanks again, especially to Ed who has helped me twice already!

-M.

> Hi Mire,
>
> I read the response(s) by Ed Merks.
> His ideas are probably the best.
>
> Charlie
>
>
> Mire wrote:
>> Hi,
>>
>> Thank you for your answer, Charlie.
>>
>> I'm not sure if that's what I was/am looking for.
>>
>> My plugins add the functionality of a graphical editor based on emf,
>> gef to eclipse. I can add your suggested Extension and have it do
>> stuff on startup of the workbench.. but I wouldn't know how to make
>> earlyStart() "activate" them. Am I being subconsciously ignorant, or
>> is there a different way for my plugins to work and show up in
>> New->Project and in the Perspectives list.. just like they would in
>> the new_runtime_workbench instance?
>>
>> -M.
>>
>>> Hi Mire,
>>>
>>> In your manifest, add an extension: org.eclipse.ui.startup
>>>
>>> Create a class that implements IStartup.
>>>
>>> Use the method earlyStartup() of that class to implement your code.
>>>
>>> Charlie
>>>
>>>
>>> Mire wrote:
>>>> Hi,
>>>>
>>>> my "problem" is as follows:
>>>>
>>>> I wrote a custom Eclipse Plugin. It compiles flawlessly and all, and
>>>> from Eclipse I can start it using "Run.." -> "As new Configuration".
>>>> Which gives me the new Eclipse instance with all of my Plugins
>>>> features, perspectives and all.
>>>> However, how do I integrate my Plugin into Eclipse, so that it
>>>> becomes available on start, without having to "Run.." it? Any advice
>>>> would be much appreciated.
>>>>
>>>> -M.
Previous Topic:Eclipse servers view + SEVERE: An incompatible version 1.1.2 of... error message
Next Topic:opening api examples
Goto Forum:
  


Current Time: Sat Apr 27 01:24:40 GMT 2024

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

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

Back to the top