Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Unconditionally opening an editor
Unconditionally opening an editor [message #956208] Wed, 24 October 2012 10:20
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 424
Registered: September 2009
Senior Member
Hi,
I probably chose the Wrong Path (tm) amd I'm ready to stand corrected,
but...

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.

TiA
Mauro
Previous Topic:Hide Key Bindings from Preference Page
Next Topic:Eclipse RCP Synchronyze getImageDescriptor
Goto Forum:
  


Current Time: Sun Nov 23 00:04:25 GMT 2014

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

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