Community
Participate
Working Groups
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
Created attachment 171705 [details] The main view class, superclass is in separate attachment
Created attachment 171706 [details] Superclass of main view class