[Esbox-commits] r379 - in trunk/org.indt.esbox.ui: . icons src/org/indt/esbox/ui src/org/indt/esbox/ui/actions src/org/indt/esbox/ui/views

pauloromulo at garage.maemo.org pauloromulo at garage.maemo.org
Tue Jan 22 16:50:11 EET 2008


Author: pauloromulo
Date: 2008-01-22 16:50:00 +0200 (Tue, 22 Jan 2008)
New Revision: 379

Added:
   trunk/org.indt.esbox.ui/icons/valgrind.png
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunOProfileAction.java
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunValgrindAction.java
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/OProfileView.java
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java
Modified:
   trunk/org.indt.esbox.ui/plugin.xml
Log:
Valgrind and OProfile tools integration: pop-up menus and views added (GUI only)

Added: trunk/org.indt.esbox.ui/icons/valgrind.png
===================================================================
(Binary files differ)


Property changes on: trunk/org.indt.esbox.ui/icons/valgrind.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: trunk/org.indt.esbox.ui/plugin.xml
===================================================================
--- trunk/org.indt.esbox.ui/plugin.xml	2008-01-18 14:14:06 UTC (rev 378)
+++ trunk/org.indt.esbox.ui/plugin.xml	2008-01-22 14:50:00 UTC (rev 379)
@@ -402,5 +402,53 @@
           name="C++ Project">
     </projectType>
  </extension>
-	
+ 
+ <extension point="org.eclipse.ui.popupMenus">   
+	<objectContribution adaptable="true" 
+	                    id="org.indt.esbox.ui.popupMenu" 
+	                    objectClass="org.eclipse.core.resources.IProject"> 		
+   		<action	label="Run with Valgrind"
+   				class="org.indt.esbox.ui.actions.RunValgrindAction"
+        		enablesFor="+"
+        		id="org.indt.esbox.ui.runValgrindAction"        		
+        		menubarPath="additions">
+   		</action>  
+   		<filter	name="projectNature"
+        		value="org.indt.esbox.core.ESboxNature">
+   		</filter>
+	 </objectContribution>
+ </extension>
+ 
+<extension point="org.eclipse.ui.popupMenus">
+	<objectContribution adaptable="true"
+						id="org.indt.esbox.ui.popupMenu" 
+						objectClass="org.eclipse.core.resources.IProject">
+  		<action  label="Run with OProfile"
+				 class="org.indt.esbox.ui.actions.RunOProfileAction"
+				 enablesFor="+"	
+		   	 	 id="org.indt.esbox.ui.runOProfileAction"
+				 menubarPath="additions">	
+		</action>
+    	<filter name="projectNature"
+				value="org.indt.esbox.core.ESboxNature">
+		</filter>
+	</objectContribution>
+</extension>
+
+<extension point="org.eclipse.ui.views">
+      <category
+            id="org.indt.esbox.ui.view"
+            name="ESbox"/>
+        <view category="org.indt.esbox.ui.view"
+        	  id="org.indt.esbox.ui.views.valgrindView"
+              name="Valgrind"
+          	  class="org.indt.esbox.ui.views.ValgrindView"
+              icon="icons/valgrind.png"/>
+        <view category="org.indt.esbox.ui.view"
+        	  id="org.indt.esbox.ui.views.oProfileView"
+              name="OProfile"
+          	  class="org.indt.esbox.ui.views.OProfileView"
+          	  icon="icons/maemo.gif"/>
+</extension>
+
 </plugin>

Added: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunOProfileAction.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunOProfileAction.java	                        (rev 0)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunOProfileAction.java	2008-01-22 14:50:00 UTC (rev 379)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2007 INdT.
+ * 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:  
+ *    Paulo Romulo (paulo at embedded.ufcg.edu.br) (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.indt.esbox.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class RunOProfileAction extends ESboxAction {
+
+	@Override
+	public void run(IAction action) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Added: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunValgrindAction.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunValgrindAction.java	                        (rev 0)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunValgrindAction.java	2008-01-22 14:50:00 UTC (rev 379)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2007 INdT.
+ * 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:  
+ *    Paulo Romulo (paulo at embedded.ufcg.edu.br) (UFCG) - initial API and implementation
+ *******************************************************************************/
+
+package org.indt.esbox.ui.actions;
+
+import org.eclipse.jface.action.IAction;
+
+public class RunValgrindAction extends ESboxAction {
+
+	@Override
+	public void run(IAction action) {
+		// TODO Auto-generated method stub
+
+	}
+
+}

Added: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/OProfileView.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/OProfileView.java	                        (rev 0)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/OProfileView.java	2008-01-22 14:50:00 UTC (rev 379)
@@ -0,0 +1,20 @@
+package org.indt.esbox.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class OProfileView extends ViewPart {
+
+	@Override
+	public void createPartControl(Composite parent) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	@Override
+	public void setFocus() {
+		// TODO Auto-generated method stub
+		
+	}
+
+}

Added: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java	                        (rev 0)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java	2008-01-22 14:50:00 UTC (rev 379)
@@ -0,0 +1,20 @@
+package org.indt.esbox.ui.views;
+
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.part.ViewPart;
+
+public class ValgrindView extends ViewPart {
+
+	@Override
+	public void createPartControl(Composite parent) {
+		// TODO Auto-generated method stub
+		
+	}
+
+	@Override
+	public void setFocus() {
+		// TODO Auto-generated method stub
+		
+	}
+
+}



More information about the Esbox-commits mailing list