Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.ide.ceditor
Class LineNavigationPoint

java.lang.Object
  extended by oracle.ide.navigation.DefaultNavigationPoint
      extended by oracle.ide.ceditor.CodeNavigationPoint
          extended by 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.ceditor.CodeNavigationPoint
change, explicit, preferredType, selLength, start, tracker
 
Fields inherited from class oracle.ide.navigation.DefaultNavigationPoint
done, nodeURL, prjURL, viewClass, viewID, wspURL
 
Fields inherited from interface oracle.ide.navigation.NavigationPoint
CANCEL, OK
 
Constructor Summary
LineNavigationPoint(Context context, int offset, boolean select)
          Constructor.
LineNavigationPoint(Context context, int line, int col, boolean select)
          Constructor.
 
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, findOrCreateEditor, getPreferredEditorType, gotoOffset, refresh, renavigate, setContext, setExplicit, setPreferredEditorType
 
Methods inherited from class oracle.ide.navigation.DefaultNavigationPoint
addNavigationPointListener, contextRemoved, copyToImpl, findEditorInfo, fireDescriptionChanged, fireExpired, getContext, getIcon, getLongLabel, getShortLabel, getToolTipText, navigate, nodeRenamed, projectRenamed, removeNavigationPointListener, toString, workspaceRenamed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

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.
Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.