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 218026 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 project name to configuration attributes
0001-Added-PerfDefaultLaunchConfig-class.patch (text/plain), 3.43 KB, created by
Camilo Bernal
on 2012-06-28 10:21:09 EDT
(
hide
)
Description:
Added project name to configuration attributes
Filename:
MIME Type:
Creator:
Camilo Bernal
Created:
2012-06-28 10:21:09 EDT
Size:
3.43 KB
patch
obsolete
>From 9f91eb4a896535e1ffee07f09bd966b9ec0cb7d5 Mon Sep 17 00:00:00 2001 >From: Camilo Bernal <cabernal@redhat.com> >Date: Thu, 28 Jun 2012 10:16:12 -0400 >Subject: [PATCH] Added PerfDefaultLaunchConfig class > >The PerfDefaultLaunchConfig class provides ILaunchConfiguration creation, >needed in the reporting of perf data files. >--- > .../perf/launch/PerfDefaultLaunchConfig.java | 66 ++++++++++++++++++++ > 1 files changed, 66 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..2037711 >--- /dev/null >+++ b/perf/org.eclipse.linuxtools.perf/src/org/eclipse/linuxtools/internal/perf/launch/PerfDefaultLaunchConfig.java >@@ -0,0 +1,66 @@ >+/******************************************************************************* >+ * 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.cdt.debug.core.ICDTLaunchConfigurationConstants; >+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) { >+ wc.setAttribute(IDebugUIConstants.ATTR_LAUNCH_IN_BACKGROUND, false); >+ wc.setAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_CONSOLE, true); >+ } >+ >+ protected void setProjectNameAttribute(ILaunchConfigurationWorkingCopy wc, >+ String projName) { >+ wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, >+ projName); >+ } >+ >+ /** >+ * 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)); >+ setDefaultProfileAttributes(wc); >+ setProjectNameAttribute(wc, projectName); >+ config = 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
Flags:
jjohnstn
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 371285
:
217768
|
217769
|
217770
|
217771
|
217772
|
217773
|
217774
|
217775
|
217776
|
217779
| 218026 |
218056