org.openoffice.ide.eclipse.core.wizards.pages
Class BaseUnoConnectionPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.openoffice.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.

Author:
cbosdonnat

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
BaseUnoConnectionPage()
          Default constructor.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite pParent)
          
 java.lang.String getConnectionCode()
           
 IOOo getOoo()
           
 ISdk getSdk()
           
 void setConnectionPatterns(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
 
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

BaseUnoConnectionPage

public BaseUnoConnectionPage()
Default constructor.

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:

Parameters:
pPipe - the pattern for the pipe connection
pSocket - 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