Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Viewpart vs. Editorpart, proxy Editorpart, common Eclipse design question
Viewpart vs. Editorpart, proxy Editorpart, common Eclipse design question [message #468185] Tue, 04 August 2009 13:22
chris is currently offline chrisFriend
Messages: 9
Registered: July 2009
Junior Member
Dear Eclipse Community,

I am currently working on an academical project called KIEM. It tries to
make executions of graphical (e.g., EMF) models available in Eclipse as a
sub project of KIELER: s/KIEM

Please take a short look at the screen snapshots that are located at the
bottom of the page.

The Execution Manager is currently implemented as a (savable) ViewPart as
it extends ISaveablePart2.
It manages DataComponent plug-ins that may take over the role of a data
observer or data producer or even both (these plug-ins implement Extension
The Execution Manger starts up with a default order of all loaded
DataComponents. But it allows the user to reschedule the execution order,
to disable DataComponents or even to add multiple instances or remove
DataComponents from the list. These execution sets can be saved in
*.execution files.
The user also wants to easily open execution set files into the Execution
Manager. Therefor a proxy EditorPart takes the selected file an triggers
the Execution Manager's ViewPart to open the chosen file.

This behavior might let one think that the Execution Manager should just
be an EditorPart and not a ViewPart at all (in order to get rid of the
proxy EditorPart).

But as you can see on the screen snapshot one also wants to have the
ViewActions that would not be available for editors. Also we would like to
drag the whole view out of the Workbench. The Execution Manager view
should relate to open Editors so it feels unnatural to let itself be an

On the other hand there is the possibility of splitting up the behavior
into a ViewPart (without editing options) and an EditorPart that just
allows editing without the ViewActions, both presenting the same list of
DataComponents to the user. This option also feels user unfriendly to me
as it might confuse the user because there is no clear visible but a
strong behavioral difference between both parts and the whole thing
becomes more complicated to use.

But in order to get some other opinions about this design question I'd
really like you to comment on that issue.

Thanks in advance!
Previous Topic:Intercepting: "Close Editor + Don't Save"
Next Topic:Checkstyle "hides a field" strategy.
Goto Forum:

Current Time: Sat May 26 08:29:05 GMT 2018

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

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

Back to the top