* Mockobject for Testing.
*
* @author Stefan Langer
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
-public class DummyDocument implements IDocument
+public class DummyDocument extends Document // implements IDocument
{
private char[] fTextBuffer;
/* (non-Javadoc)
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#addPositionCategory(java.lang.String)
*/
- public void addPositionCategory(String category)
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public void addPositionCategory(String category)
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#removePositionCategory(java.lang.String)
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#containsPositionCategory(java.lang.String)
*/
- public boolean containsPositionCategory(String category)
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public boolean containsPositionCategory(String category)
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#addPosition(org.eclipse.jface.text.Position)
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#addPositionUpdater(org.eclipse.jface.text.IPositionUpdater)
*/
- public void addPositionUpdater(IPositionUpdater updater)
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public void addPositionUpdater(IPositionUpdater updater)
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#removePositionUpdater(org.eclipse.jface.text.IPositionUpdater)
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#insertPositionUpdater(org.eclipse.jface.text.IPositionUpdater, int)
*/
- public void insertPositionUpdater(IPositionUpdater updater, int index)
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public void insertPositionUpdater(IPositionUpdater updater, int index)
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#getPositionUpdaters()
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#getLegalLineDelimiters()
*/
- public String[] getLegalLineDelimiters()
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public String[] getLegalLineDelimiters()
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#getLineDelimiter(int)
*/
- public String getLineDelimiter(int line) throws BadLocationException
- {
- throw new UnsupportedOperationException("Not implemented!");
- }
+// public String getLineDelimiter(int line) throws BadLocationException
+// {
+// throw new UnsupportedOperationException("Not implemented!");
+// }
/* (non-Javadoc)
* @see org.eclipse.jface.text.IDocument#search(int, java.lang.String, boolean, boolean, boolean)