com.legstar.eclipse.plugin.jbossesbgen.wizards
Class AbstractCixsJbossEsbGeneratorWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.legstar.eclipse.plugin.common.wizards.AbstractWizardPage
              extended by com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage
                  extended by com.legstar.eclipse.plugin.jbossesbgen.wizards.AbstractCixsJbossEsbGeneratorWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
Direct Known Subclasses:
Cixs2JbossEsbGeneratorWizardPage, JbossEsb2CixsGeneratorWizardPage

public abstract class AbstractCixsJbossEsbGeneratorWizardPage
extends com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

These are the common widgets to both Cixs 2 JBoss ESB and JBoss ESB 2 Cixs wizards.


Field Summary
 
Fields inherited from class com.legstar.eclipse.plugin.common.wizards.AbstractWizardPage
LAYOUT_COLUMNS
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
protected AbstractCixsJbossEsbGeneratorWizardPage(org.eclipse.jface.viewers.IStructuredSelection selection, String pageName, String pageTitle, String pageDesc, org.eclipse.core.resources.IFile mappingFile, AbstractAntBuildCixsJbossEsbModel genModel)
          Construct the page.
 
Method Summary
 void addWidgetsToCixsGroup(org.eclipse.swt.widgets.Composite arg0)
          
 void addWidgetsToCoxbGroup(org.eclipse.swt.widgets.Composite container)
          
 void addWidgetsToDeploymentGroup(org.eclipse.swt.widgets.Composite container)
          
 void addWidgetsToTargetGroup(org.eclipse.swt.widgets.Composite container)
          
 void createExtendedListeners()
          
 com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsActivator getActivator()
          
 AbstractAntBuildCixsJbossEsbModel getGenModel()
           
 String getInitTargetEsbDir()
           
 String getJbossEsbHome()
           
 String getTargetEsbDir()
           
 String getTargetJbossEsbConfigDir()
           
 AbstractCixsJbossEsbGeneratorWizard getWizard()
          
 void initExtendedWidgets(org.eclipse.core.resources.IProject project)
          
 void setTargetEsbDir(String targetEsbDirLocation)
           
 void setTargetJbossEsbConfigDir(String targetJbossEsbConfigDirLocation)
           
protected  boolean setupProject()
          Make sure the target project has LegStar JBoss ESB libraries on its classpath.
 void updateGenModelExtended()
          Store the selected values in the project scoped preference store.
 boolean validateExtendedWidgets()
          
 
Methods inherited from class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage
addCixsGroup, checkDirectory, createCanvasInFolder, createExtendedControls, createListeners, dialogChanged, getCommonStore, getCoxbBinDir, getCustBinDir, getDefaultRelativeTargetDir, getDisplayPath, getHostCharset, getInitCoxbBinDir, getInitCustBinDir, getInitHostCharset, getInitJavaClassesPackageName, getInitJaxbBinDir, getInitServiceName, getInitTargetBinDir, getInitTargetDir, getInitTargetDir, getInitTargetSrcDir, getJavaClassesPackageName, getJavaDir, getJaxbBinDir, getMappingFile, getPluginId, getProjectPreferences, getServiceName, getStore, getTargetAntDir, getTargetBinDir, getTargetDistDir, getTargetJavaProject, getTargetSrcDir, initContents, setCoxbBinDir, setCustBinDir, setHostCharset, setJavaClassesPackageName, setJaxbBinDir, setServiceName, setTargetAntDir, setTargetBinDir, setTargetDistDir, setTargetSrcDir, updateGenModel
 
Methods inherited from class com.legstar.eclipse.plugin.common.wizards.AbstractWizardPage
createBrowseForContainerButton, createBrowseForFolderButton, createButton, createCanvas, createCombo, createControl, createDirectoryFieldEditor, createGroup, createGroup, createHyperlink, createHyperlink, createLabel, createLabel, createText, createText, createTextField, createUrlComboGroup, errorDialog, getContent, getInitialSelection, getUrlHistory, getValueFromText, handleBrowseForDirectory, handleBrowseForFiles, logCoreException, lookupContainerLibrary, selectSingleFileContent, setInitialSelection, setTextFromString, setupContainerLibrary, setUrlHistory, throwCoreException, throwCoreException, updateStatus
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, 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

AbstractCixsJbossEsbGeneratorWizardPage

protected AbstractCixsJbossEsbGeneratorWizardPage(org.eclipse.jface.viewers.IStructuredSelection selection,
                                                  String pageName,
                                                  String pageTitle,
                                                  String pageDesc,
                                                  org.eclipse.core.resources.IFile mappingFile,
                                                  AbstractAntBuildCixsJbossEsbModel genModel)
Construct the page.

Parameters:
selection - the current workbench selection
pageName - the page name
pageTitle - the page title
pageDesc - the page description
mappingFile - the mapping file
genModel - the generation model
Method Detail

addWidgetsToCixsGroup

public void addWidgetsToCixsGroup(org.eclipse.swt.widgets.Composite arg0)

Specified by:
addWidgetsToCixsGroup in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

addWidgetsToTargetGroup

public void addWidgetsToTargetGroup(org.eclipse.swt.widgets.Composite container)

Specified by:
addWidgetsToTargetGroup in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

addWidgetsToCoxbGroup

public void addWidgetsToCoxbGroup(org.eclipse.swt.widgets.Composite container)

Specified by:
addWidgetsToCoxbGroup in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

addWidgetsToDeploymentGroup

public void addWidgetsToDeploymentGroup(org.eclipse.swt.widgets.Composite container)

Specified by:
addWidgetsToDeploymentGroup in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

initExtendedWidgets

public void initExtendedWidgets(org.eclipse.core.resources.IProject project)

Specified by:
initExtendedWidgets in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

getInitTargetEsbDir

public String getInitTargetEsbDir()
Returns:
an initial value

createExtendedListeners

public void createExtendedListeners()

Specified by:
createExtendedListeners in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

validateExtendedWidgets

public boolean validateExtendedWidgets()

Specified by:
validateExtendedWidgets in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

setupProject

protected boolean setupProject()
Make sure the target project has LegStar JBoss ESB libraries on its classpath.

Returns:
false if the setup failed

updateGenModelExtended

public void updateGenModelExtended()
Store the selected values in the project scoped preference store.

Specified by:
updateGenModelExtended in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

setTargetEsbDir

public void setTargetEsbDir(String targetEsbDirLocation)
Parameters:
targetEsbDirLocation - Where generated Esb files reside

getTargetEsbDir

public String getTargetEsbDir()
Returns:
Where generated Esb files reside

setTargetJbossEsbConfigDir

public void setTargetJbossEsbConfigDir(String targetJbossEsbConfigDirLocation)
Parameters:
targetJbossEsbConfigDirLocation - Where generated JBoss ESB configurations reside

getTargetJbossEsbConfigDir

public String getTargetJbossEsbConfigDir()
Returns:
Where generated JBoss ESB configurations reside

getWizard

public AbstractCixsJbossEsbGeneratorWizard getWizard()

Specified by:
getWizard in interface org.eclipse.jface.wizard.IWizardPage
Overrides:
getWizard in class org.eclipse.jface.wizard.WizardPage

getActivator

public com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsActivator getActivator()

Specified by:
getActivator in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage

getJbossEsbHome

public String getJbossEsbHome()
Returns:
JBoss ESB home

getGenModel

public AbstractAntBuildCixsJbossEsbModel getGenModel()
Overrides:
getGenModel in class com.legstar.eclipse.plugin.cixscom.wizards.AbstractCixsGeneratorWizardPage
Returns:
the data model


Copyright © 2011 LegSem. All Rights Reserved.