Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Sapphire » Accessing CustomPart from SapphireWizard subclass
Accessing CustomPart from SapphireWizard subclass [message #1234985] Thu, 23 January 2014 09:37 Go to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
Hey everyone,

I have a SapphireWizard subclass. In the SDEF I'm declaring a Custom Part. This custom part has some data that it edits that isn't related to the model (it is setting IWorkingSet[] information for a new project). I'd like to access this custom part to get the working set information out of it. However, once I'm in the SapphireWizard subclass's performFinish() I don't see a way to access the Custom Part class through exposed API.

Right now I'm using reflection to get SapphireWizard.part field and then going to the first WizardPagePart and then iterating through its children() list until I find my custom part class, and then accessing the an API on my Custom Part class

Is there a better way to communicate to the Custom Part without going through model? Or if not, could we make a SapphireWizard.part() a part of API?
Re: Accessing CustomPart from SapphireWizard subclass [message #1235071 is a reply to message #1234985] Thu, 23 January 2014 13:59 Go to previous messageGo to next message
Greg Amerson is currently offline Greg AmersonFriend
Messages: 119
Registered: March 2010
Senior Member
Here is my hack if you want to see what I'm doing: https://github.com/liferay/liferay-ide/blob/a1f3a3f3acbfa64617da8ebea23351ce83b2bf5d/tools/plugins/com.liferay.ide.project.ui/src/com/liferay/ide/project/ui/wizard/NewLiferayPluginProjectWizard.java#L78-95
Re: Accessing CustomPart from SapphireWizard subclass [message #1235141 is a reply to message #1235071] Thu, 23 January 2014 16:52 Go to previous message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
It would be logical to add a public SapphireWizard.part() method.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=426484
Previous Topic:Dynamically enable Action
Next Topic:Sapphire 8 IP Log Deadline
Goto Forum:
  


Current Time: Thu Dec 05 11:12:46 GMT 2024

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

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

Back to the top