Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » problems with openLocalFile
problems with openLocalFile [message #681997] Fri, 10 June 2011 07:51 Go to next message
Anders  is currently offline Anders Friend
Messages: 6
Registered: June 2011
Junior Member
I implemented the Sample XML editor in a simple RCP application and then implemented the openLocalFile (org.eclipse.ui.edit.text.openLocalFile) as a command in a menu (org.eclipse.ui.menus).

The openLocalFile command works and I get a fileDialog in which I'm able to open a file, but when choosing an .xml file it doesnt open in the Sample XML editor, it looks like it just uses the org.eclipse.ui.DefaultTextEditor.

When i tried to implement my own open file class with a fileDialog and force it to open with the Standard XML editors id I just get an error.

Hope that someone can help - in advance, thank you!
Re: problems with openLocalFile [message #682035 is a reply to message #681997] Fri, 10 June 2011 09:26 Go to previous message
Anders  is currently offline Anders Friend
Messages: 6
Registered: June 2011
Junior Member
I was able to find the mistake myself, it seems that the Sample XML editor doesnt set itself as the default editor for the .xml extension, when setting this the problem is fixed! BUT I discovered a new problem and I think it might have something to do with my editorInput, can anyone show me some sample code for how to set this for an xml document?
Previous Topic:ActionProvider for a TabbedPropertyPage
Next Topic:JasperWave - completely new Eclipse-based designer for JasperReports
Goto Forum:
  


Current Time: Fri Mar 29 09:43:00 GMT 2024

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

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

Back to the top