Skip to main content


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
Natalie Mogilka is currently offline Natalie MogilkaFriend
Messages: 27
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: 482
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
Natalie Mogilka is currently offline Natalie MogilkaFriend
Messages: 27
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:Correct way to listen to a part activation/visibility change?
Goto Forum:
  


Current Time: Thu Apr 25 09:03:40 GMT 2024

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

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

Back to the top