Class NewInterfaceWizardPage
- 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.NewInterfaceWizardPage
-
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.viewers.ISelectionChangedListener,org.eclipse.jface.wizard.IWizardPage,IFieldChangedListener,IListenablePage
public class NewInterfaceWizardPage extends NewScopedElementWizardPage implements org.eclipse.jface.viewers.ISelectionChangedListener
Interface creation page.
-
-
Constructor Summary
Constructors Constructor Description NewInterfaceWizardPage(java.lang.String pPageName, IUnoidlProject pUnoProject)Constructor.NewInterfaceWizardPage(java.lang.String pPageName, IUnoidlProject pProject, java.lang.String pRootName, java.lang.String pElementName)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateSpecificControl(org.eclipse.swt.widgets.Composite pParent)Implement this method to add specific controls for the subclassing wizard page.voiddispose()UnoFactoryDatafillData(UnoFactoryData pData)java.lang.StringgetDescription()UnoFactoryDatagetEmptyTypeData()Creates an empty factory data for the page UNO type.protected org.eclipse.jface.resource.ImageDescriptorgetImageDescriptor()intgetProvidedTypes()java.lang.StringgetTitle()protected java.lang.StringgetTypeLabel()voidselectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent pEvent)-
Methods inherited from class org.libreoffice.ide.eclipse.core.wizards.pages.NewScopedElementWizardPage
addPageListener, createControl, existsIdlFile, fieldChanged, firePageChanged, getElementName, getPackage, getPackageRoot, getProject, getTypeData, isPageComplete, isPublished, removePageListener, setName, setOOoInstance, setPackage, setPackageRoot, setPublished, setUnoidlProject, setVisible
-
Methods 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, toString
-
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage
-
-
-
-
Constructor Detail
-
NewInterfaceWizardPage
public NewInterfaceWizardPage(java.lang.String pPageName, IUnoidlProject pUnoProject)Constructor.- Parameters:
pPageName- the page namepUnoProject- the project for which to create the interface.
-
NewInterfaceWizardPage
public NewInterfaceWizardPage(java.lang.String pPageName, IUnoidlProject pProject, java.lang.String pRootName, java.lang.String pElementName)Constructor.- Parameters:
pPageName- the page namepProject- the project for which to create the interface.pRootName- scoped name of the module containing the typepElementName- name of the type, without any '.' or '::'
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
disposein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
disposein classNewScopedElementWizardPage
-
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
protected 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
public java.lang.String getTitle()
- Specified by:
getTitlein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
getTitlein classorg.eclipse.jface.dialogs.DialogPage
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
getDescriptionin classorg.eclipse.jface.dialogs.DialogPage
-
getTypeLabel
protected java.lang.String 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
-
selectionChanged
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent pEvent)
- Specified by:
selectionChangedin interfaceorg.eclipse.jface.viewers.ISelectionChangedListener
-
fillData
public UnoFactoryData fillData(UnoFactoryData pData)
- Overrides:
fillDatain classNewScopedElementWizardPage- Parameters:
pData- the data to fill- Returns:
- the given data with the completed properties,
nullif the provided data isnull
-
getEmptyTypeData
public UnoFactoryData getEmptyTypeData()
Creates an empty factory data for the page UNO type.- Specified by:
getEmptyTypeDatain classNewScopedElementWizardPage- Returns:
- the empty UNO factory data
-
-