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

Bug 199594

Summary: Agent Controller preferences are scattered over Profiling and Logging preferences section
Product: z_Archived Reporter: Valentina Popescu <popescu>
Component: TPTPAssignee: Ritwik Lodhiya <ritwikl>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: ewchan, igor.alelekov, jkubasta, samwai
Version: unspecifiedKeywords: plan
Target Milestone: ---Flags: ewchan: review-
Hardware: PC   
OS: Windows XP   
Whiteboard: closed460
Attachments:
Description Flags
Proposed Patch
none
Patch #2
none
Patch #2.5
none
Patch 2.5.2 none

Description Valentina Popescu CLA 2007-08-10 11:47:54 EDT
In the Preferences tree, there is a section dedicated to the Agent Controller as well as one for the Profiling and Logging tool. Some of the options related to the Agent Controller are located under the Profiling and Logging section. For clarity and to improve usability, those sections should be moved under the Agent Controller section.
These are the sections I am referring to :

1. Hosts item under Profiling and Logging section
This page summarizes the list of hosts a user will have to choose from when trying to connect to the AC ( it is currently only used for the attach launch configuration and External Java Application profile configurations ).
Suggestion : 
- move this page from the Profiling and Logging section under the Agent Controller section
- add more description to the page; it is not clear what is the usage of the hosts list. A sample description : List of hosts frequently used during a  profiling session. This list will be used to populate the Hosts tab in the Profile launch configurations wizard, when trying to attach to a remote host.


2. 'Agent Controller local port' option under the Profiling and Logging preference
page
Suggestion : Move this option under the Agent Controller ( empty now ) page. While here, add some meaningful information about this option on the help page ( how and when is used ); there was a comment on the the newsgroup about the lack of description for this option.
Comment 1 jkubasta CLA 2008-02-12 15:14:00 EST
Ritwik, please have a go at resolving this defect
Comment 2 Eugene Chan CLA 2008-03-03 11:58:43 EST
I agree with Valentina that the "Host" tab should be moved under the "Agent Controller" section. However, the "Agent Controller local port" currently under "Profiling and Logging" section should be removed instead of moved under "Agent Controller". The port value of localhost in the "Host" tab should be consumed instead in replace of the "Agent Controller local port" value.
Comment 3 Ritwik Lodhiya CLA 2008-03-03 13:16:47 EST
Created attachment 91403 [details]
Proposed Patch

The Hosts tab is now moved under the Agent Controller Section and the "Agent Controller local port: ---- " option is removed from the Profiling and Logging Page (now it can only be modified from the Hosts Tab).
Comment 4 Eugene Chan CLA 2008-03-03 13:57:38 EST
Ritwik,

preference value of CommonUIConstants.LOCALHOST_PORT is used in the following place and you have removed its setting in org.eclipse.hyades.trace.ui.internal.preferences.TraceBasePreferencePage, please make sure you migrate the value retrieval code with the new value in Host tab. 

AgentAvailibilityTester.java - org.eclipse.tptp.platform.jvmti.client/src/org/eclipse/tptp/platform/jvmti/client/internal/launcher
AgentHandler.java - org.eclipse.tptp.platform.agentcontroller/src-native-new/test/CompatibilityTest/DumpAgentHandler/src/SampleAgentHandler
AttachConfigurationDetail.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/util
AttachDelegate.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/launcher
CommonUITracePlugin.java - org.eclipse.tptp.platform.common.ui.trace/src/org/eclipse/tptp/platform/common/ui/trace/internal
ICommonConstants.java - org.eclipse.tptp.platform.common/src/org/eclipse/tptp/platform/common/internal (2 matches)
LauncherUtility.java - org.eclipse.hyades.trace.ui/src/org/eclipse/tptp/trace/ui/internal/launcher/core
PIDelegateHelper.java - org.eclipse.hyades.trace.ui/src/org/eclipse/tptp/trace/ui/internal/launcher/deleg/application
ProfileHostTab.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/launcher
ProfileJavaApplicationDelegate.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/launcher
ProfileOnServerAdapter.java - org.eclipse.tptp.platform.profile.server.core/src/org/eclipse/tptp/platform/profile/server/core/internal
TIAttachLauncherDelegate.java - org.eclipse.tptp.platform.jvmti.client/src/org/eclipse/tptp/platform/jvmti/client/internal/launcher
TraceBasePreferencePage.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/preferences
TraceProfileUI.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui/internal/core
UIPlugin.java - org.eclipse.hyades.trace.ui/src/org/eclipse/hyades/trace/ui
Comment 5 Eugene Chan CLA 2008-03-03 14:33:55 EST
reviewed, -1 , please see my comment #4.
Comment 6 Ritwik Lodhiya CLA 2008-03-04 17:28:54 EST
Created attachment 91581 [details]
Patch #2

This patch moves the "Agent Controller local port:" section under Agent Controller page.  

References to the LOCALHOST key have been updated. =)
Comment 7 Eugene Chan CLA 2008-03-10 17:51:04 EDT
Ritwik,

In /org.eclipse.tptp.platform.common.ui.trace/plugin.xml

	<!-- The host preference page -->
	<extension point="org.eclipse.ui.preferencePages">
		<page
			name="%P_NODEP"
            category="org.eclipse.hyades.security.internal.preference.ACPreferencePage"
            class="org.eclipse.hyades.trace.ui.internal.preferences.HostPreferencePage"
            id="org.eclipse.hyades.trace.ui.internal.preferences.HostPreferencePage">
		</page>     
	</extension>

category="org.eclipse.hyades.security.internal.preference.ACPreferencePage" is declared in /org.eclipse.hyades.ui/plugin.xml which is not in the dependencies list of org.eclipse.tptp.platform.common.ui.trace. The declaration of category should be moved to common.ui.trace instead.
Comment 8 Ritwik Lodhiya CLA 2008-03-11 11:49:45 EDT
Created attachment 92181 [details]
Patch #2.5

I have moved the ACPreferencePage down into the common.ui.trace and updatedall its references. The LOCALHOST_PORT default initialization is now in CommonUIPlugin. 

Please rereview to see if this one is better :)
Comment 9 Ritwik Lodhiya CLA 2008-03-11 12:42:27 EDT
Created attachment 92194 [details]
Patch 2.5.2

Please diregard the previous patch. The previous patch doesnot update all the references to the LOCALHOST_PORT. This one does everything as the above patches and updates the refereces and copyrights.
Comment 10 Eugene Chan CLA 2008-03-11 14:47:54 EDT
(In reply to comment #9)
> Created an attachment (id=92194) [details]
> Patch 2.5.2
> 
> Please diregard the previous patch. The previous patch doesnot update all the
> references to the LOCALHOST_PORT. This one does everything as the above patches
> and updates the refereces and copyrights. 
> 

Patch reviewed and submitted to HEAD.

Nice Job Ritwik!
Comment 11 jkubasta CLA 2008-03-12 10:24:33 EDT
Resolving as fixed
Comment 12 Paul Slauenwhite CLA 2009-06-30 13:50:51 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.
Comment 13 Paul Slauenwhite CLA 2009-06-30 14:19:12 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.