|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.cobol.ISeriesEditorCobolILEMarkElement
public class 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)
domain
- the domain notifierparent
- 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.
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic Object[] getChildren(Object o)
public ImageDescriptor getImageDescriptor(Object object)
object
- The object to get an image for.owner
- The viewer that the image will be used in. The image will
be disposed when this viewer is closed. If the owner is null, a new
image is returned, and the caller is responsible for disposing it.public String getLabel(Object o)
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.
object
- The object to get the parent for.public int getStart()
public void setNumberOfLines(int newNumberOfLines)
newNumberOfLines
- the number of lines in the elementpublic String toString()
toString
in class Object
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |