Extension SDK 9.0.5

oracle.jdeveloper.ceditor
Interface CodeEditorGutter

All Superinterfaces:
ControllerProvider, Gutter, Helpable, View

public interface CodeEditorGutter
extends Gutter, View

The CodeEditorGutter interface is an extension of the editor's Gutter interface to integrate with the JDev environment and provide Context information for other Addins.

The CodeEditorGutter does have a ContextMenu available. Use CodeEditor.getGutterContextMenu() in order to attach/detach as a ContextMenuListener. When the context menu is going to popup up, your listeners will be called with the context of the gutter - the view will be set to the specific CodeEditorGutter instance, while the gutter's owner is the associated Code Editor. The (1-based) line number that was clicked on will be stored in the context extra data member with an Integer wrapper, or null if the user right-clicked on a non-existent line.

When you get the context of this CodeEditorGutter, either by calling getContext() or by what is provided through the gutter's ContextMenu, the view returned in getView() will be the gutter itself, while the owner of the gutter view will be the associated CodeEditor instance.


Field Summary
 
Fields inherited from interface oracle.javatools.editor.gutter.Gutter
DEFAULT_WIDTH, MAXIMUM_WIDTH, MINIMUM_WIDTH
 
Fields inherited from interface oracle.ide.addin.View
PROJECT_PROP, VISIBLE_PROP, WORKSPACE_PROP
 
Method Summary
 Context getContext()
          Gets the current view context associated with this particular Code Editor and Gutter.
 
Methods inherited from interface oracle.javatools.editor.gutter.Gutter
addColumn, addColumn, addGutterClickListener, addGutterMark, removeAllColumns, removeColumn, removeGutterClickListener, removeGutterMark
 
Methods inherited from interface oracle.ide.addin.View
activate, addViewListener, addViewSelectionListener, close, deactivate, getContext, getContextMenu, getGUI, getId, getSelection, getToolbar, isVisible, owner, removeViewListener, removeViewSelectionListener, setToolbarVisible, show, updateTitle, updateVisibleActions
 
Methods inherited from interface oracle.ide.addin.ControllerProvider
getController
 
Methods inherited from interface oracle.ide.help.Helpable
getHelpInfo
 

Method Detail

getContext

public Context getContext()
Gets the current view context associated with this particular Code Editor and Gutter. The view will return this current CodeEditorGutter instance, while the owner of the CodeEditorGutter view will be the CodeEditor view.

Specified by:
getContext in interface View
Returns:
the current view context.

Extension SDK

 

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