opening an editor with FileEditorInput [message #456004] |
Tue, 10 October 2006 18:03  |
Eclipse User |
|
|
|
Originally posted by: kostadin.gmail.com
I'm using the Web Tools Project (WTP) XML editor within my RCP
application. In order to open a new file using this editor I read that I
ought to use a FileEditorInput object. However, I can't access this
particular type from 'org.eclipse.ui.part'. I don't understand why??
Alternatively, I noticed that the editor gets opened within the Eclipse
workbench (in 'Open File...') using a JavaFileEditorInput. This one works,
but again access restrictions and warnings everywhere. I wanted to open a
new file, but since I ripped this approach from the 'Open File...' menu
option I have to have an actual file on disk. This isn't very smooth at
all.
Is there a better alternative to what I've tried in order to open a new
file using an external editor? Is there a better XML editor for RCP (seems
that all existing XML editors I find are written for the workbench and not
ideal for RCP apps)?
I appreciate any comments or ideas. Thanks,
-Kosta
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08997 seconds