Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 217771 Details for
Bug 371285
Session comparison between runs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Added data file collection/clear actions
0001-Added-PerfDataClearAction.java-and-PerfDataCollectio.patch (text/plain), 4.70 KB, created by
Camilo Bernal
on 2012-06-22 18:35:09 EDT
(
hide
)
Description:
Added data file collection/clear actions
Filename:
MIME Type:
Creator:
Camilo Bernal
Created:
2012-06-22 18:35:09 EDT
Size:
4.70 KB
patch
obsolete
>From 536aef34d58abd5b38244626750430590bd48775 Mon Sep 17 00:00:00 2001 >From: Camilo Bernal <cabernal@redhat.com> >Date: Fri, 22 Jun 2012 17:12:33 -0400 >Subject: [PATCH 1/2] Added PerfDataClearAction.java and > PerfDataCollectionAction.java classes. > >PerfDataCollectionAction.java is used to create a menu action to show the >perf data collection view. > >PerfDataClearAction.java is used to contribute to the action bar to clear >the selections in the Perf data collection view. >--- > .../internal/perf/ui/PerfDataClearAction.java | 32 ++++++++++++++ > .../internal/perf/ui/PerfDataCollectionAction.java | 46 ++++++++++++++++++++ > 2 files changed, 78 insertions(+), 0 deletions(-) > create mode 100644 perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataClearAction.java > create mode 100644 perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataCollectionAction.java > >diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataClearAction.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataClearAction.java >new file mode 100644 >index 0000000..0f921f1 >--- /dev/null >+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataClearAction.java >@@ -0,0 +1,32 @@ >+/******************************************************************************* >+ * Copyright (c) 2012 Red Hat, Inc. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * Camilo Bernal <cabernal@redhat.com> - Initial Implementation. >+ *******************************************************************************/ >+package org.eclipse.linuxtools.internal.perf.ui; >+ >+import org.eclipse.jface.action.Action; >+import org.eclipse.ui.IWorkbench; >+import org.eclipse.ui.IWorkbenchPage; >+import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.PlatformUI; >+ >+public class PerfDataClearAction extends Action { >+ public PerfDataClearAction() { >+ super("Clear Selection"); >+ } >+ >+ public void run() { >+ IWorkbench wb = PlatformUI.getWorkbench(); >+ IWorkbenchWindow win = wb.getActiveWorkbenchWindow(); >+ IWorkbenchPage page = win.getActivePage(); >+ PerfDataCollectionView vp = (PerfDataCollectionView) page >+ .findView("org.eclipse.linuxtools.perf.ui.PerfSessionCompareView"); >+ vp.clearSelections(); >+ } >+} >diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataCollectionAction.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataCollectionAction.java >new file mode 100644 >index 0000000..c7486d8 >--- /dev/null >+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/ui/PerfDataCollectionAction.java >@@ -0,0 +1,46 @@ >+/******************************************************************************* >+ * Copyright (c) 2012 Red Hat, Inc. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * Camilo Bernal <cabernal@redhat.com> - Initial Implementation. >+ *******************************************************************************/ >+package org.eclipse.linuxtools.internal.perf.ui; >+ >+import org.eclipse.jface.action.Action; >+import org.eclipse.jface.dialogs.MessageDialog; >+import org.eclipse.swt.widgets.Display; >+import org.eclipse.ui.IWorkbench; >+import org.eclipse.ui.IWorkbenchPage; >+import org.eclipse.ui.IWorkbenchWindow; >+import org.eclipse.ui.PartInitException; >+import org.eclipse.ui.PlatformUI; >+ >+public class PerfDataCollectionAction extends Action { >+ public PerfDataCollectionAction() { >+ super("Compare Sessions"); >+ } >+ >+ @Override >+ public void run() { >+ MessageDialog >+ .openInformation(Display.getCurrent().getActiveShell(), >+ "Compare Selection", >+ "Please select the older and newer perf data files you wish to compare."); >+ IWorkbench workbench = PlatformUI.getWorkbench(); >+ IWorkbenchWindow workbenchWindow = workbench.getActiveWorkbenchWindow(); >+ try { >+ IWorkbenchPage wbp = workbenchWindow.getActivePage(); >+ wbp.showView("org.eclipse.linuxtools.perf.ui.PerfSessionCompareView"); >+ PerfDataCollectionView vp = (PerfDataCollectionView) wbp >+ .findView("org.eclipse.linuxtools.perf.ui.PerfSessionCompareView"); >+ >+ vp.clearSelections(); >+ } catch (PartInitException e) { >+ e.printStackTrace(); >+ } >+ } >+} >\ No newline at end of file >-- >1.7.7.6 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jjohnstn
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 371285
:
217768
|
217769
|
217770
| 217771 |
217772
|
217773
|
217774
|
217775
|
217776
|
217779
|
218026
|
218056