Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Adding "create child" to project explorer
Adding "create child" to project explorer [message #420625] Fri, 04 July 2008 11:22 Go to next message
Eclipse UserFriend
Originally posted by: karin.wanhainen.enea.com

Hi!

IŽm new to EMF and could really need some help.
My assignment is to add the same menu options (create child/sibling) that
can be seen in the outline view to the project explorer where the EObjects
also are shown.
The point of doing this would be to later only use the project explorer
and skip the outline view.
Is this at all possible?
Could the ActionBarContributors be reused in some way?

Kind regards
Karin
Re: Adding "create child" to project explorer [message #420627 is a reply to message #420625] Fri, 04 July 2008 11:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Karin,

Comments below.

Karin Wanhainen wrote:
> Hi!
>
> IŽm new to EMF and could really need some help.
> My assignment is to add the same menu options (create child/sibling)
> that can be seen in the outline view to the project explorer where the
> EObjects also are shown.
I wonder if anyone has done this already who might be able to give advice...
> The point of doing this would be to later only use the project
> explorer and skip the outline view.
> Is this at all possible?
I'm pretty sure this is possible. I think there was some discussion
related to it in https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778.
> Could the ActionBarContributors be reused in some way?
Unfortunately I don't know much about how the project explorer works.
If you support editing, of course the issue of saving will come up, and
I'm not sure how that's normally handled. I think generally the changes
are committed to the workspace immediately, but I'm not sure about
that. Even if the action bar contributor isn't directly reusable,
certainly the underlying design and code is a good example of what you'd
need to do.
>
> Kind regards
> Karin
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Adding "create child" to project explorer [message #420760 is a reply to message #420627] Wed, 09 July 2008 22:30 Go to previous message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
Here is an example that uses the Common Navigator Framework (CNF) to
browse the emf model. Unfortunately, no Actions/Commands are implemented:

http://www.ibm.com/developerworks/library/os-eclipse-emf/


Cheers,
Bernd


Ed Merks schrieb:
> Karin,
>
> Comments below.
>
> Karin Wanhainen wrote:
>> Hi!
>>
>> IŽm new to EMF and could really need some help.
>> My assignment is to add the same menu options (create child/sibling)
>> that can be seen in the outline view to the project explorer where the
>> EObjects also are shown.
> I wonder if anyone has done this already who might be able to give
> advice...
>> The point of doing this would be to later only use the project
>> explorer and skip the outline view.
>> Is this at all possible?
> I'm pretty sure this is possible. I think there was some discussion
> related to it in https://bugs.eclipse.org/bugs/show_bug.cgi?id=206778.
>> Could the ActionBarContributors be reused in some way?
> Unfortunately I don't know much about how the project explorer works.
> If you support editing, of course the issue of saving will come up, and
> I'm not sure how that's normally handled. I think generally the changes
> are committed to the workspace immediately, but I'm not sure about
> that. Even if the action bar contributor isn't directly reusable,
> certainly the underlying design and code is a good example of what you'd
> need to do.
>>
>> Kind regards
>> Karin
>>
Previous Topic:Destructive Association?
Next Topic:[Teneo] Problems with EMF delete
Goto Forum:
  


Current Time: Tue Sep 24 17:40:52 GMT 2024

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

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

Back to the top