Skip navigation links
oracle.ide.ceditor
Class LineNavigationPoint
java.lang.Object
oracle.ide.navigation.DefaultNavigationPoint
oracle.ide.ceditor.CodeNavigationPoint
oracle.ide.ceditor.LineNavigationPoint
- All Implemented Interfaces:
- Displayable, oracle.ide.navigation.EditorNavigationPoint, oracle.ide.navigation.NavigationPoint, ContextHolder, Copyable
-
public class LineNavigationPoint
- extends CodeNavigationPoint
NavigationPoint implementation which navigates to a given line within a CodeEditor.
Field Summary |
protected boolean |
hilight
Flag indicating whether to hilight the line. |
protected boolean |
translate
Flag indicating whether the start value must first be converted to a line number. |
Fields inherited from class oracle.ide.navigation.DefaultNavigationPoint |
done, nodeURL, prjURL, viewClass, viewID, wspURL |
Fields inherited from interface oracle.ide.navigation.NavigationPoint |
CANCEL, OK |
Method Summary |
java.lang.Object |
copyTo(java.lang.Object target)
Copies the internal state of this object to the specified target. |
protected void |
copyToImpl(LineNavigationPoint point)
Copy the pertinent state information. |
protected int |
navigateImpl()
Navigate to the line within the CodeEditor. |
Methods inherited from class oracle.ide.ceditor.CodeNavigationPoint |
copyToImpl, equals, findOrCreateEditor, getLongLabel, getPreferredEditorType, gotoOffset, refresh, renavigate, setContext, setExplicit, setPreferredEditorType |
Methods inherited from class oracle.ide.navigation.DefaultNavigationPoint |
addNavigationPointListener, contextRemoved, copyToImpl, findEditorInfo, fireDescriptionChanged, fireExpired, getContext, getIcon, getShortLabel, getToolTipText, navigate, nodeRenamed, projectRenamed, removeNavigationPointListener, toString, workspaceRenamed |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
hilight
protected boolean hilight
- Flag indicating whether to hilight the line.
translate
protected boolean translate
- Flag indicating whether the start value must first be converted to a line number.
LineNavigationPoint
public LineNavigationPoint(Context context,
int line,
int col,
boolean select)
- Constructor.
- Parameters:
context
- the Context describing the CodeEditor in which to navigate.
line
- the line number to navigate to.
col
- the column location for the cursor upon the given line.
select
- true indicates that the entire line should be hilighted.
LineNavigationPoint
public LineNavigationPoint(Context context,
int offset,
boolean select)
- Constructor.
- Parameters:
context
- the Context describing the CodeEditor in which to navigate.
offset
- location within the CodeEditor to navigate to.
select
- true indicates that the entire line should be hilighted.
copyTo
public java.lang.Object copyTo(java.lang.Object target)
- Copies the internal state of this object to the specified target. If target is null, then this method should create a new instance of this class and proceed to copy the internal state to the newly created object.
-
- Specified by:
copyTo
in interface Copyable
- Overrides:
copyTo
in class CodeNavigationPoint
-
- Parameters:
target
- the Object to receive the state, or null.
- Returns:
- an instance with an identical state.
- See Also:
Copyable
copyToImpl
protected final void copyToImpl(LineNavigationPoint point)
- Copy the pertinent state information.
-
- Parameters:
point
- the NavigationPoint whose state is to be altered.
navigateImpl
protected int navigateImpl()
throws java.lang.Exception
- Navigate to the line within the CodeEditor.
-
- Overrides:
navigateImpl
in class oracle.ide.navigation.DefaultNavigationPoint
-
- Throws:
java.lang.Exception
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.