Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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:

        • {0}: the host name
        • {1}: the port name
        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