Class SyntSelectionProvider

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethodDescription
      protected abstract org.eclipse.swt.graphics.Point_getSelection()
      Gets the selection.
      protected abstract void_setSelection​(int begin, int end)
      Sets the selection.
      voidaddSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener listener)
      Adds a listener for selection changes in this selection provider.
      booleancanCopy()
      Check if Copy is enabled.
      booleancanCut()
      Check if Cut is enabled.
      booleancanDelete()
      Checks if Delete is enabled.
      booleancanPaste()
      Check for paste enabled.
      abstract voidcopy()
      Copy.
      abstract voidcut()
      Cut.
      voiddelete()
      Delete.
      org.eclipse.jface.viewers.ISelectiongetSelection()
      Returns the current selection for this provider.
      protected abstract java.lang.StringgetText()
      Gets the text.
      protected abstract booleanisEnabled()
      Checks if enabled.
      protected booleanisPassword()
      Checks if enabled.
      abstract voidpaste()
      Pastes text.
      voidremoveSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener listener)
      Removes the given selection change listener from this selection provider.
      voidselectAll()
      Select all.
      voidsetSelection​(org.eclipse.jface.viewers.ISelection selection)
      Sets the current selection for this selection provider.
      protected abstract voidsetText​(java.lang.String s)
      Sets the text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addSelectionChangedListener

        public void addSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener listener)
        Adds a listener for selection changes in this selection provider. Has no effect if an identical listener is already registered.
        Specified by:
        addSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
        Parameters:
        listener - a selection changed listener
      • removeSelectionChangedListener

        public void removeSelectionChangedListener​(org.eclipse.jface.viewers.ISelectionChangedListener listener)
        Removes the given selection change listener from this selection provider. Has no effect if an identical listener is not registered.
        Specified by:
        removeSelectionChangedListener in interface org.eclipse.jface.viewers.ISelectionProvider
        Parameters:
        listener - a selection changed listener
      • getSelection

        public org.eclipse.jface.viewers.ISelection getSelection()
        Returns the current selection for this provider.
        Specified by:
        getSelection in interface org.eclipse.jface.viewers.ISelectionProvider
        Returns:
        the current selection
      • setSelection

        public void setSelection​(org.eclipse.jface.viewers.ISelection selection)
        Sets the current selection for this selection provider.
        Specified by:
        setSelection in interface org.eclipse.jface.viewers.ISelectionProvider
        Parameters:
        selection - the new selection
      • isEnabled

        protected abstract boolean isEnabled()
        Checks if enabled.
      • getText

        protected abstract java.lang.String getText()
        Gets the text.
      • setText

        protected abstract void setText​(java.lang.String s)
        Sets the text.
      • isPassword

        protected boolean isPassword()
        Checks if enabled.
      • _setSelection

        protected abstract void _setSelection​(int begin,
                                              int end)
        Sets the selection.
      • _getSelection

        protected abstract org.eclipse.swt.graphics.Point _getSelection()
        Gets the selection.