[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: plugin editor help

Sorry for being a pain but I've read the text you suggested but it didn't get me anywhere.

This my plugin code so far:
public class SampleAction implements IWorkbenchWindowActionDelegate {
private IWorkbenchWindow window;


 public SampleAction() {}

public void run(IAction action) {

IEditorPart editor = window.getActivePage().getActiveEditor();
}


 public void selectionChanged(IAction action, ISelection selection) {}

 public void dispose() {	}

public void init(IWorkbenchWindow window) {
this.window = window;
}
}


I'm trying to access the active editors properties via IEditorPart. There are two thing I'd very much like to archive:
- write/read text from editor window into for instance a string variable
- open a new empty window window inside the editor


Hope that was clear enough.

Sorry for the confussion