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
    Constructor
    Description
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createControl(org.eclipse.swt.widgets.Composite pParent)
     
     
     
    void
    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

    Methods 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

      public void setConnectionPatterns(String pPipe, 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 String getConnectionCode()
      Returns:
      the C++ connection code for the sample client