|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.editor.ISeriesEditorCobolILEMarkElement
This class represents a marked location in the COBOL file text. TIP: By implementing the IWorkbenchAdapter interface, we can easily add objects of this type to viewers and parts in the workbench. When a viewer contains IWorkbenchElements, the generic WorkbenchElementContentProvider and WorkbenchElementLabelProvider can be used to provide navigation and display for that viewer.
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
ISeriesEditorCobolILEMarkElement(IAdaptable parent,
String heading,
int offset,
int length)
Creates a new MarkElement and stores parent element and location in the text. |
Method Summary | |
---|---|
Object |
getAdapter(Class adapter)
Returns an object which is an instance of the given class associated with this object. |
Object[] |
getChildren(Object o)
Returns the children of this element. |
ImageDescriptor |
getImageDescriptor(Object object)
Returns an image to be used for displaying an object in the desktop. |
String |
getLabel(Object o)
getLabel method comment. |
int |
getLength()
Returns the number of characters in this section. |
int |
getNumberOfLines()
Returns the number of lines in the element. |
IAdaptable |
getParent()
Returns the parent element. |
Object |
getParent(Object o)
Returns the logical parent of the given object in its tree. |
int |
getStart()
Returns the offset of this section in the file. |
void |
setNumberOfLines(int newNumberOfLines)
Sets the number of lines in the element |
String |
toString()
For debugging purposes only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public ISeriesEditorCobolILEMarkElement(IAdaptable parent, String heading, int offset, int length)
parent
- the parent of this elementheading
- text corresponding to the headingoffset
- the offset into the COBOL textlength
- the length of the elementMethod Detail |
public Object getAdapter(Class adapter)
null
if
no such object can be found.
getAdapter
in interface IAdaptable
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic Object[] getChildren(Object o)
getChildren
in interface IWorkbenchAdapter
public ImageDescriptor getImageDescriptor(Object object)
getImageDescriptor
in interface IWorkbenchAdapter
object
- The object to get an image for.public String getLabel(Object o)
getLabel
in interface IWorkbenchAdapter
public int getLength()
public int getNumberOfLines()
public IAdaptable getParent()
public Object getParent(Object o)
null
if there is no parent, or if this object doesn't
belong to a tree.
getParent
in interface IWorkbenchAdapter
public int getStart()
public void setNumberOfLines(int newNumberOfLines)
newNumberOfLines
- the number of lines in the elementpublic String toString()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |