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

Bug 142823

Summary: Remove import and export from Correlations pop-up
Product: z_Archived Reporter: Malcom Zung <zung>
Component: TPTPAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: apnan, hgr, jacalcat, jkubasta, labadie
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
The context menu of a correlation item
none
Patch file
none
Proposal patch for bug 142823
none
Updated proposed patch for bug142823
none
Updated path none

Description Malcom Zung CLA 2006-05-19 14:35:27 EDT
This is a usability defect from Humberto Gutierrez-Rivas (IBM Usability team).

1. In the Log Navigator, right click "Correlations"

Notice that there are "Import" and "Export" menu items.  Since it is not possible to import or export correlations, these menu items should not appear in the pop-up
Comment 1 amehrega CLA 2006-10-19 14:20:28 EDT
Setting to P1 since it can be fixed in the first week of i3.
Comment 2 amehrega CLA 2006-10-26 16:59:53 EDT
The general import/export menu items were replaced with "Import Log File", "Import Symptom Database", and "Export Symptom Database" actions in 4.3.  See the snapshot attached.  I'm going to mark this defect as invalid.

Please feel free to re-open if you think there were usability issues that were not addressed.
Comment 3 amehrega CLA 2006-10-26 17:00:27 EDT
Created attachment 52794 [details]
The context menu of a correlation item
Comment 4 Humberto Gutierrez-Rivas CLA 2006-10-26 23:25:42 EDT
Please reopen this defect, as the current implementation done in the context menu associated with correlation still presented options that are not valid for the object selected.  

This implementation does not meet Eclipse UI guidelines nor general Windows application guidelines.  This one of the items in the usability criteria for RCP .

Context Menus
A context menu should be used for context sensitive interaction with the objects in an editor.  If an object is selected in an editor, and the context menu is opened, the context menu should only contain commands which are appropriate for the selection.  Commands which affect the presentation of the view should not appear in the context menu.

In a text editor, you may assume that there is only one type of selection: text.  In this case, the contents of the context menu will remain consistent for any selection in the editor.

Context Menus
A context menu should be used for context sensitive interaction with the objects in an editor.  If an object is selected in an editor, and the context menu is opened, the context menu should only contain commands which are appropriate for the selection.  Commands which affect the presentation of the view should not appear in the context menu.

In a text editor, you may assume that there is only one type of selection: text.  In this case, the contents of the context menu will remain consistent for any selection in the editor.

From Eclipse Guidelines 2.1: http://www.eclipse.org/articles/Article-UI-Guidelines/Contents.html

"Context Menus
A context menu should be used for context sensitive interaction with the objects in an editor.  If an object is selected in an editor, and the context menu is opened, the context menu should only contain commands which are appropriate for the selection.  Commands which affect the presentation of the view should not appear in the context menu.

In a text editor, you may assume that there is only one type of selection: text.  In this case, the contents of the context menu will remain consistent for any selection in the editor."

Guideline 6.11

    Fill the context menu with selection oriented commands.
Comment 5 amehrega CLA 2006-10-27 10:39:59 EDT
Reopening this defect based on Humberto's comments.  This is not a stop ship defect for 4.3 and will be addressed in the 4.4 time-frame.
Comment 6 Humberto Gutierrez-Rivas CLA 2006-10-27 12:37:27 EDT
Added Jeff Calcaterra as interested party in the CC list. 
Comment 7 Eugene Chan CLA 2007-01-31 23:51:40 EST
Target to future. Cannot be contained in 4.4 due to limitation of resource.
Comment 8 Eric Labadie CLA 2007-08-09 16:30:11 EDT
This is required from AC perspective.  Via extension point.
Comment 9 Alex Nan CLA 2007-10-30 19:41:57 EDT
Targetting 4.5 i2.
Comment 10 Alex Nan CLA 2007-11-05 18:20:28 EST
Changing target to 4.5 i4.
Comment 11 Alex Nan CLA 2008-02-13 12:15:51 EST
Reassigning to Gotoh-san.
Comment 12 Alex Nan CLA 2008-02-13 12:18:02 EST
Assigning to i6.
Comment 13 Yasuhisa Gotoh CLA 2008-03-10 06:13:56 EDT
Created attachment 92019 [details]
Patch file

Alex, here is the patch. Please review.
Comment 14 Alex Nan CLA 2008-03-10 18:49:33 EDT
Gotoh-san I have reviewed the patch but I personally would rather place the logic of showing or hiding into the actions themselves instead of the log navigator action contributor.
Comment 15 Alex Nan CLA 2008-03-10 18:51:52 EDT
Created attachment 92100 [details]
Proposal patch for bug 142823

Attaching proposal for bug 142823.
Comment 16 Alex Nan CLA 2008-03-10 18:52:38 EDT
Gotoh-san please review and check in, the code is in the monitoring project this time.
Thanks.
Comment 17 Alex Nan CLA 2008-03-10 18:54:47 EDT
Created attachment 92101 [details]
Updated proposed patch for bug142823

Sorry, I missed to remove a redundant method in my previous patch.
Comment 18 Yasuhisa Gotoh CLA 2008-03-10 22:43:08 EDT
Created attachment 92112 [details]
Updated path

I have also added the logic for hiding the Import Log File menu.
Comment 19 Yasuhisa Gotoh CLA 2008-03-10 22:46:53 EDT
Fix checked in.
Comment 20 Paul Slauenwhite CLA 2009-06-30 13:20:15 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.