Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Is there any way to control the visibility or enablement of a wizard?
Is there any way to control the visibility or enablement of a wizard? [message #331111] Mon, 25 August 2008 15:55 Go to next message
Dollyn Sun is currently offline Dollyn SunFriend
Messages: 68
Registered: July 2009
Location: China
Member

Hi,
I want to make a wizard not visible/enable if the current selection is
of some type. But I don't know how. Is there some suggestions?
Thanks.


Dollyn
Re: Is there any way to control the visibility or enablement of a wizard? [message #331129 is a reply to message #331111] Tue, 26 August 2008 13:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Dollyn wrote:
> Hi,
> I want to make a wizard not visible/enable if the current selection is
> of some type. But I don't know how. Is there some suggestions?
> Thanks.

How are you registering the wizard? Let's see the appropriate part of
your plugin.xml...

Eric
Re: Is there any way to control the visibility or enablement of a wizard? [message #331240 is a reply to message #331111] Thu, 28 August 2008 14:55 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Dollyn wrote:
> Hi,
> I want to make a wizard not visible/enable if the current selection is
> of some type. But I don't know how. Is there some suggestions?
> Thanks.

What kind of wizard? There are 3.

The extensions don't have any kind of enablement clause, although you
can filter the types of selection that your wizard sees.

Normally, you look at the incoming selection and if it is not
appropriate, simply provide a way to update the selection on your first
wizard page (and disable the next/finish button until they do).

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Undoable Operation Not Working
Next Topic:Bug? closing doesn't save the state of inactive perspective correctly?
Goto Forum:
  


Current Time: Wed Jul 17 12:20:22 GMT 2024

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

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

Back to the top