Skip to main content



      Home
Home » Archived » Sapphire » Accessing CustomPart from SapphireWizard subclass
Accessing CustomPart from SapphireWizard subclass [message #1234985] Thu, 23 January 2014 04:37 Go to next message
Eclipse UserFriend
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 08:59 Go to previous messageGo to next message
Eclipse UserFriend
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 11:52 Go to previous message
Eclipse UserFriend
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: Mon May 05 16:32:08 EDT 2025

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

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

Back to the top