Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » reusing EditingDomainActionBarContributor for a View  () 1 Vote
reusing EditingDomainActionBarContributor for a View [message #826071] Wed, 21 March 2012 16:08 Go to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi

I would need to reuse EditingDomainActionBarContributor for a View,
would it be possible? The class has a deprecated setActiveView so I was
wondering whether it might be feasible in principle or it is wrong?

thanks in advance
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: reusing EditingDomainActionBarContributor for a View [message #826497 is a reply to message #826071] Thu, 22 March 2012 06:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Lorenzo,

I think the fact that it inherits from
MultiPageEditorActionBarContributor doesn't bode well for just using it
in a view.

On 21/03/2012 5:08 PM, Lorenzo Bettini wrote:
> Hi
>
> I would need to reuse EditingDomainActionBarContributor for a View,
> would it be possible? The class has a deprecated setActiveView so I
> was wondering whether it might be feasible in principle or it is wrong?
>
> thanks in advance
> Lorenzo
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: reusing EditingDomainActionBarContributor for a View [message #826805 is a reply to message #826497] Thu, 22 March 2012 14:23 Go to previous message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
Hi Ed

I'm doing some experiments (and refactorings) on that class (by the way,
the doc of that class says

/**
* This is a contributor for an editor, multi-page or otherwise,
* that implements {@link IEditingDomainProvider}.

but actually it does not :)

and it inherits from MultiPageEditorActionBarContributor though it
basically does not use specific features of the field IEditorPart:
switching to a generic IWorkbenchPart seems to work as well...

I hope I can give more feedback soon

cheers
Lorenzo

On 03/22/2012 07:13 AM, Ed Merks wrote:
> Lorenzo,
>
> I think the fact that it inherits from
> MultiPageEditorActionBarContributor doesn't bode well for just using it
> in a view.
>
> On 21/03/2012 5:08 PM, Lorenzo Bettini wrote:
>> Hi
>>
>> I would need to reuse EditingDomainActionBarContributor for a View,
>> would it be possible? The class has a deprecated setActiveView so I
>> was wondering whether it might be feasible in principle or it is wrong?
>>
>> thanks in advance
>> Lorenzo
>>


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Previous Topic:Need Key-Shortcuts at caontext menu
Next Topic:How to generate references as Emap
Goto Forum:
  


Current Time: Thu Apr 25 04:04:12 GMT 2024

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

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

Back to the top