Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316588 - A view for invoking EOperation on the EObject selection
Summary: A view for invoking EOperation on the EObject selection
Status: NEW
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 364799
  Show dependency tree
 
Reported: 2010-06-11 07:01 EDT by Hallvard Traetteberg CLA
Modified: 2016-02-08 09:30 EST (History)
1 user (show)

See Also:


Attachments
The main view class, superclass is in separate attachment (11.36 KB, application/octet-stream)
2010-06-11 07:02 EDT, Hallvard Traetteberg CLA
no flags Details
Superclass of main view class (6.15 KB, application/octet-stream)
2010-06-11 07:03 EDT, Hallvard Traetteberg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hallvard Traetteberg CLA 2010-06-11 07:01:00 EDT
EMF provides great support for editing (CRUD) a model, but not for invoking EOperations. I propose a view that shows the EOperations of the currently selected EObject (in the active editor) and lets the user provide arguments before invoking the EOperation on these arguments.

I have implemented a prototype view, as follows:
- the view tracks the currently active editor and selection
- a combo box is continously populated with the EOperations of the selected EObject's EClass
- a property sheet below the combo box is configured to let the user edit the required arguments (using an dynamically created EClass and EObject) 
- the user may press an invoke button, to execute the EOperation within a ChangeCommand
- the result (or the Exception) is shown in a popup
Comment 1 Hallvard Traetteberg CLA 2010-06-11 07:02:43 EDT
Created attachment 171705 [details]
The main view class, superclass is in separate attachment
Comment 2 Hallvard Traetteberg CLA 2010-06-11 07:03:33 EDT
Created attachment 171706 [details]
Superclass of main view class