[Title] Modify perspectives and views.
authoryser.lee <yser.lee@samsung.com>
Tue, 8 Nov 2011 21:08:42 +0000 (06:08 +0900)
committeryser.lee <yser.lee@samsung.com>
Tue, 8 Nov 2011 21:08:42 +0000 (06:08 +0900)
[Type] Feature
[Module]
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

21 files changed:
com.samsung.dynamicanalyzer.workbench/plugin.properties
com.samsung.dynamicanalyzer.workbench/plugin.xml
com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/ApplicationWorkbenchAdvisor.java
com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/BottleNeckPerspective.java [new file with mode: 0644]
com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/CoolbarArea.java
com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/MemoryPerspective.java [new file with mode: 0644]
com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/ResourceLifecyclePerspective.java [moved from com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/RealtimePerspective.java with 71% similarity]
com.samsung.dynamicanalyzer/build.properties
com.samsung.dynamicanalyzer/plugin.properties
com.samsung.dynamicanalyzer/plugin.xml
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenBottleNeckPerspectiveHandler.java [new file with mode: 0644]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenMemoryPerspectiveHandler.java [moved from com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenRealtimePerspectiveHandler.java with 79% similarity]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenMemoryTabHandler.java [deleted file]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenResourceLifecyclePerspectiveHandler.java [moved from com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenBottleNeckTabHandler.java with 50% similarity]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenResourceLifecycleTabHandler.java [deleted file]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckAnalysisView.java [new file with mode: 0644]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckLogView.java [new file with mode: 0644]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryAnalysisView.java [new file with mode: 0644]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryLogView.java [new file with mode: 0644]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/ResourceLifecycleAnalysisView.java [moved from com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/AnalysisView.java with 86% similarity]
com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/ResourceLifecycleLogView.java [moved from com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/LogView.java with 74% similarity]

index 0916bf3..d223e0f 100644 (file)
@@ -7,6 +7,8 @@ providerName=Samsung Electronics
 DynamicAnalyzer=Dynamic Analyzer\r
 \r
 #Perspective name\r
-Realtime=Realtime\r
+ResourceLifecycle=Resource Lifecycle\r
+Memory=Memory\r
+BottleNeck=BottleNeck\r
 Battery=Battery\r
 Ntime=N-time\r
index 99db8dc..579e312 100644 (file)
    <extension\r
          point="org.eclipse.ui.perspectives">\r
       <perspective\r
-            name="%Realtime"\r
-            class="com.samsung.dynamicanalyzer.workbench.RealtimePerspective"\r
-            id="com.samsung.dynamicanalyzer.realtimePerspective">\r
+            name="%ResourceLifecycle"\r
+            class="com.samsung.dynamicanalyzer.workbench.ResourceLifecyclePerspective"\r
+            id="com.samsung.dynamicanalyzer.resourceLifecyclePerspective">\r
+      </perspective>\r
+      <perspective\r
+            class="com.samsung.dynamicanalyzer.workbench.MemoryPerspective"\r
+            id="com.samsung.dynamicanalyzer.memoryPerspective"\r
+            name="%Memory">\r
+      </perspective>\r
+      <perspective\r
+            class="com.samsung.dynamicanalyzer.workbench.BottleNeckPerspective"\r
+            id="com.samsung.dynamicanalyzer.bottleNeckPerspective"\r
+            name="%BottleNeck">\r
       </perspective>\r
       <perspective\r
             class="com.samsung.dynamicanalyzer.workbench.BatteryPerspective"\r
index 44612dd..7fb3375 100644 (file)
@@ -14,7 +14,7 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
 
        @Override
        public String getInitialWindowPerspectiveId() {
-               return RealtimePerspective.ID;
+               return ResourceLifecyclePerspective.ID;
        }
 
 }
diff --git a/com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/BottleNeckPerspective.java b/com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/BottleNeckPerspective.java
new file mode 100644 (file)
index 0000000..2e3fcee
--- /dev/null
@@ -0,0 +1,15 @@
+package com.samsung.dynamicanalyzer.workbench;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class BottleNeckPerspective implements IPerspectiveFactory {
+
+       public static final String ID = "com.samsung.dynamicanalyzer.bottleNeckPerspective"; //$NON-NLS-1$
+
+       @Override
+       public void createInitialLayout(IPageLayout layout) {
+               layout.setEditorAreaVisible(false);
+       }
+
+}
index 7c22557..a01056a 100644 (file)
@@ -26,11 +26,10 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
 import com.samsung.dynamicanalyzer.AnalyzerConstants;
 import com.samsung.dynamicanalyzer.SDBManager;
 import com.samsung.dynamicanalyzer.handlers.OpenBatteryPerspectiveHandler;
-import com.samsung.dynamicanalyzer.handlers.OpenBottleNeckTabHandler;
-import com.samsung.dynamicanalyzer.handlers.OpenMemoryTabHandler;
+import com.samsung.dynamicanalyzer.handlers.OpenBottleNeckPerspectiveHandler;
+import com.samsung.dynamicanalyzer.handlers.OpenMemoryPerspectiveHandler;
 import com.samsung.dynamicanalyzer.handlers.OpenNtimePerspectiveHandler;
-import com.samsung.dynamicanalyzer.handlers.OpenRealtimePerspectiveHandler;
-import com.samsung.dynamicanalyzer.handlers.OpenResourceLifecycleTabHandler;
+import com.samsung.dynamicanalyzer.handlers.OpenResourceLifecyclePerspectiveHandler;
 import com.samsung.dynamicanalyzer.handlers.OpenTraceHandler;
 import com.samsung.dynamicanalyzer.handlers.SaveTraceHandler;
 import com.samsung.dynamicanalyzer.handlers.StartStopTraceHandler;
@@ -290,7 +289,8 @@ public class CoolbarArea {
                                memoryLabel.setForeground(whiteColor);
                                bottleNeckLabel.setForeground(whiteColor);
 
-                               AnalyzerUtil.executeCommand(OpenResourceLifecycleTabHandler.ID);
+                               AnalyzerUtil
+                                               .executeCommand(OpenResourceLifecyclePerspectiveHandler.ID);
                        }
                });
 
@@ -304,7 +304,7 @@ public class CoolbarArea {
                                memoryLabel.setForeground(blueColor);
                                bottleNeckLabel.setForeground(whiteColor);
 
-                               AnalyzerUtil.executeCommand(OpenMemoryTabHandler.ID);
+                               AnalyzerUtil.executeCommand(OpenMemoryPerspectiveHandler.ID);
                        }
                });
 
@@ -318,7 +318,8 @@ public class CoolbarArea {
                                memoryLabel.setForeground(whiteColor);
                                bottleNeckLabel.setForeground(blueColor);
 
-                               AnalyzerUtil.executeCommand(OpenBottleNeckTabHandler.ID);
+                               AnalyzerUtil
+                                               .executeCommand(OpenBottleNeckPerspectiveHandler.ID);
                        }
                });
        }
@@ -334,11 +335,16 @@ public class CoolbarArea {
                                batteryLabel.setForeground(whiteColor);
                                ntimeLabel.setForeground(whiteColor);
 
+                               resourceLifecycleLabel.setForeground(blueColor);
+                               memoryLabel.setForeground(whiteColor);
+                               bottleNeckLabel.setForeground(whiteColor);
+
                                resourceLifecycleLabel.setVisible(true);
                                memoryLabel.setVisible(true);
                                bottleNeckLabel.setVisible(true);
 
-                               AnalyzerUtil.executeCommand(OpenRealtimePerspectiveHandler.ID);
+                               AnalyzerUtil
+                                               .executeCommand(OpenResourceLifecyclePerspectiveHandler.ID);
                        }
                });
 
diff --git a/com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/MemoryPerspective.java b/com.samsung.dynamicanalyzer.workbench/src/com/samsung/dynamicanalyzer/workbench/MemoryPerspective.java
new file mode 100644 (file)
index 0000000..0eea4d1
--- /dev/null
@@ -0,0 +1,15 @@
+package com.samsung.dynamicanalyzer.workbench;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class MemoryPerspective implements IPerspectiveFactory {
+
+       public static final String ID = "com.samsung.dynamicanalyzer.memoryPerspective"; //$NON-NLS-1$
+
+       @Override
+       public void createInitialLayout(IPageLayout layout) {
+               layout.setEditorAreaVisible(false);
+       }
+
+}
@@ -3,9 +3,9 @@ package com.samsung.dynamicanalyzer.workbench;
 import org.eclipse.ui.IPageLayout;
 import org.eclipse.ui.IPerspectiveFactory;
 
-public class RealtimePerspective implements IPerspectiveFactory {
+public class ResourceLifecyclePerspective implements IPerspectiveFactory {
 
-       public static final String ID = "com.samsung.dynamicanalyzer.realtimePerspective"; //$NON-NLS-1$
+       public static final String ID = "com.samsung.dynamicanalyzer.resourceLifecyclePerspective"; //$NON-NLS-1$
 
        @Override
        public void createInitialLayout(IPageLayout layout) {
index 25c3b69..55810ed 100644 (file)
@@ -4,7 +4,6 @@ bin.includes = plugin.xml,\
                META-INF/,\\r
                .,\\r
                plugin.properties,\\r
-               icons/,\\r
                lib/sqlitejdbc-v056.jar,\\r
                lib/jcommon-1.0.16.jar,\\r
                lib/jfreechart-1.0.13-experimental.jar,\\r
index ce97266..bb1712a 100644 (file)
@@ -14,7 +14,6 @@ StartStopTrace=Start Stop Trace
 #Command name, Command label, Toolbar tooltip\r
 SaveTrace=Save Trace\r
 OpenTrace=Open Trace\r
-Realtime=Realtime\r
 Battery=Battery\r
 Ntime=N-time\r
 Memory=Memory\r
index 5c11491..20633ac 100644 (file)
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openRealtimePerspective"
-            name="%Realtime">
-      </command>
-      <command
-            categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openBatteryPerspective"
-            name="%Battery">
+            id="com.samsung.dynamicanalyzer.commands.openResourceLifecyclePerspective"
+            name="%ResourceLifecycle">
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openNtimePerspective"
-            name="%Ntime">
+            id="com.samsung.dynamicanalyzer.commands.openMemoryPerspective"
+            name="%Memory">
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openMemoryTab"
-            name="%Memory">
+            id="com.samsung.dynamicanalyzer.commands.openBottleNeckPerspective"
+            name="%BottleNeck">
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openResourceLifecycleTab"
-            name="%ResourceLifecycle">
+            id="com.samsung.dynamicanalyzer.commands.openBatteryPerspective"
+            name="%Battery">
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
-            id="com.samsung.dynamicanalyzer.commands.openBottleNeckTab"
-            name="%BottleNeck">
+            id="com.samsung.dynamicanalyzer.commands.openNtimePerspective"
+            name="%Ntime">
       </command>
       <command
             categoryId="com.samsung.dynamicanalyzer.commands"
             commandId="com.samsung.dynamicanalyzer.commands.openTrace">
       </handler>
       <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenRealtimePerspectiveHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openRealtimePerspective">
+            class="com.samsung.dynamicanalyzer.handlers.OpenResourceLifecyclePerspectiveHandler"
+            commandId="com.samsung.dynamicanalyzer.commands.openResourceLifecyclePerspective">
       </handler>
       <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenBatteryPerspectiveHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openBatteryPerspective">
+            class="com.samsung.dynamicanalyzer.handlers.OpenMemoryPerspectiveHandler"
+            commandId="com.samsung.dynamicanalyzer.commands.openMemoryPerspective">
       </handler>
       <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenNtimePerspectiveHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openNtimePerspective">
+            class="com.samsung.dynamicanalyzer.handlers.OpenBottleNeckPerspectiveHandler"
+            commandId="com.samsung.dynamicanalyzer.commands.openBottleNeckPerspective">
       </handler>
       <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenMemoryTabHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openMemoryTab">
-      </handler>
-      <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenResourceLifecycleTabHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openResourceLifecycleTab">
+            class="com.samsung.dynamicanalyzer.handlers.OpenBatteryPerspectiveHandler"
+            commandId="com.samsung.dynamicanalyzer.commands.openBatteryPerspective">
       </handler>
       <handler
-            class="com.samsung.dynamicanalyzer.handlers.OpenBottleNeckTabHandler"
-            commandId="com.samsung.dynamicanalyzer.commands.openBottleNeckTab">
+            class="com.samsung.dynamicanalyzer.handlers.OpenNtimePerspectiveHandler"
+            commandId="com.samsung.dynamicanalyzer.commands.openNtimePerspective">
       </handler>
       <handler
             class="com.samsung.dynamicanalyzer.handlers.TestInputHandler"
    <extension
          point="org.eclipse.ui.perspectiveExtensions">
       <perspectiveExtension
-            targetID="com.samsung.dynamicanalyzer.realtimePerspective">
+            targetID="com.samsung.dynamicanalyzer.resourceLifecyclePerspective">
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                moveable="false"
                ratio=".4"
                relationship="top"
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SummaryView"
+               id="com.samsung.dynamicanalyzer.ui.views.summaryView"
                moveable="false"
                relationship="stack"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                minimized="false"
                moveable="false"
                ratio=".8"
                relationship="left"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.TimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.timelineView"
                minimized="false"
                moveable="false"
                ratio=".5"
                relationship="top"
-               relative="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               relative="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.AnalysisView"
+               id="com.samsung.dynamicanalyzer.ui.views.resourceLifecycleAnalysisView"
                minimized="false"
                moveable="false"
                relationship="bottom"
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.LogView"
+               id="com.samsung.dynamicanalyzer.ui.views.resourceLifecycleLogView"
                minimized="false"
                moveable="false"
                relationship="stack"
-               relative="com.samsung.dynamicanalyzer.ui.views.AnalysisView">
+               relative="com.samsung.dynamicanalyzer.ui.views.resourceLifecycleAnalysisView">
          </view>
+      </perspectiveExtension>
+      <perspectiveExtension
+            targetID="com.samsung.dynamicanalyzer.memoryPerspective">
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.CallGraphView"
+               id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               moveable="false"
+               ratio=".4"
+               relationship="top"
+               relative="org.eclipse.ui.editorss"
+               showTitle="true"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.summaryView"
+               moveable="false"
+               relationship="stack"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
+               minimized="false"
+               moveable="false"
+               ratio=".8"
+               relationship="left"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.timelineView"
+               minimized="false"
+               moveable="false"
+               ratio=".5"
+               relationship="top"
+               relative="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.memoryAnalysisView"
+               minimized="false"
+               moveable="false"
+               relationship="bottom"
+               relative="org.eclipse.ui.editorss">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.memoryLogView"
                minimized="false"
                moveable="false"
                relationship="stack"
-               relative="com.samsung.dynamicanalyzer.ui.views.AnalysisView"
-               visible="false">
+               relative="com.samsung.dynamicanalyzer.ui.views.memoryAnalysisView">
+         </view>
+      </perspectiveExtension>
+      <perspectiveExtension
+            targetID="com.samsung.dynamicanalyzer.bottleNeckPerspective">
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               moveable="false"
+               ratio=".4"
+               relationship="top"
+               relative="org.eclipse.ui.editorss"
+               showTitle="true"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.summaryView"
+               moveable="false"
+               relationship="stack"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
+               minimized="false"
+               moveable="false"
+               ratio=".8"
+               relationship="left"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.timelineView"
+               minimized="false"
+               moveable="false"
+               ratio=".5"
+               relationship="top"
+               relative="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
+               showTitle="false"
+               standalone="true">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.bottleNeckAnalysisView"
+               minimized="false"
+               moveable="false"
+               relationship="bottom"
+               relative="org.eclipse.ui.editorss">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.bottleNeckLogView"
+               minimized="false"
+               moveable="false"
+               relationship="stack"
+               relative="com.samsung.dynamicanalyzer.ui.views.bottleNeckAnalysisView">
+         </view>
+         <view
+               closeable="false"
+               id="com.samsung.dynamicanalyzer.ui.views.callGraphView"
+               minimized="false"
+               moveable="false"
+               relationship="stack"
+               relative="com.samsung.dynamicanalyzer.ui.views.bottleNeckAnalysisView">
          </view>
       </perspectiveExtension>
       <perspectiveExtension
             targetID="com.samsung.dynamicanalyzer.batteryPerspective">
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                moveable="false"
                ratio=".4"
                relationship="top"
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SummaryView"
+               id="com.samsung.dynamicanalyzer.ui.views.summaryView"
                moveable="false"
                relationship="stack"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                minimized="false"
                moveable="false"
                ratio=".8"
                relationship="left"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.TimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.timelineView"
                minimized="false"
                moveable="false"
                ratio=".5"
                relationship="top"
-               relative="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               relative="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.BatteryAnalysisView"
+               id="com.samsung.dynamicanalyzer.ui.views.batteryAnalysisView"
                minimized="false"
                moveable="false"
                relationship="bottom"
             targetID="com.samsung.dynamicanalyzer.ntimePerspective">
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                moveable="false"
                ratio=".4"
                relationship="top"
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.SummaryView"
+               id="com.samsung.dynamicanalyzer.ui.views.summaryView"
                moveable="false"
                relationship="stack"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                minimized="false"
                moveable="false"
                ratio=".8"
                relationship="left"
-               relative="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+               relative="com.samsung.dynamicanalyzer.ui.views.snapshotView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.TimelineView"
+               id="com.samsung.dynamicanalyzer.ui.views.timelineView"
                minimized="false"
                moveable="false"
                ratio=".5"
                relationship="top"
-               relative="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+               relative="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
                showTitle="false"
                standalone="true">
          </view>
          <view
                closeable="false"
-               id="com.samsung.dynamicanalyzer.ui.views.NtimeAnalysisView"
+               id="com.samsung.dynamicanalyzer.ui.views.ntimeAnalysisView"
                minimized="false"
                moveable="false"
                relationship="bottom"
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
-            id="com.samsung.dynamicanalyzer.ui.views.SnapshotView"
+            id="com.samsung.dynamicanalyzer.ui.views.snapshotView"
             name="%Snapshot"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.SummaryView"
-            id="com.samsung.dynamicanalyzer.ui.views.SummaryView"
+            id="com.samsung.dynamicanalyzer.ui.views.summaryView"
             name="%Summary"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
-            id="com.samsung.dynamicanalyzer.ui.views.AdditionalTimelineView"
+            id="com.samsung.dynamicanalyzer.ui.views.additionalTimelineView"
             name="%AdditionalTimeline"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.TimelineView"
-            id="com.samsung.dynamicanalyzer.ui.views.TimelineView"
+            id="com.samsung.dynamicanalyzer.ui.views.timelineView"
             name="%Timeline"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
-            class="com.samsung.dynamicanalyzer.ui.views.AnalysisView"
-            id="com.samsung.dynamicanalyzer.ui.views.AnalysisView"
+            class="com.samsung.dynamicanalyzer.ui.views.ResourceLifecycleAnalysisView"
+            id="com.samsung.dynamicanalyzer.ui.views.resourceLifecycleAnalysisView"
+            name="%Analysis"
+            restorable="true">
+      </view>
+      <view
+            category="com.samsung.dynamicanalyzer.ui.views"
+            class="com.samsung.dynamicanalyzer.ui.views.ResourceLifecycleLogView"
+            id="com.samsung.dynamicanalyzer.ui.views.resourceLifecycleLogView"
+            name="%Log"
+            restorable="true">
+      </view>
+      <view
+            category="com.samsung.dynamicanalyzer.ui.views"
+            class="com.samsung.dynamicanalyzer.ui.views.MemoryAnalysisView"
+            id="com.samsung.dynamicanalyzer.ui.views.memoryAnalysisView"
+            name="%Analysis"
+            restorable="true">
+      </view>
+      <view
+            category="com.samsung.dynamicanalyzer.ui.views"
+            class="com.samsung.dynamicanalyzer.ui.views.MemoryLogView"
+            id="com.samsung.dynamicanalyzer.ui.views.memoryLogView"
+            name="%Log"
+            restorable="true">
+      </view>
+      <view
+            category="com.samsung.dynamicanalyzer.ui.views"
+            class="com.samsung.dynamicanalyzer.ui.views.BottleNeckAnalysisView"
+            id="com.samsung.dynamicanalyzer.ui.views.bottleNeckAnalysisView"
             name="%Analysis"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
-            class="com.samsung.dynamicanalyzer.ui.views.LogView"
-            id="com.samsung.dynamicanalyzer.ui.views.LogView"
+            class="com.samsung.dynamicanalyzer.ui.views.BottleNeckLogView"
+            id="com.samsung.dynamicanalyzer.ui.views.bottleNeckLogView"
             name="%Log"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.CallGraphView"
-            id="com.samsung.dynamicanalyzer.ui.views.CallGraphView"
+            id="com.samsung.dynamicanalyzer.ui.views.callGraphView"
             name="%CallGraph"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.BatteryAnalysisView"
-            id="com.samsung.dynamicanalyzer.ui.views.BatteryAnalysisView"
+            id="com.samsung.dynamicanalyzer.ui.views.batteryAnalysisView"
             name="%BatteryAnalysis"
             restorable="true">
       </view>
       <view
             category="com.samsung.dynamicanalyzer.ui.views"
             class="com.samsung.dynamicanalyzer.ui.views.NtimeAnalysisView"
-            id="com.samsung.dynamicanalyzer.ui.views.NtimeAnalysisView"
+            id="com.samsung.dynamicanalyzer.ui.views.ntimeAnalysisView"
             name="%NtimeAnalysis"
             restorable="true">
       </view>
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenBottleNeckPerspectiveHandler.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenBottleNeckPerspectiveHandler.java
new file mode 100644 (file)
index 0000000..9d8c65b
--- /dev/null
@@ -0,0 +1,28 @@
+package com.samsung.dynamicanalyzer.handlers;\r
+\r
+import org.eclipse.core.commands.AbstractHandler;\r
+import org.eclipse.core.commands.ExecutionEvent;\r
+import org.eclipse.core.commands.ExecutionException;\r
+import org.eclipse.ui.IWorkbench;\r
+import org.eclipse.ui.PlatformUI;\r
+import org.eclipse.ui.WorkbenchException;\r
+\r
+public class OpenBottleNeckPerspectiveHandler extends AbstractHandler {\r
+\r
+       public static final String ID = "com.samsung.dynamicanalyzer.commands.openBottleNeckPerspective"; //$NON-NLS-1$\r
+       private static final String PERSPECTIVE_ID = "com.samsung.dynamicanalyzer.bottleNeckPerspective"; //$NON-NLS-1$\r
+       \r
+       @Override\r
+       public Object execute(ExecutionEvent event) throws ExecutionException {\r
+               IWorkbench workbench = PlatformUI.getWorkbench();\r
+               try {\r
+                       workbench.showPerspective(PERSPECTIVE_ID,\r
+                                       workbench.getActiveWorkbenchWindow());\r
+               } catch (WorkbenchException e) {\r
+                       e.printStackTrace();\r
+               }\r
+\r
+               return null;\r
+       }\r
+\r
+}\r
@@ -7,11 +7,11 @@ import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.PlatformUI;\r
 import org.eclipse.ui.WorkbenchException;\r
 \r
-public class OpenRealtimePerspectiveHandler extends AbstractHandler {\r
-\r
-       public static final String ID = "com.samsung.dynamicanalyzer.commands.openRealtimePerspective"; //$NON-NLS-1$\r
-       private static final String PERSPECTIVE_ID = "com.samsung.dynamicanalyzer.realtimePerspective"; //$NON-NLS-1$\r
+public class OpenMemoryPerspectiveHandler extends AbstractHandler {\r
 \r
+       public static final String ID = "com.samsung.dynamicanalyzer.commands.openMemoryPerspective"; //$NON-NLS-1$\r
+       private static final String PERSPECTIVE_ID = "com.samsung.dynamicanalyzer.memoryPerspective"; //$NON-NLS-1$\r
+       \r
        @Override\r
        public Object execute(ExecutionEvent event) throws ExecutionException {\r
                IWorkbench workbench = PlatformUI.getWorkbench();\r
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenMemoryTabHandler.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenMemoryTabHandler.java
deleted file mode 100644 (file)
index bc48e8a..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.samsung.dynamicanalyzer.handlers;\r
-\r
-import org.eclipse.core.commands.AbstractHandler;\r
-import org.eclipse.core.commands.ExecutionEvent;\r
-import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.ui.IWorkbenchPage;\r
-import org.eclipse.ui.PlatformUI;\r
-\r
-import com.samsung.dynamicanalyzer.ui.views.CallGraphView;\r
-\r
-public class OpenMemoryTabHandler extends AbstractHandler {\r
-\r
-       public static final String ID = "com.samsung.dynamicanalyzer.commands.openMemoryTab"; //$NON-NLS-1$\r
-\r
-       @Override\r
-       public Object execute(ExecutionEvent event) throws ExecutionException {\r
-               IWorkbenchPage page = PlatformUI.getWorkbench()\r
-                               .getActiveWorkbenchWindow().getActivePage();\r
-               CallGraphView view = (CallGraphView) page.findView(CallGraphView.ID);\r
-               page.hideView(view);\r
-\r
-               return null;\r
-       }\r
-\r
-}\r
@@ -4,26 +4,21 @@ import org.eclipse.core.commands.AbstractHandler;
 import org.eclipse.core.commands.ExecutionEvent;\r
 import org.eclipse.core.commands.ExecutionException;\r
 import org.eclipse.ui.IWorkbench;\r
-import org.eclipse.ui.IWorkbenchPage;\r
-import org.eclipse.ui.PartInitException;\r
 import org.eclipse.ui.PlatformUI;\r
+import org.eclipse.ui.WorkbenchException;\r
 \r
-import com.samsung.dynamicanalyzer.ui.views.AnalysisView;\r
-import com.samsung.dynamicanalyzer.ui.views.CallGraphView;\r
+public class OpenResourceLifecyclePerspectiveHandler extends AbstractHandler {\r
 \r
-public class OpenBottleNeckTabHandler extends AbstractHandler {\r
-\r
-       public static final String ID = "com.samsung.dynamicanalyzer.commands.openBottleNeckTab"; //$NON-NLS-1$\r
+       public static final String ID = "com.samsung.dynamicanalyzer.commands.openResourceLifecyclePerspective"; //$NON-NLS-1$\r
+       private static final String PERSPECTIVE_ID = "com.samsung.dynamicanalyzer.resourceLifecyclePerspective"; //$NON-NLS-1$\r
 \r
        @Override\r
        public Object execute(ExecutionEvent event) throws ExecutionException {\r
                IWorkbench workbench = PlatformUI.getWorkbench();\r
-               IWorkbenchPage page = workbench.getActiveWorkbenchWindow()\r
-                               .getActivePage();\r
                try {\r
-                       page.showView(CallGraphView.ID);\r
-                       page.showView(AnalysisView.ID);\r
-               } catch (PartInitException e) {\r
+                       workbench.showPerspective(PERSPECTIVE_ID,\r
+                                       workbench.getActiveWorkbenchWindow());\r
+               } catch (WorkbenchException e) {\r
                        e.printStackTrace();\r
                }\r
 \r
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenResourceLifecycleTabHandler.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/handlers/OpenResourceLifecycleTabHandler.java
deleted file mode 100644 (file)
index 2ace283..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.samsung.dynamicanalyzer.handlers;\r
-\r
-import org.eclipse.core.commands.AbstractHandler;\r
-import org.eclipse.core.commands.ExecutionEvent;\r
-import org.eclipse.core.commands.ExecutionException;\r
-import org.eclipse.ui.IWorkbenchPage;\r
-import org.eclipse.ui.PlatformUI;\r
-\r
-import com.samsung.dynamicanalyzer.ui.views.CallGraphView;\r
-\r
-public class OpenResourceLifecycleTabHandler extends AbstractHandler {\r
-\r
-       public static final String ID = "com.samsung.dynamicanalyzer.commands.openResourceLifecycleTab"; //$NON-NLS-1$\r
-\r
-       @Override\r
-       public Object execute(ExecutionEvent event) throws ExecutionException {\r
-               IWorkbenchPage page = PlatformUI.getWorkbench()\r
-                               .getActiveWorkbenchWindow().getActivePage();\r
-               CallGraphView view = (CallGraphView) page.findView(CallGraphView.ID);\r
-               page.hideView(view);\r
-\r
-               return null;\r
-       }\r
-\r
-}\r
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckAnalysisView.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckAnalysisView.java
new file mode 100644 (file)
index 0000000..c0b04d8
--- /dev/null
@@ -0,0 +1,19 @@
+package com.samsung.dynamicanalyzer.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class BottleNeckAnalysisView extends ViewPart {
+
+       public BottleNeckAnalysisView() {
+       }
+
+       @Override
+       public void createPartControl(Composite parent) {
+       }
+
+       @Override
+       public void setFocus() {
+       }
+
+}
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckLogView.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/BottleNeckLogView.java
new file mode 100644 (file)
index 0000000..0581c4b
--- /dev/null
@@ -0,0 +1,19 @@
+package com.samsung.dynamicanalyzer.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class BottleNeckLogView extends ViewPart {
+
+       public BottleNeckLogView() {
+       }
+
+       @Override
+       public void createPartControl(Composite parent) {
+       }
+
+       @Override
+       public void setFocus() {
+       }
+
+}
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryAnalysisView.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryAnalysisView.java
new file mode 100644 (file)
index 0000000..bb25a1e
--- /dev/null
@@ -0,0 +1,19 @@
+package com.samsung.dynamicanalyzer.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class MemoryAnalysisView extends ViewPart {
+
+       public MemoryAnalysisView() {
+       }
+
+       @Override
+       public void createPartControl(Composite parent) {
+       }
+
+       @Override
+       public void setFocus() {
+       }
+
+}
diff --git a/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryLogView.java b/com.samsung.dynamicanalyzer/src/com/samsung/dynamicanalyzer/ui/views/MemoryLogView.java
new file mode 100644 (file)
index 0000000..854d03e
--- /dev/null
@@ -0,0 +1,19 @@
+package com.samsung.dynamicanalyzer.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class MemoryLogView extends ViewPart {
+
+       public MemoryLogView() {
+       }
+
+       @Override
+       public void createPartControl(Composite parent) {
+       }
+
+       @Override
+       public void setFocus() {
+       }
+
+}
@@ -10,11 +10,9 @@ import org.eclipse.ui.part.ViewPart;
 import com.samsung.dynamicanalyzer.ui.views.lifecycle.APIListTableManager;\r
 import com.samsung.dynamicanalyzer.ui.views.lifecycle.ResourceServiceListChartManager;\r
 \r
-public class AnalysisView extends ViewPart {\r
+public class ResourceLifecycleAnalysisView extends ViewPart {\r
 \r
-       public static final String ID = "com.samsung.dynamicanalyzer.ui.views.AnalysisView"; //$NON-NLS-1$\r
-\r
-       public AnalysisView() {\r
+       public ResourceLifecycleAnalysisView() {\r
        }\r
 \r
        @Override\r
@@ -3,11 +3,11 @@ package com.samsung.dynamicanalyzer.ui.views;
 import org.eclipse.swt.widgets.Composite;\r
 import org.eclipse.ui.part.ViewPart;\r
 \r
-public class LogView extends ViewPart {\r
+public class ResourceLifecycleLogView extends ViewPart {\r
 \r
        public static final String ID = "com.samsung.dynamicanalyzer.ui.views.LogView"; //$NON-NLS-1$\r
 \r
-       public LogView() {\r
+       public ResourceLifecycleLogView() {\r
        }\r
 \r
        @Override\r