Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Run editors in the same environment
Run editors in the same environment [message #174826] Thu, 28 February 2008 14:40 Go to next message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
Is it possible to run the generated editors in the same eclipse
environment they were generated in, not in the runtime environment?

thanks,
Bernd
Re: Run editors in the same environment [message #174872 is a reply to message #174826] Thu, 28 February 2008 17:16 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
You can export your generated editor plugin as a plug-in in your eclipse
installation folder (Export > Deployable plug-ins and fragment). Then
restart your Eclipse environment to load the new plugin.

Bernd Mühlböck a écrit :
> Is it possible to run the generated editors in the same eclipse
> environment they were generated in, not in the runtime environment?
>
> thanks,
> Bernd
Re: Run editors in the same environment [message #174900 is a reply to message #174872] Thu, 28 February 2008 20:10 Go to previous messageGo to next message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
Can you do this process (exporting, loading, ...) within the running
environment, without restarting?


Jacques LESCOT wrote:
> You can export your generated editor plugin as a plug-in in your eclipse
> installation folder (Export > Deployable plug-ins and fragment). Then
> restart your Eclipse environment to load the new plugin.
>
> Bernd Mühlböck a écrit :
>> Is it possible to run the generated editors in the same eclipse
>> environment they were generated in, not in the runtime environment?
>>
>> thanks,
>> Bernd
Re: Run editors in the same environment [message #174938 is a reply to message #174900] Fri, 29 February 2008 10:14 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Bernd,

Well, it is possible, though it looks like hacking into the platform. We
do something very similar in GMF tests. Take a look at class
org.eclipse.gmf.tests.setup.GenProjectSetup in the org.eclipse.gmf.tests
plugin. Of course, you will need to have this code executed from within
the running instance, which means you should first create a plugin with
this functionality (a plugin that will interactively install and
uninstall generated bundles given an arbitrary URL). After you test this
plugin somehow, export it into your Eclipse installation. Restart
Eclipse, and you should be able to use this plugin to install and
uninstall bundles without restarting Eclipse.

Best regards,
Boris

Bernd Mühlböck wrote:
> Can you do this process (exporting, loading, ...) within the running
> environment, without restarting?
>
>
> Jacques LESCOT wrote:
>> You can export your generated editor plugin as a plug-in in your
>> eclipse installation folder (Export > Deployable plug-ins and
>> fragment). Then restart your Eclipse environment to load the new plugin.
>>
>> Bernd Mühlböck a écrit :
>>> Is it possible to run the generated editors in the same eclipse
>>> environment they were generated in, not in the runtime environment?
>>>
>>> thanks,
>>> Bernd
Re: Run editors in the same environment [message #175240 is a reply to message #174900] Mon, 03 March 2008 19:21 Go to previous message
Eclipse UserFriend
Originally posted by: jan.koehnlein.web.de

Even though OSGi is capable of reloading plug-ins, some parts of eclipse
will not work properly. E.g. extensions are in many cases read only once
on startup, thus allowing to load plug-ins only when the extension is used.

As a consequence, it is highly recommended to restart your workbench
when you change/add plug-ins. Not doing that is like sawing the branch
your sitting on.

Regards
Jan


Bernd Mühlböck wrote:
> Can you do this process (exporting, loading, ...) within the running
> environment, without restarting?
>
>
> Jacques LESCOT wrote:
>> You can export your generated editor plugin as a plug-in in your
>> eclipse installation folder (Export > Deployable plug-ins and
>> fragment). Then restart your Eclipse environment to load the new plugin.
>>
>> Bernd Mühlböck a écrit :
>>> Is it possible to run the generated editors in the same eclipse
>>> environment they were generated in, not in the runtime environment?
>>>
>>> thanks,
>>> Bernd
Previous Topic:Opening an editor child other than what was double clicked?
Next Topic:modify the default phantom node creation
Goto Forum:
  


Current Time: Sat Apr 27 00:04:25 GMT 2024

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

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

Back to the top