Bug 156261 - Can not select All items in the Model View
Summary: Can not select All items in the Model View
Status: RESOLVED FIXED
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 major
Target Milestone: 1.0.1   Edit
Assignee: Syed Atif CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-09-05 16:23 EDT by Michael Hanner CLA
Modified: 2010-07-19 21:54 EDT (History)
0 users

See Also:


Attachments
Patch for SelectAllAction (1.09 KB, patch)
2006-09-12 10:33 EDT, Syed Atif CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hanner CLA 2006-09-05 16:23:19 EDT
The operation is as follows:

1. Create a UML Project using "Blank Model".
2. Add "Geometric Shapes". 
   (e.g."Oval" and "Rectangle are added)
3. Select "Oval" and delete that shap using "Delete Key".
4. Undo the delete function using "Ctrl + Z".
5. Select All items using "Ctrl + A".
    But "Oval" is not selected.
Comment 1 Syed Atif CLA 2006-09-12 10:33:11 EDT
Created attachment 49938 [details]
Patch for SelectAllAction

AbstractActionHandler has three types of listeners that its subclasses can be...isSelectionListener, isOperationHistoryListener and isPropertyListener.

By default, SelectAllAction is a selection listener. Because certain undo/redo events outdate the operation set of SelectAllAction, we need to make it an operation history listener as well.

Another important use case scenario: 
1. select all elements on a diagram
2. Hit the delete key
3. Undo once.
4. Try to do select all again. You will not be able to.

Files affected:
org.eclipse.gmf.runtime.diagram.ui.actions.internal.SelectAllAction
Comment 2 Syed Atif CLA 2006-09-13 09:01:46 EDT
committed the patch
Comment 3 Eclipse Webmaster CLA 2010-07-19 21:54:44 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Common was the original product and component for this bug