[Esbox-commits] r1893 - in branches/work_Andre/org.maemo.esbox.launch.analysis: . src/org/maemo/esbox/internal/analysis/launch

fabricioepa at garage.maemo.org fabricioepa at garage.maemo.org
Fri Jul 24 17:58:40 EEST 2009


Author: fabricioepa
Date: 2009-07-24 17:58:39 +0300 (Fri, 24 Jul 2009)
New Revision: 1893

Added:
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchConfigurationTabGroup.java
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchShortcut.java
Modified:
   branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml
   branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java
Log:
Python Support

Modified: branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml	2009-07-24 14:36:33 UTC (rev 1892)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/plugin.xml	2009-07-24 14:58:39 UTC (rev 1893)
@@ -223,6 +223,15 @@
             name="Local Valgrind Profiler (Python)"
             public="true">
       </launchConfigurationType>
+      
+       <launchConfigurationType
+            delegate="org.maemo.mica.python.launch.analysis.ltrace.PythonLtraceLocalLaunchDelegate"
+            id="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType"
+            modes="profile"
+            name="Local Ltrace Profiler (Python)"
+            public="true">
+      </launchConfigurationType>
+      
 	</extension>
    <extension
          point="org.eclipse.debug.ui.launchConfigurationTypeImages">
@@ -236,6 +245,12 @@
             icon="icons/full/obj16/valgrind_local.gif"
             id="esboxPythonValgrindLaunchTypeImage">
       </launchConfigurationTypeImage>
+      
+     <launchConfigurationTypeImage
+            configTypeID="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType"
+            icon="icons/full/obj16/valgrind_local.gif"
+            id="esboxPythonLtraceLaunchTypeImage">
+      </launchConfigurationTypeImage>
 	</extension>
     <extension
          point="org.eclipse.debug.ui.launchConfigurationTabGroups">
@@ -249,6 +264,12 @@
             id="org.maemo.esbox.analysis.launch.python.ValgrindLocalLaunchTabGroup"
             type="org.maemo.esbox.analysis.launch.python.ValgrindLocalLaunchType">
       </launchConfigurationTabGroup>
+      
+     <launchConfigurationTabGroup
+            class="org.maemo.esbox.internal.analysis.launch.ESboxPythonLtraceLocalLaunchConfigurationTabGroup"
+            id="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchTabGroup"
+            type="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType">
+      </launchConfigurationTabGroup>
 	</extension>
    <extension
          point="org.eclipse.debug.ui.launchShortcuts">
@@ -340,6 +361,50 @@
          <configurationType
                id="org.maemo.esbox.analysis.launch.python.OProfileRemoteLaunchType">
          </configurationType>
+         
+         
+          <shortcut
+              class="org.maemo.esbox.internal.analysis.launch.ESboxPythonLtraceLocalLaunchShortcut"
+              icon="icons/full/obj16/valgrind_local.gif"
+              id="org.maemo.esbox.analysis.launch.python.LocalLtraceShortcut"
+              label="Local Ltrace Profiler (Python)"
+              modes="profile">
+        	<contextualLaunch>
+            	<enablement>
+               		<with
+                     	variable="selection">
+                  	<count
+                        value="1">
+                  	</count>
+                  	<iterate>
+                  		<and>
+	                     <test
+		                     	 forcePluginActivation="true"
+                              	 property="org.maemo.mica.common.hasNature"
+ 			                     value="org.maemo.esbox.python.project.pythonNature"/>
+		                    <test
+	                              forcePluginActivation="true"
+	                              property="org.maemo.mica.maemosdk.isEmulatorTarget"/>
+	                       <test
+	                          	forcePluginActivation="true"
+	                          	property="org.maemo.mica.python.isPythonLaunchable"/>
+
+	                     </and>
+                  	</iterate>
+               		</with>
+            	</enablement>
+            	<contextLabel
+                  label="Local Ltrace Python Profiler"
+                  mode="profile">
+            	</contextLabel>
+        	</contextualLaunch>
+ 			<!-- this maps the shortcut back to the launch configuration type,
+	         allowing the Run/Debug Settings UI in the Resource properties view 
+	         to show associated launch configs -->
+	         <configurationType
+	               id="org.maemo.esbox.analysis.launch.python.LtraceLocalLaunchType">
+	         </configurationType>        	
+        </shortcut>
     	        	
         </shortcut>
 	</extension>	   

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchConfigurationTabGroup.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchConfigurationTabGroup.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchConfigurationTabGroup.java	2009-07-24 14:58:39 UTC (rev 1893)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * 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:
+ *     Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceLocalLaunchConfigurationTabGroup;
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceLocalLaunchShortcut;
+
+/**
+ * @author  Fabrício S Epaminondas (UFCG)
+ *
+ */
+public class ESboxPythonLtraceLocalLaunchConfigurationTabGroup extends
+		AbstractPythonLtraceLocalLaunchConfigurationTabGroup {
+
+	/* (non-Javadoc)
+	 * @see org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceLocalLaunchConfigurationTabGroup#getLaunchShortcut()
+	 */
+	@Override
+	protected AbstractPythonLtraceLocalLaunchShortcut getLaunchShortcut() {
+		return new ESboxPythonLtraceLocalLaunchShortcut();
+	}
+}

Added: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchShortcut.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchShortcut.java	                        (rev 0)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/ESboxPythonLtraceLocalLaunchShortcut.java	2009-07-24 14:58:39 UTC (rev 1893)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Nokia Corporation
+ * 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:
+ *    Fabrício S Epaminondas (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.analysis.launch;
+
+import org.eclipse.debug.ui.ILaunchShortcut;
+import org.maemo.mica.python.launch.analysis.ltrace.AbstractPythonLtraceLocalLaunchShortcut;
+
+/**
+ * @author Fabrício S Epaminondas (UFCG)
+ *
+ */
+public class ESboxPythonLtraceLocalLaunchShortcut extends
+		AbstractPythonLtraceLocalLaunchShortcut implements ILaunchShortcut {
+
+	/* (non-Javadoc)
+	 * @see org.maemo.mica.common.launch.IMicaLaunchShortcut#getLaunchConfigurationType()
+	 */
+	public String getLaunchConfigurationType() {
+		return IESboxAnalysisLaunchConstants.PYTHON_LTRACE_LOCAL_LAUNCH_TYPE;
+	}
+
+}

Modified: branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java
===================================================================
--- branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java	2009-07-24 14:36:33 UTC (rev 1892)
+++ branches/work_Andre/org.maemo.esbox.launch.analysis/src/org/maemo/esbox/internal/analysis/launch/IESboxAnalysisLaunchConstants.java	2009-07-24 14:58:39 UTC (rev 1893)
@@ -24,5 +24,5 @@
 	
 	String PYTHON_OPROFILE_REMOTE_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.OProfileRemoteLaunchType";
 	String PYTHON_VALGRIND_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.ValgrindLocalLaunchType";
-
+	String PYTHON_LTRACE_LOCAL_LAUNCH_TYPE = Activator.PLUGIN_ID + ".python.LtraceLocalLaunchType";
 }



More information about the Esbox-commits mailing list