|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.ui.wizards.CWizardHandler
public class CWizardHandler
This class is basic implementation for ICWizardHandler interface. It is independent of managed build system, and, so, almost useless It creates "empty" project with no specific. Its descendants should overwrite some methods, including createProject() and handleSelection() This object is created per each Project type on the left pane of New Project Wizard page It is responsible for: - corresponding line in left pane of 1st wizard page - whole view of right pane - processing preferred items, if any. - providing data for ConfigPage - processing data received from config page
Constructor Summary | |
---|---|
CWizardHandler(org.eclipse.swt.widgets.Composite _parent,
java.lang.String _head,
java.lang.String _name)
|
Method Summary | |
---|---|
boolean |
canFinich()
|
java.lang.Object |
clone()
|
void |
createProject(org.eclipse.core.resources.IProject proj,
boolean defaults)
Creates project |
void |
createProject(org.eclipse.core.resources.IProject proj,
boolean defaults,
boolean onFinish)
Creates project |
java.lang.String |
getErrorMessage()
|
java.lang.String |
getHeader()
|
java.lang.String |
getName()
|
org.eclipse.jface.wizard.IWizardPage |
getSpecificPage()
|
void |
handleSelection()
Called when user selects corresponding item in wizard tree |
void |
handleUnSelection()
Called when user leaves corresponding item in wizard tree |
void |
initialize(EntryDescriptor data)
Initializes the handler to be used for the specified entry |
boolean |
isApplicable(EntryDescriptor data)
Checks whether this item can be added to Wizard tree |
boolean |
isChanged()
|
void |
postProcess(org.eclipse.core.resources.IProject proj)
Called when Finish button pressed, even if project was created before. |
static java.lang.String |
removeSpaces(java.lang.String s)
|
void |
saveState()
Stores current internal settings |
void |
setSupportedOnly(boolean supp)
Defines whether only supported project types and toolchains are displayed |
boolean |
supportedOnly()
|
boolean |
supportsPreferred()
|
void |
updatePreferred(java.util.List prefs)
Asks handler to update its data according to preferred list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CWizardHandler(org.eclipse.swt.widgets.Composite _parent, java.lang.String _head, java.lang.String _name)
Method Detail |
---|
public void handleSelection()
public void handleUnSelection()
public java.lang.String getHeader()
public java.lang.String getName()
public java.lang.String getErrorMessage()
public void setSupportedOnly(boolean supp)
supp
- public boolean supportedOnly()
public boolean supportsPreferred()
public org.eclipse.jface.wizard.IWizardPage getSpecificPage()
public void updatePreferred(java.util.List prefs)
prefs
- - list of strings (preferred Toolchain IDs)public void createProject(org.eclipse.core.resources.IProject proj, boolean defaults) throws org.eclipse.core.runtime.CoreException
proj
- - simple project to be used as basedefaults
- - true if called from 1st Wizard page
org.eclipse.core.runtime.CoreException
public void createProject(org.eclipse.core.resources.IProject proj, boolean defaults, boolean onFinish) throws org.eclipse.core.runtime.CoreException
proj
- - simple project to be used as basedefaults
- - true if called from 1st Wizard pageonFinish
- - true when the project creation is performed on finish. false -otherwise
false means that the project created is actually a temporary one that can be removed in case cancell is pressed
org.eclipse.core.runtime.CoreException
public boolean isChanged()
public void saveState()
public void postProcess(org.eclipse.core.resources.IProject proj)
proj
- public boolean isApplicable(EntryDescriptor data)
data
- - Wizard Item data to be added
as child to current Wizard item
public void initialize(EntryDescriptor data) throws org.eclipse.core.runtime.CoreException
data
- - Wizard Item data to be handled
org.eclipse.core.runtime.CoreException
public boolean canFinich()
public java.lang.Object clone()
clone
in class java.lang.Object
public static java.lang.String removeSpaces(java.lang.String s)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |