private Region fTagPosition;
/** Index of the Element in an NLSLine */
- private int fIndex;
+ //private int fIndex;
/**
* Creates a new NLS element for the given string and position.
*/
public NLSElement(String value, int start, int length, int index) {
fValue = value;
- fIndex = index;
+ //fIndex = index;
Assert.isNotNull(fValue);
fPosition = new Region(start, length);
}
*
* @return Returns the position of the string to be NLSed
*/
- public Region getPosition() {
- return fPosition;
- }
+// public Region getPosition() {
+// return fPosition;
+// }
/**
* Returns the actual string value.
/**
* Sets the tag position if one is associated with the NLS element.
*/
- public void setTagPosition(int start, int length) {
- fTagPosition = new Region(start, length);
- }
+// public void setTagPosition(int start, int length) {
+// fTagPosition = new Region(start, length);
+// }
/**
* Returns the tag position for this element. The method can return
* <code>null</code>. In this case no tag has been found for this NLS
* element.
*/
- public Region getTagPosition() {
- return fTagPosition;
- }
+// public Region getTagPosition() {
+// return fTagPosition;
+// }
/**
* Returns <code>true</code> if the NLS element has an assicated
return fTagPosition != null && fTagPosition.getLength() > 0;
}
- public static String createTagText(int index) {
- return TAG_PREFIX + index + TAG_POSTFIX;
- }
+// public static String createTagText(int index) {
+// return TAG_PREFIX + index + TAG_POSTFIX;
+// }
- public String getTagText() {
- return TAG_PREFIX + (fIndex + 1) + TAG_POSTFIX;
- }
+// public String getTagText() {
+// return TAG_PREFIX + (fIndex + 1) + TAG_POSTFIX;
+// }
/*
* (Non-Javadoc) Method declared in Object. only for debugging