Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Is there a way to use a fragment command in another fragment?
Is there a way to use a fragment command in another fragment? [message #1735244] Thu, 16 June 2016 15:05 Go to next message
Nataly Mogilka is currently offline Nataly MogilkaFriend
Messages: 24
Registered: August 2010
Location: Kazakhstan, Almaty
Junior Member
Hi all.

I have several fragments (plugins) in my project. And I plan to use some universal action in each of them, for example, "Add model". I would like to declare the command, handler and handler class in core fragment and use it in other modules. Is it possible?

I can't find a way to do it yet - can't select foreign command in other fragment. Please suggest´╗┐
Re: Is there a way to use a fragment command in another fragment? [message #1735247 is a reply to message #1735244] Thu, 16 June 2016 15:22 Go to previous messageGo to next message
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 479
Registered: December 2010
Location: Germany
Senior Member
You can import the Command. To do this you need to add an entry for every command under "Imports" (directly below "Model Fragment Definition")
Re: Is there a way to use a fragment command in another fragment? [message #1735261 is a reply to message #1735247] Thu, 16 June 2016 16:27 Go to previous message
Nataly Mogilka is currently offline Nataly MogilkaFriend
Messages: 24
Registered: August 2010
Location: Kazakhstan, Almaty
Junior Member
Christoph Keimel wrote on Thu, 16 June 2016 15:22
You can import the Command. To do this you need to add an entry for every command under "Imports" (directly below "Model Fragment Definition")


Thank you very much, Christoph!
Previous Topic:Styling editor
Next Topic:How can maven take unpack jars from repository
Goto Forum:
  


Current Time: Wed Nov 22 20:35:31 GMT 2017

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

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