Bug 141820 - Delete Action does not work properly for Ruler Guides.
Summary: Delete Action does not work properly for Ruler Guides.
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy GEF (MVC) (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux-GTK
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL: 485
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-15 13:34 EDT by CDE Administration CLA
Modified: 2014-07-17 09:09 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).