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 217769 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 PerfDefaultLaunchConfiguration class
0001-Added-PerfDefaultLaunchConfig.java-class.patch (text/plain), 3.17 KB, created by
Camilo Bernal
on 2012-06-22 18:33:51 EDT
(
hide
)
Description:
Added PerfDefaultLaunchConfiguration class
Filename:
MIME Type:
Creator:
Camilo Bernal
Created:
2012-06-22 18:33:51 EDT
Size:
3.17 KB
patch
obsolete
>From 52dda68d40ad34f89aa4a1fb221aba3e90def8ac Mon Sep 17 00:00:00 2001 >From: Camilo Bernal <cabernal@redhat.com> >Date: Fri, 22 Jun 2012 16:59:38 -0400 >Subject: [PATCH 1/2] Added PerfDefaultLaunchConfig.java class > >Added PerfDefaultLaunchConfig.java class, which is in charge of creating >an ILaunchConfiguration needed for reporting selected perf data files. >--- > .../perf/launch/PerfDefaultLaunchConfig.java | 57 ++++++++++++++++++++ > 1 files changed, 57 insertions(+), 0 deletions(-) > create mode 100644 perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfDefaultLaunchConfig.java > >diff --git a/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfDefaultLaunchConfig.java b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfDefaultLaunchConfig.java >new file mode 100644 >index 0000000..8e8a07d >--- /dev/null >+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfDefaultLaunchConfig.java >@@ -0,0 +1,57 @@ >+/******************************************************************************* >+ * 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.launch; >+ >+import org.eclipse.core.runtime.CoreException; >+import org.eclipse.debug.core.ILaunchConfiguration; >+import org.eclipse.debug.core.ILaunchConfigurationType; >+import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy; >+import org.eclipse.debug.ui.IDebugUIConstants; >+import org.eclipse.linuxtools.internal.perf.PerfPlugin; >+import org.eclipse.linuxtools.profiling.launch.ProfileLaunchShortcut; >+ >+public class PerfDefaultLaunchConfig extends ProfileLaunchShortcut { >+ >+ @Override >+ protected ILaunchConfigurationType getLaunchConfigType() { >+ return getLaunchManager().getLaunchConfigurationType( >+ PerfPlugin.LAUNCHCONF_ID); >+ } >+ >+ @Override >+ protected void setDefaultProfileAttributes( >+ ILaunchConfigurationWorkingCopy wc) throws CoreException { >+ wc.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, false); >+ wc.setAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_CONSOLE, true); >+ } >+ >+ /** >+ * Create an ILaunchConfiguration instance given the project's name. >+ * >+ * @param projectName >+ * @return ILaunchConfiguration based on String projectName >+ */ >+ public ILaunchConfiguration createDefaultConfiguration(String projectName) { >+ ILaunchConfiguration config = null; >+ try { >+ ILaunchConfigurationType configType = getLaunchConfigType(); >+ ILaunchConfigurationWorkingCopy wc = configType.newInstance( >+ null, >+ getLaunchManager().generateLaunchConfigurationName( >+ projectName)); >+ config = (ILaunchConfiguration) wc; >+ >+ } catch (CoreException e) { >+ e.printStackTrace(); >+ } >+ return config; >+ } >+} >\ 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
Actions:
View
|
Diff
Attachments on
bug 371285
:
217768
|
217769
|
217770
|
217771
|
217772
|
217773
|
217774
|
217775
|
217776
|
217779
|
218026
|
218056