|Unconditionally opening an editor [message #956208]
||Wed, 24 October 2012 10:20
| Mauro Condarelli
Registered: September 2009
I probably chose the Wrong Path (tm) amd I'm ready to stand corrected,
I want to write an app dealing with a bunch of data I have on a database
(I handle those directly at SQL level).
I like the Forms toolkit and in particular the MasterDetails framework
and this forces me to go RCP and editor (is this right? I don't really
need all RCP framework, but MasterDetailsBlock needs a IManagedForm ant
this means a FormPage which is an EditorPart, so it seems to me I need
to go the RCP Editor way).
Now I don't have any IFile for the editor (obviously, data being in
database) and neither any "extension".
I know I can open an editor programmatically, but that seems to need a
IWorkbenchPage already opened.
I (kind of) solved the problem adding a View to my app and then forcedly
opening my editor in view.createPartControl().
I still need to find a way to get rid of the useless view.
This "solution" seems over-complex and suggests I'm not using eclipse
the way it is intended to be used.
Can someone suggest the Right Way to:
Build a standalone application.
Using Forms (or something very similar) as UI.
Starting up with a well-defined and wired-in connection to a database.
Powered by FUDForum
. Page generated in 0.01964 seconds