Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316588

Summary: A view for invoking EOperation on the EObject selection
Product: [Modeling] EMF Reporter: Hallvard Traetteberg <hal>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: michlz
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 364799    
Attachments:
Description Flags
The main view class, superclass is in separate attachment
none
Superclass of main view class none

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