Update editor [message #326281] |
Thu, 13 March 2008 16:25 |
Eclipse User |
|
|
|
Originally posted by: invone2000.yahoo.de
Hi!
I have an editor opened from an own created launch configuration.
Now I change the content of the file which the editor displays.
How can I "tell" the editor to updated the viewed stuff?
Cheers
R4ID
|
|
|
Re: Update editor [message #326289 is a reply to message #326281] |
Thu, 13 March 2008 20:12 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
R4ID wrote:
> Hi!
> I have an editor opened from an own created launch configuration.
> Now I change the content of the file which the editor displays.
>
> How can I "tell" the editor to updated the viewed stuff?
What kind of editor is it?
Eric
|
|
|
Re: Update editor [message #326298 is a reply to message #326289] |
Fri, 14 March 2008 05:52 |
Eclipse User |
|
|
|
Originally posted by: invone2000.yahoo.de
To open the editor I use:
//Identify the destination resource
IResource resource ...;
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();
//Open the file in its cor. editor
IEditorPart editor = IDE.openEditor(page, (IFile) selectedResource, true);
//Now I have the IEditorPart
I store the reference as IEditingDomainProvider:
this.editor = (IEditingDomainProvider)editor;
The File is an ecore model...
Cheers
R4ID
|
|
|
Re: Update editor [message #326346 is a reply to message #326298] |
Mon, 17 March 2008 05:18 |
Eclipse User |
|
|
|
Originally posted by: invone2000.yahoo.de
Hmm, I just wanted to update the thread ;)
I wondered about reopening the file. But for this I need the workbench and
this I can't fetch without being in a plugin with graphical components...
Cheers
R4ID
|
|
|
Powered by
FUDForum. Page generated in 0.03350 seconds