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.WizardPageBase 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.
-
-
Constructor Summary
Constructors Constructor Description BaseUnoConnectionPage()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateControl(org.eclipse.swt.widgets.Composite pParent)java.lang.StringgetConnectionCode()IOOogetOoo()ISdkgetSdk()voidsetConnectionPatterns(java.lang.String pPipe, java.lang.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, 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
-
-
-
-
Method Detail
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite pParent)
-
setConnectionPatterns
public void setConnectionPatterns(java.lang.String pPipe, java.lang.String pSocket)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
public IOOo getOoo()
- Returns:
- the selected OOo instance
-
getSdk
public ISdk getSdk()
- Returns:
- the selected SDK instance
-
getConnectionCode
public java.lang.String getConnectionCode()
- Returns:
- the C++ connection code for the sample client
-
-