|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.gef.ui.parts.GraphicalEditor
org.drools.eclipse.editors.rete.ReteViewer
public class ReteViewer
GEF-based RETE Viewer
| Field Summary | |
|---|---|
static String |
MSG_PARSE_ERROR
|
| Fields inherited from interface org.eclipse.ui.IEditorPart |
|---|
PROP_DIRTY, PROP_INPUT |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
ReteViewer(DRLRuleEditor drlEditor)
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
configureGraphicalViewer()
|
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
No save operation in ReteViewer |
void |
drawGraph(ReteGraph newGraph)
Draws graph. |
void |
fireDocumentChanged()
Fired when underlying source is modified. |
Object |
getAdapter(Class type)
|
protected void |
initializeGraphicalViewer()
Loads Rete model and initializes zoom manager. |
boolean |
isDirty()
ReteViewer is never dirty. |
ReteGraph |
loadReteModel(org.eclipse.core.runtime.IProgressMonitor monitor,
String contents)
Loads model from rule base, calculates rete view and initializes diagram model. |
| Methods inherited from class org.eclipse.gef.ui.parts.GraphicalEditor |
|---|
commandStackChanged, createActions, createGraphicalViewer, createPartControl, dispose, doSaveAs, firePropertyChange, getActionRegistry, getCommandStack, getEditDomain, getGraphicalViewer, getPropertyActions, getSelectionActions, getSelectionSynchronizer, getStackActions, hookGraphicalViewer, init, initializeActionRegistry, isSaveAsAllowed, selectionChanged, setActionRegistry, setEditDomain, setFocus, setGraphicalViewer, updateActions |
| Methods inherited from class org.eclipse.ui.part.EditorPart |
|---|
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, 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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, removePropertyListener |
| Field Detail |
|---|
public static final String MSG_PARSE_ERROR
| Constructor Detail |
|---|
public ReteViewer(DRLRuleEditor drlEditor)
documentProvider - documentProvider must contain Document with rules.| Method Detail |
|---|
protected void configureGraphicalViewer()
configureGraphicalViewer in class org.eclipse.gef.ui.parts.GraphicalEditorpublic Object getAdapter(Class type)
getAdapter in interface org.eclipse.core.runtime.IAdaptablegetAdapter in class org.eclipse.gef.ui.parts.GraphicalEditor
public ReteGraph loadReteModel(org.eclipse.core.runtime.IProgressMonitor monitor,
String contents)
throws Throwable
monitor - contents -
Throwableprotected void initializeGraphicalViewer()
initializeGraphicalViewer in class org.eclipse.gef.ui.parts.GraphicalEditorpublic void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
doSave in interface org.eclipse.ui.ISaveablePartdoSave in class org.eclipse.ui.part.EditorPartpublic boolean isDirty()
isDirty in interface org.eclipse.ui.ISaveablePartisDirty in class org.eclipse.gef.ui.parts.GraphicalEditorpublic void fireDocumentChanged()
public void drawGraph(ReteGraph newGraph)
newGraph - used to replace existing graph. if null then existing graph is simply redrawn.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||