Bug 141820

Summary: Delete Action does not work properly for Ruler Guides.
Product: [Tools] GEF Reporter: CDE Administration <cdeadmin>
Component: GEF-Legacy GEF (MVC)Assignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P3 CC: camle, kitlo, nyssen, steveshaw
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
URL: 485
Whiteboard:

Description CDE Administration CLA 2006-05-15 13:34:53 EDT
The NOR tester executed the following steps for the GEF:

First, you need to create a simple project.
Go to File > New > Project.
Select General > Project.
Type in  a name (for example, Test).
Click Finish.

Right click on Test. Select New > Other.
Select Examples > Logic Diagram
Click Next
Select Four-bit Adder Model
Click Finish
If the rulers are not visible, go to the View menu and enable them (View> Rulers)
Right click anywhere on either of the rulers to bring up its context menu
Select  Create Guide
Highlight the guide you just created

Click on Edit on the toolbar
Select Delete
(You can also click on  and press Delete key)

When she highlight ed the guide and Selected Edit> Delete from the toolbar,  the Delete function was greyed out. The Delete key did work for her and also Delete in the menu is translated correctly.

This article was reassigned from Category:''TVT/Testing''.
Comment 1 CDE Administration CLA 2006-05-15 13:34:58 EDT
<cde:tctdetail>
Testcase: 24.001400
Project: WSW32
Component: CDE - GEF/GEF
Priority: 4
Subject: Edit - Delete Function not working
Article ID: 485
Originator: aparrish@us.ibm.com
</cde:tctdetail>
Comment 2 Alexander Nyßen CLA 2014-07-17 09:06:39 EDT
While using the keyboard, guides can actually be deleted (there is a key handler within ruler composite that takes care of this), using the delete action does indeed not work.

The reason seems to be that the delete action evaluates the current edit part selection, while only the main graphical viewer, not the ruler graphical viewers are indeed registered as selection providers.

A related effect can be observed when having selected a part in the main graphical viewer and using keyboard to navigate to the guide part (which indicates that it obtained focus). While the guide part indicates it now has focus, the selection is still bound to the main graphical viewer (and the delete action, which is enabled in this case, will delete the element in the main viewer instead).