Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Update editor
Update editor [message #326281] Thu, 13 March 2008 16:25 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:how to get the object in the package explorer
Next Topic:Software update doesn't work
Goto Forum:
  


Current Time: Sun Jun 30 09:54:56 GMT 2024

Powered by FUDForum. Page generated in 0.03315 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top