Skip navigation links 
 
oracle.ide.ceditor
Class ViewLimitProvider
java.lang.Object
  
oracle.ide.ceditor.ViewLimitProvider
- 
public abstract class ViewLimitProvider
 
- extends java.lang.Object
 
An provider to control the 'view limiting' of a CodeEditors editor pane. A limited view is restricted so the user can only view one section at a time. This class should be created by a registered ViewLimitProviderFactory. Override with a language or node specific getLimitedOffsets() implementations. e.g. Given an offset location the Java implementation returns the offsets of an enclosing method, class or field declaration.
 
  
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
ViewLimitProvider
public ViewLimitProvider()
attach
public void attach(CodeEditor editor)
detatch
public void detatch(CodeEditor editor)
getCodeEditor
protected CodeEditor getCodeEditor()
getLimitedOffsets
protected abstract Pair<java.lang.Integer,java.lang.Integer> getLimitedOffsets()
- 
- Returns:
 
- the the start and end offsets to restrict the view to. Return -1 to not restrict the view.
 
 
addToolbarButton
protected void addToolbarButton(CodeEditor ce)
Skip navigation links 
 
Copyright © 1997, 2014, Oracle. All rights reserved.