org.drools.eclipse.editors.outline
Class RuleContentOutlinePage

java.lang.Object
  extended by org.eclipse.ui.part.Page
      extended by org.eclipse.ui.views.contentoutline.ContentOutlinePage
          extended by org.drools.eclipse.editors.outline.RuleContentOutlinePage
All Implemented Interfaces:
org.eclipse.jface.viewers.ISelectionChangedListener, org.eclipse.jface.viewers.ISelectionProvider, org.eclipse.ui.part.IPage, org.eclipse.ui.part.IPageBookViewPage, org.eclipse.ui.views.contentoutline.IContentOutlinePage

public class RuleContentOutlinePage
extends org.eclipse.ui.views.contentoutline.ContentOutlinePage

Simple outline view of a DRL file. At present this is not wired in with the Parser, so it is fault tolerant of incorrect syntax. Should provide navigation assistance in large rule files.


Constructor Summary
RuleContentOutlinePage(AbstractRuleEditor editor)
           
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void initRules()
           
 void makeContributions(org.eclipse.jface.action.IMenuManager menuManager, org.eclipse.jface.action.IToolBarManager toolBarManager, org.eclipse.jface.action.IStatusLineManager statusLineManager)
           
 void populatePackageTreeNode()
          populates the PackageTreeNode with all of its child elements
 void update()
          Updates the outline page.
 
Methods inherited from class org.eclipse.ui.views.contentoutline.ContentOutlinePage
addSelectionChangedListener, fireSelectionChanged, getControl, getSelection, getTreeViewer, init, removeSelectionChangedListener, selectionChanged, setFocus, setSelection
 
Methods inherited from class org.eclipse.ui.part.Page
dispose, getSite, setActionBars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.part.IPage
dispose, setActionBars
 

Constructor Detail

RuleContentOutlinePage

public RuleContentOutlinePage(AbstractRuleEditor editor)
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.ui.part.IPage
Overrides:
createControl in class org.eclipse.ui.views.contentoutline.ContentOutlinePage

update

public void update()
Updates the outline page.


populatePackageTreeNode

public void populatePackageTreeNode()
populates the PackageTreeNode with all of its child elements

Parameters:
packageTreeNode - the node to populate

initRules

public void initRules()

makeContributions

public void makeContributions(org.eclipse.jface.action.IMenuManager menuManager,
                              org.eclipse.jface.action.IToolBarManager toolBarManager,
                              org.eclipse.jface.action.IStatusLineManager statusLineManager)
Overrides:
makeContributions in class org.eclipse.ui.part.Page


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.