public class CodeNavigationPoint
extends oracle.ide.navigation.DefaultNavigationPoint
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
change
Change index into TextBufferTracker at time of setting Context 
 | 
protected boolean | 
explicit
Flag indicating that the newly opened Editor should be opened as explicit. 
 | 
protected java.lang.Class | 
preferredType
Preferred Editor type when opening a new Editor. 
 | 
protected int | 
selLength
Length of selection hilight beginning at #start 
 | 
protected int | 
start
Starting offset to be navigated to. 
 | 
protected TextBufferTracker | 
tracker
TextBufferTracker monitoring changes to #start and #selLength values 
 | 
| Modifier | Constructor and Description | 
|---|---|
  | 
CodeNavigationPoint()
Default constructor. 
 | 
protected  | 
CodeNavigationPoint(Context context,
                   int start,
                   int length)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Object | 
copyTo(java.lang.Object target)
Copies the internal state of this object to the specified target. 
 | 
protected void | 
copyToImpl(CodeNavigationPoint point)
Copy the pertinent state information. 
 | 
boolean | 
equals(java.lang.Object o)  | 
protected Editor | 
findOrCreateEditor(boolean activate)
Find the existing Editor opened on our Context, else attempt to open a new
 Editor instance. 
 | 
java.lang.String | 
getLongLabel()
Default implementation returns the result of getShortLabel plus the
 addition of the Editor type in square braces. 
 | 
java.lang.Class | 
getPreferredEditorType()
Get the preferred Editor type to use when asking the EditorManager to open
 our Context in an Editor. 
 | 
protected static void | 
gotoOffset(BasicEditorPaneContainer editor,
          int offset,
          int range)
Reposition the cursor to the given offset, hilighting as necessary. 
 | 
void | 
refresh()
Fetch and remember the current caret position of the focused editor pane of
 the FindableEditor. 
 | 
protected int | 
renavigate()
Reset focus to existing open Editor, else open new Editor instance if no
 longer available, and set the cursor at the last location remembered from
 our #refresh method. 
 | 
void | 
setContext(Context context)
Set the Context describing the navigable location. 
 | 
void | 
setExplicit(boolean explicit)
Set the explicit flag. 
 | 
void | 
setPreferredEditorType(java.lang.Class cls)
Set the preferred Editor type to use when asking the EditorManager to open
 the Context in an Editor. 
 | 
addNavigationPointListener, contextRemoved, copyToImpl, findEditorInfo, fireDescriptionChanged, fireExpired, getContext, getIcon, getShortLabel, getToolTipText, navigate, navigateImpl, nodeRenamed, projectRenamed, removeNavigationPointListener, toString, workspaceRenamedprotected int start
protected int selLength
protected int change
protected TextBufferTracker tracker
protected java.lang.Class preferredType
protected boolean explicit
public CodeNavigationPoint()
protected CodeNavigationPoint(Context context, int start, int length)
context - the Context describing the Editor in which to navigate.start - the offset to navigate to, negative value indicates that
        opening the Editor is enough with no further navigation needed.length - number of characters to hilight beginning at start.public void setContext(Context context)
oracle.ide.navigation.DefaultNavigationPointsetContext in interface oracle.ide.navigation.EditorNavigationPointsetContext in class oracle.ide.navigation.DefaultNavigationPointcontext - a Context describing the navigable location.#context, 
ContextWatcherpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.Object copyTo(java.lang.Object target)
protected final void copyToImpl(CodeNavigationPoint point)
point - the NavigationPoint whose state is to be altered.public void refresh()
refresh in interface oracle.ide.navigation.NavigationPointrefresh in class oracle.ide.navigation.DefaultNavigationPointpublic void setExplicit(boolean explicit)
explicit - true if the Editor should be opened as explicit.explicitprotected int renavigate()
                  throws java.lang.Exception
renavigate in class oracle.ide.navigation.DefaultNavigationPointjava.lang.Exception - on failure.public java.lang.Class getPreferredEditorType()
EditorManager#openEditorInFrame( Context )public void setPreferredEditorType(java.lang.Class cls)
cls - the preferred Editor type, else null to use the default Editor.EditorManager#openEditorInFrame( Context )protected Editor findOrCreateEditor(boolean activate)
activate - true if a the Editor should also be activated.protected static void gotoOffset(BasicEditorPaneContainer editor, int offset, int range)
editor - the FindableEditor in which the cursor is to be relocated.offset - the offset to relocate to.range - the length from offset which should be hilighted.public java.lang.String getLongLabel()
oracle.ide.navigation.DefaultNavigationPointgetLongLabel in interface DisplayablegetLongLabel in class oracle.ide.navigation.DefaultNavigationPoint