Administration Tools

org.topcased.service.templatetoproject.wizard
Class TemplateToProjectConfigurationPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.topcased.service.templatetoproject.wizard.TemplateToProjectConfigurationPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class TemplateToProjectConfigurationPage
extends org.eclipse.jface.wizard.WizardPage


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected TemplateToProjectConfigurationPage(org.eclipse.ui.IWorkbench w, org.eclipse.jface.viewers.IStructuredSelection s)
          Constructor
protected TemplateToProjectConfigurationPage(java.lang.String pageName)
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Create Control
 void fillInVariableMap()
          Method which initializes the table with default values
 boolean finish()
          Install project : install the template in the ProjectPath (workspace)
 InfosTemplateProject getInfosTemplateProject()
          Getter for the object InfosTemplateProject
 org.eclipse.swt.widgets.Table getvariableTable()
          Get the variables table
 void handleFinish()
          Method called to know if all the elements of the second column has been filled.
 void setInfosTemplateProject(InfosTemplateProject i)
          Setter for the object InfosTemplateProject
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

TemplateToProjectConfigurationPage

protected TemplateToProjectConfigurationPage(java.lang.String pageName)

TemplateToProjectConfigurationPage

protected TemplateToProjectConfigurationPage(org.eclipse.ui.IWorkbench w,
                                             org.eclipse.jface.viewers.IStructuredSelection s)
Constructor

Parameters:
w - : workbench
s - : structured selection
templateToProject - : our wizard
Method Detail

getvariableTable

public org.eclipse.swt.widgets.Table getvariableTable()
Get the variables table

Returns:
the reference to the varuiable table

getInfosTemplateProject

public InfosTemplateProject getInfosTemplateProject()
Getter for the object InfosTemplateProject

Returns:
the current reference to the object InfosTemplateProject

setInfosTemplateProject

public void setInfosTemplateProject(InfosTemplateProject i)
Setter for the object InfosTemplateProject

Parameters:
i - information template project to set

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Create Control

See Also:
IDialogPage.createControl(org.eclipse.swt.widgets.Composite)

fillInVariableMap

public void fillInVariableMap()
Method which initializes the table with default values


finish

public boolean finish()
Install project : install the template in the ProjectPath (workspace)

Returns:
finish value

handleFinish

public void handleFinish()
Method called to know if all the elements of the second column has been filled. If all is correctly filled then the pageComplete variable is setting.


Administration Tools

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.