Hello, please can you help me to catch the buffered text present into the editor, I have this code:
System.out.println( Workbench.getInstance().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getTitle() );
System.out.println( Workbench.getInstance().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorInput() );
I can not follow the path indicated by the first line, and pratically re-reading the file because I need exactly the text buffer.
In the second line instead I receive always a path from the casted class org.eclipse.ui.examples.rcp.texteditor.editors.PathEditorInput (which I don't want to include @runtime in my app)
Please help me, tnx