How to access active workbench page from a Facet? [message #320240] |
Thu, 13 September 2007 16:42  |
Eclipse User |
|
|
|
I'm trying to create a Project Facet to install components we've created
at my company into a Web project, to make it as simple to set up a project
to use our own app framework as it is to use Struts or JSF.
So what I want to do is when the Facet finishes running I want to open a
README file in an editor in the workspace so the developers see
instructions right in front of them that give them suggestions on what to
do next.
I can do this from a Wizard easily enough, but I can't figure out how to
do it from a Facet. The problem is, I need to have the active workbench
page. The normal method to get an active workbench page don't work
because the active workbench window is set to null. This is because a
dialog (the Facet wizard itself) has taken focus away from the window, As
far as I can see there is no way to know what the active window was before
the Facet Wizard dialog opened up.
Am I wrong about this? Is there some way within a Facet Install Delegate
to figure out what the active window was?
Thanks,
James Simmons
|
|
|
|
Powered by
FUDForum. Page generated in 0.03484 seconds