/** Writes the kind to stream */ public void write(DataOutput os) throws IOException { /* pre-33165 int offset = getOffset(); int line = getLine(); int column = getColumn(); */ DocumentRenderer renderer = new DocumentRenderer(mgr, DocumentRenderer.POSITION_KIND_WRITE, this); int offset = renderer.renderToIntIOE(); int line = renderer.getLine(); int column = renderer.getColumn(); if ((offset < 0) || (line < 0) || (column < 0)) { throw new IOException( "Illegal PositionKind: " + pos + "[offset=" // NOI18N +offset + ",line=" // NOI18N +line + ",column=" + column + "] in " // NOI18N +mgr.getDoc() + " used by " + mgr.support + "." // NOI18N ); } os.writeInt(offset); os.writeInt(line); os.writeInt(column); }
/** Writes the kind to stream */ public void write (DataOutput os) throws IOException { /* pre-33165 int offset = getOffset(); int line = getLine(); int column = getColumn(); */ DocumentRenderer renderer = new DocumentRenderer(mgr, DocumentRenderer.POSITION_KIND_WRITE, this); int offset = renderer.renderToIntIOE(); int line = renderer.getLine(); int column = renderer.getColumn(); if(offset < 0 || line < 0 || column < 0) { throw new IOException( "Illegal PositionKind: " + pos + "[offset=" // NOI18N + offset + ",line=" // NOI18N + line + ",column=" + column + "] in " // NOI18N + mgr.getDoc () + " used by " + mgr.support + "." // NOI18N ); } os.writeInt(offset); os.writeInt(line); os.writeInt(column); }
/** Writes the kind to stream */ public void write (DataOutput os) throws IOException { /* pre-33165 int offset = getOffset(); int line = getLine(); int column = getColumn(); */ DocumentRenderer renderer = new DocumentRenderer(mgr, DocumentRenderer.POSITION_KIND_WRITE, this); int offset = renderer.renderToIntIOE(); int line = renderer.getLine(); int column = renderer.getColumn(); if(offset < 0 || line < 0 || column < 0) { throw new IOException( "Illegal PositionKind: " + pos + "[offset=" // NOI18N + offset + ",line=" // NOI18N + line + ",column=" + column + "] in " // NOI18N + mgr.getDoc () + " used by " + mgr.support + "." // NOI18N ); } os.writeInt(offset); os.writeInt(line); os.writeInt(column); }
/** Get the line number */ public int getLine() throws IOException { // pre-33165 return NbDocument.findLineNumber(getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document is fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_LINE, this, offset).renderToIntIOE(); }
/** Get the column number */ public int getColumn() throws IOException { // pre-33165 return NbDocument.findLineColumn (getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_COLUMN, this, offset).renderToIntIOE(); }
/** Get the line number */ public int getLine() throws IOException { // pre-33165 return NbDocument.findLineNumber(getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document is fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_LINE, this, offset).renderToIntIOE(); }
/** Get the column number */ public int getColumn() throws IOException { // pre-33165 return NbDocument.findLineColumn (getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_COLUMN, this, offset).renderToIntIOE(); }
/** Get the column number */ public int getColumn() throws IOException { // pre-33165 return NbDocument.findLineColumn (getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_COLUMN, this, offset).renderToIntIOE(); }
/** Get the line number */ public int getLine() throws IOException { // pre-33165 return NbDocument.findLineNumber(getCloneableEditorSupport().openDocument(), offset); mgr.getCloneableEditorSupport().openDocument(); // make sure document is fully read return new DocumentRenderer(mgr, DocumentRenderer.OFFSET_KIND_GET_LINE, this, offset).renderToIntIOE(); }