Class BaseUnoConnectionPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.libreoffice.ide.eclipse.core.wizards.pages.BaseUnoConnectionPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
public class BaseUnoConnectionPage
extends org.eclipse.jface.wizard.WizardPage
Base wizard page for the UNO Client configuration.
This class has to be sub-classed by clients to change the pages order and set the patterns for the code to open the UNO connection.
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite pParent) getOoo()getSdk()voidsetConnectionPatterns(String pPipe, String pSocket) Defines the patterns of code to instantiate a pipe or socket UNO connection.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, toStringMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
BaseUnoConnectionPage
public BaseUnoConnectionPage()Default constructor.
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite pParent) -
setConnectionPatterns
Defines the patterns of code to instantiate a pipe or socket UNO connection.For a pipe connection, the only parameter is the pipe's name.
For a socket connection: the parameters are:
- {0}: the host name
- {1}: the port name
- Parameters:
pPipe- the pattern for the pipe connectionpSocket- the pattern for the socket connection
-
getOoo
- Returns:
- the selected OOo instance
-
getSdk
- Returns:
- the selected SDK instance
-
getConnectionCode
- Returns:
- the C++ connection code for the sample client
-