Class BslInfoView

  • All Implemented Interfaces:
    ISyntaxAssistBrowser, EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, ISelectionChangedListener, org.eclipse.ui.IPersistable, org.eclipse.ui.ISelectionListener, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class BslInfoView
    extends org.eclipse.ui.part.ViewPart
    implements ISelectionChangedListener, org.eclipse.ui.ISelectionListener, ISyntaxAssistBrowser
    The View for show context help for element in BSL language
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static interface  BslInfoView.IMethodicalBrowserInput
      Special extension for org.eclipse.jface.internal.text.html.BrowserInpu The classes implements the interface must be contains url to methodical information
      static interface  BslInfoView.ITypeSetBrowserInput
      Special extension for org.eclipse.jface.internal.text.html.BrowserInpu The classes implements the interface must be contains actual TypeSet names and their including types
      static interface  BslInfoView.IVersionedBrowserInput
      Special extension for org.eclipse.jface.internal.text.html.BrowserInpu The classes implements this interface must be contains actual version project for content that they have
      static class  BslInfoView.TextBrowserInput
      Implementation of a BrowserInput using an String as input.
      static class  BslInfoView.URLBrowserInput
      Implementation of a BrowserInput using an URL as input.
    • Field Summary

      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

        PROP_TITLE
    • Constructor Summary

      Constructors 
      Constructor Description
      BslInfoView()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void createActions()
      Creates the actions and action groups for this view.
      void createPartControl​(org.eclipse.swt.widgets.Composite parent)
      Creates control, this control is very similar with JavadocView
      void dispose()
      remove all listener and dispose Browser
      protected void fillActionBars​(org.eclipse.ui.IActionBars actionBars)
      Fills the actions bars.
      protected void fillToolBar​(org.eclipse.jface.action.IToolBarManager tbm)
      Fills the tool bar.
      ISyntaxAssistBrowserAction getBackAction()
      Gets current back action for browser
      org.eclipse.jface.internal.text.html.BrowserInput getCurrentBrowserInput()
      Gets current browser input
      ISyntaxAssistBrowserAction getForthAction()
      Gets current forth action for browser
      void selectionChanged​(SelectionChangedEvent event)
      void selectionChanged​(org.eclipse.ui.IWorkbenchPart part, ISelection selection)
      Describes the actions that occur when a new element was selected
      void setFocus()
      void setInput​(org.eclipse.jface.internal.text.html.BrowserInput input)
      Set input to the given input.
      • Methods inherited from class org.eclipse.ui.part.ViewPart

        checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
      • Methods inherited from class org.eclipse.ui.part.WorkbenchPart

        addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from interface org.eclipse.core.runtime.IAdaptable

        getAdapter
      • Methods inherited from interface org.eclipse.ui.IWorkbenchPart

        addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
    • Constructor Detail

      • BslInfoView

        public BslInfoView()
    • Method Detail

      • createPartControl

        public void createPartControl​(org.eclipse.swt.widgets.Composite parent)
        Creates control, this control is very similar with JavadocView
        Specified by:
        createPartControl in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        createPartControl in class org.eclipse.ui.part.WorkbenchPart
      • setFocus

        public void setFocus()
        Specified by:
        setFocus in interface org.eclipse.ui.IWorkbenchPart
        Specified by:
        setFocus in class org.eclipse.ui.part.WorkbenchPart
      • selectionChanged

        public void selectionChanged​(org.eclipse.ui.IWorkbenchPart part,
                                     ISelection selection)
        Describes the actions that occur when a new element was selected
        Specified by:
        selectionChanged in interface org.eclipse.ui.ISelectionListener
      • setInput

        public void setInput​(org.eclipse.jface.internal.text.html.BrowserInput input)
        Set input to the given input.
        Specified by:
        setInput in interface ISyntaxAssistBrowser
        Parameters:
        input - the input for the view
      • dispose

        public void dispose()
        remove all listener and dispose Browser
        Specified by:
        dispose in interface org.eclipse.ui.IWorkbenchPart
        Overrides:
        dispose in class org.eclipse.ui.part.WorkbenchPart
      • getCurrentBrowserInput

        public org.eclipse.jface.internal.text.html.BrowserInput getCurrentBrowserInput()
        Gets current browser input
        Specified by:
        getCurrentBrowserInput in interface ISyntaxAssistBrowser
        Returns:
        BrowserInput
      • createActions

        protected void createActions()
        Creates the actions and action groups for this view.
      • fillActionBars

        protected void fillActionBars​(org.eclipse.ui.IActionBars actionBars)
        Fills the actions bars.
        Parameters:
        actionBars - the action bars
      • fillToolBar

        protected void fillToolBar​(org.eclipse.jface.action.IToolBarManager tbm)
        Fills the tool bar.
        Parameters:
        tbm - the tool bar manager