Class NewServiceWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.libreoffice.ide.eclipse.core.wizards.pages.NewScopedElementWizardPage
org.libreoffice.ide.eclipse.core.wizards.pages.NewServiceWizardPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage,IFieldChangedListener,IListenablePage
Service creation wizard page.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
ConstructorsConstructorDescriptionNewServiceWizardPage(String pPageName, IUnoidlProject pProject) Simple constructor setting the package root and element name to blank values.NewServiceWizardPage(String pPageName, IUnoidlProject pProject, String pRootName, String pServiceName) Constructor setting allowing to set custom root package and service name. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateSpecificControl(org.eclipse.swt.widgets.Composite pParent) Implement this method to add specific controls for the subclassing wizard page.voidfieldChanged(FieldEvent event) Method called when the row has changed.fillData(UnoFactoryData data) Creates an empty factory data for the page UNO type.protected org.eclipse.jface.resource.ImageDescriptorGets the name of the exported interface.intgetTitle()protected StringbooleanTells whether the user has changed the exported interface since it has last been set using the APIs.voidsetInheritanceName(String value, boolean forced) Sets the name of the exported interface.Methods inherited from class org.libreoffice.ide.eclipse.core.wizards.pages.NewScopedElementWizardPage
addPageListener, createControl, dispose, existsIdlFile, firePageChanged, getElementName, getPackage, getPackageRoot, getProject, getTypeData, isPageComplete, isPublished, removePageListener, setName, setOOoInstance, setPackage, setPackageRoot, setPublished, setUnoidlProject, setVisibleMethods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getErrorMessage, getMessage, performHelpMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
NewServiceWizardPage
Simple constructor setting the package root and element name to blank values.- Parameters:
pPageName- the page namepProject- the project where to create the service
-
NewServiceWizardPage
public NewServiceWizardPage(String pPageName, IUnoidlProject pProject, String pRootName, String pServiceName) Constructor setting allowing to set custom root package and service name.- Parameters:
pPageName- the page namepProject- the project where to create the servicepRootName- the project root namespacepServiceName- the default service name
-
-
Method Details
-
getProvidedTypes
public int getProvidedTypes()- Specified by:
getProvidedTypesin classNewScopedElementWizardPage- Returns:
- the types to get in the UNO types provider. The returned integer is a
bit orof the types defined in theUnoTypeProviderclass.
-
createSpecificControl
public void createSpecificControl(org.eclipse.swt.widgets.Composite pParent) Implement this method to add specific controls for the subclassing wizard page.- Specified by:
createSpecificControlin classNewScopedElementWizardPage- Parameters:
pParent- the composite parent where to put the controls
-
getTitle
- Specified by:
getTitlein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
getTitlein classorg.eclipse.jface.dialogs.DialogPage
-
getDescription
- Specified by:
getDescriptionin interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
getDescriptionin classorg.eclipse.jface.dialogs.DialogPage
-
getTypeLabel
- Specified by:
getTypeLabelin classNewScopedElementWizardPage- Returns:
- the string corresponding to the type name, e.g. "interface".
-
getImageDescriptor
protected org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()- Specified by:
getImageDescriptorin classNewScopedElementWizardPage- Returns:
- the image descriptor to put on the top-right of the page
-
fieldChanged
Method called when the row has changed.- Specified by:
fieldChangedin interfaceIFieldChangedListener- Overrides:
fieldChangedin classNewScopedElementWizardPage- Parameters:
event- the field event thrown
-
getInheritanceName
Gets the name of the exported interface.- Returns:
- the fully qualified name of the exported interface separated with "::"
-
setInheritanceName
Sets the name of the exported interface.Use this method to impose the service to implement a particular interface. This is the case for an URE application.
- Parameters:
value- the interface fully qualified nameforced- disables the field iftrue
-
isInheritanceChanged
public boolean isInheritanceChanged()Tells whether the user has changed the exported interface since it has last been set using the APIs.- Returns:
trueis the has changed the exported interface.
-
fillData
- Overrides:
fillDatain classNewScopedElementWizardPage- Parameters:
data- the data to fill- Returns:
- the given data with the completed properties,
nullif the provided data isnull
-
getEmptyTypeData
Creates an empty factory data for the page UNO type.- Specified by:
getEmptyTypeDatain classNewScopedElementWizardPage- Returns:
- the empty UNO factory data
-