|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jet.taglib.MarkerHelper
public class MarkerHelper
Helper for implementing task markers on writer output.
| Method Summary | |
|---|---|
static void |
createMarkerOnWriter(JET2Writer writer,
int start,
int end,
java.lang.String description,
TagInfo tagInfo,
java.lang.String templatePath)
Specify a region of the writer that will become a workspace marker when the file contents are committed. |
void |
finalizeContent(JET2Writer writer,
java.lang.Object file)
Perform any finalization of the content in the writer. |
void |
postCommitContent(JET2Writer writer,
java.lang.Object file)
Perform any post processing on the committed file based on content written. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void finalizeContent(JET2Writer writer,
java.lang.Object file)
throws JET2TagException
IWriterListener
finalizeContent in interface IWriterListenerwriter - the writer in the process of being finalizedfile - a handle to object to which the content will ultimately be written. The standard
JET2 Workspace tags pass an org.eclipse.core.resources.IFile, but other tags may pass objects
of other types.
JET2TagException - if the method cannot complete normally
public void postCommitContent(JET2Writer writer,
java.lang.Object file)
throws JET2TagException
IWriterListener
postCommitContent in interface IWriterListenerwriter - the writer that provided the committed content.file - a handle to the object containing the comitted content. The standard
JET2 Workspace tags pass an org.eclipse.core.resources.IFile, but other tags may pass objects
of other types.
JET2TagException - if method cannot complete normally.
public static void createMarkerOnWriter(JET2Writer writer,
int start,
int end,
java.lang.String description,
TagInfo tagInfo,
java.lang.String templatePath)
writer - the current writterstart - the start offset of the marker within the current bufferend - the offset of the first character after the markerdescription - the marker descrpitiontagInfo - the tag information of the tag creating the marker. May be nulltemplatePath - the path of the currently executing template. May be null.
java.lang.IllegalArgumentException - if writer is not a BufferedJET2Writer, or if
start and end are not with in the writer contents.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||