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

Bug 315370

Summary: [Move to EMF Facet][Facet Editor] Focus on properties view
Product: [Modeling] MoDisco Reporter: Nicolas Guyomar <nicolas.guyomar>
Component: InfrastructureAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 CC: gdupe, nicolas.bros
Version: 0.8.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Nicolas Guyomar CLA 2010-06-02 06:10:52 EDT
Hi,

When I create a FacetSet, I would found very handy that each time I create a new child (Right Click -> New Child -> Facet/Facet Att/Facet Ref etc ..) the focus is set to the properties view, ready to type the name of the child. 

It would be like creating a new file, you could start typing the name as soon as you create a facet.

Regards

Nicolas
Comment 1 Nicolas Bros CLA 2010-06-02 06:28:11 EDT
I would find it disturbing to focus a different view as a result of clicking "New Child" (no other Eclipse editor does this as far as I know).

Since when you create a child, it becomes focused in the editor, I think that if you could open/focus the properties view by pressing <Enter> for example, that would be just as convenient  (since you're going to use the keyboard to type the name anyway).

What do you think?
Comment 2 Nicolas Guyomar CLA 2010-06-02 08:00:57 EDT
You are right for the fact that no other Eclipse editor does that.

Concerning your proposed solution, how is the user going to be aware of the shortcut <Enter> ? What I was thinking was to stick to the usual behaviour of file creation to remove the extra step between creation and naming.

Maybe this is an EMF restriction (I had a look at the UML editor and it has the same behaviour as the MoDisco one), but is there a way the facet editor could be directly editable? This way we could name directly a child in it at his creation. 

If not, I'm not sure implementing the shortcut <Enter> is worth it. Because a user could hit <Enter> even when he does not want to edit the facet name, it could become annoying too.

Nicolas
Comment 3 Gregoire Dupe CLA 2010-11-18 08:30:56 EST
May have to be solved in EMF Facet => P4.