sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.ipc/src/com/nokia/carbide/cpp/pi/ipc/IpcPlugin.java
changeset 12 ae255c9aa552
parent 5 844b047e260d
--- a/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.ipc/src/com/nokia/carbide/cpp/pi/ipc/IpcPlugin.java	Wed Jun 23 14:49:59 2010 +0300
+++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.ipc/src/com/nokia/carbide/cpp/pi/ipc/IpcPlugin.java	Wed Jun 23 15:05:09 2010 +0300
@@ -56,7 +56,7 @@
 	// The shared instance
 	private static IpcPlugin plugin;
 	
-	private static final Map<Integer, PecCommonGuiManager> guiManagerMap = new HashMap<Integer, PecCommonGuiManager>();
+	private static final Map<Integer, PecCommonGuiManager> GUI_MANAGER_MAP = new HashMap<Integer, PecCommonGuiManager>();
 
 	/**
 	 * The constructor
@@ -122,7 +122,7 @@
 		
 		//create the GUI class which manages the graphs
 		int uid = NpiInstanceRepository.getInstance().activeUid();
-		guiManagerMap.put(uid, new PecCommonGuiManager(uid, parsedTrace, IpcPlugin.GRAPH_COUNT, Messages.IpcPlugin_0));
+		GUI_MANAGER_MAP.put(uid, new PecCommonGuiManager(uid, parsedTrace, IpcPlugin.GRAPH_COUNT, Messages.IpcPlugin_0));
 	}
 
 	/* (non-Javadoc)
@@ -245,7 +245,7 @@
 	 */
 	public IGenericTraceGraph getTraceGraph(int graphIndex) {
 		int uid = NpiInstanceRepository.getInstance().activeUid();
-		PecCommonGuiManager guiManager = guiManagerMap.get(uid);
+		PecCommonGuiManager guiManager = GUI_MANAGER_MAP.get(uid);
 		
 		if (guiManager != null){
 			return guiManager.getTraceGraph(graphIndex, HELP_CONTEXT_ID_MAIN_PAGE);			
@@ -294,7 +294,7 @@
 		
 		// Do any cleanup work here when the editor closes
 		int uid = NpiInstanceRepository.getInstance().activeUid();
-		guiManagerMap.remove(uid);
+		GUI_MANAGER_MAP.remove(uid);
 	}
 
 	/* (non-Javadoc)
@@ -315,6 +315,20 @@
 		}
 		return null;
 	}
-
+	
+	/*
+	 * (non-Javadoc)
+	 * @see com.nokia.carbide.cpp.internal.pi.plugin.model.ITrace#isMandatory()
+	 */
+	public boolean isMandatory() {
+		return false;
+	}
 
+	/*
+	 * (non-Javadoc)
+	 * @see com.nokia.carbide.cpp.internal.pi.plugin.model.ITrace#getTraceDescription()
+	 */
+	public String getTraceDescription() {
+		return getTraceTitle();
+	}
 }