| java.lang.Object org.eclipse.ui.examples.readmetool.MarkElement
MarkElement | public class MarkElement implements IWorkbenchAdapter,IAdaptable(Code) | | This class represents a marked location in the Readme
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 IWorkbenchAdapter ,
the generic WorkbenchContentProvider and
WorkbenchLabelProvider can be used to provide
navigation and display for that viewer.
|
Constructor Summary | |
public | MarkElement(IAdaptable parent, String heading, int offset, int length) Creates a new MarkElement and stores parent element and
location in the text. |
MarkElement | public MarkElement(IAdaptable parent, String heading, int offset, int length)(Code) | | Creates a new MarkElement and stores parent element and
location in the text.
Parameters: parent - the parent of this element Parameters: heading - text corresponding to the heading Parameters: offset - the offset into the Readme text Parameters: length - the length of the element |
getImageDescriptor | public ImageDescriptor getImageDescriptor(Object object)(Code) | | |
getLength | public int getLength()(Code) | | Returns the number of characters in this section.
|
getNumberOfLines | public int getNumberOfLines()(Code) | | Returns the number of lines in the element.
the number of lines in the element |
getStart | public int getStart()(Code) | | Returns the offset of this section in the file.
|
setNumberOfLines | public void setNumberOfLines(int newNumberOfLines)(Code) | | Sets the number of lines in the element
Parameters: newNumberOfLines - the number of lines in the element |
|
|