[Esbox-commits] r381 - in trunk/org.indt.esbox.ui/src/org/indt/esbox/ui: actions views
pauloromulo at garage.maemo.org
pauloromulo at garage.maemo.org
Tue Jan 22 22:29:59 EET 2008
Author: pauloromulo
Date: 2008-01-22 22:29:52 +0200 (Tue, 22 Jan 2008)
New Revision: 381
Modified:
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/OProfileView.java
trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java
Log:
headers added and view menu added (ValgrindView and OProfileView)
Modified: 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 2008-01-22 14:59:35 UTC (rev 380)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunOProfileAction.java 2008-01-22 20:29:52 UTC (rev 381)
@@ -15,7 +15,6 @@
public class RunOProfileAction extends ESboxAction {
- @Override
public void run(IAction action) {
// TODO Auto-generated method stub
Modified: 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 2008-01-22 14:59:35 UTC (rev 380)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/actions/RunValgrindAction.java 2008-01-22 20:29:52 UTC (rev 381)
@@ -15,7 +15,6 @@
public class RunValgrindAction extends ESboxAction {
- @Override
public void run(IAction action) {
// TODO Auto-generated method stub
Modified: 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 2008-01-22 14:59:35 UTC (rev 380)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/OProfileView.java 2008-01-22 20:29:52 UTC (rev 381)
@@ -1,20 +1,48 @@
+/*******************************************************************************
+ * 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.views;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IMenuManager;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
public class OProfileView extends ViewPart {
+ Action filterAction;
+
@Override
public void createPartControl(Composite parent) {
- // TODO Auto-generated method stub
+ createActions();
+ createMenu();
}
+ private void createActions() {
+ filterAction = new Action("Filter") {
+ public void run() {
+ //TODO
+ }
+ };
+ }
+
+ private void createMenu() {
+ IMenuManager mgr = getViewSite().getActionBars().getMenuManager();
+ mgr.add(filterAction);
+ }
+
@Override
public void setFocus() {
- // TODO Auto-generated method stub
-
+ //TODO
}
}
Modified: 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 2008-01-22 14:59:35 UTC (rev 380)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/views/ValgrindView.java 2008-01-22 20:29:52 UTC (rev 381)
@@ -1,20 +1,48 @@
+/*******************************************************************************
+ * 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.views;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IMenuManager;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
public class ValgrindView extends ViewPart {
+ Action filterAction;
+
@Override
public void createPartControl(Composite parent) {
- // TODO Auto-generated method stub
+ createActions();
+ createMenu();
}
+ private void createActions() {
+ filterAction = new Action("Filter") {
+ public void run() {
+ //TODO
+ }
+ };
+ }
+
+ private void createMenu() {
+ IMenuManager mgr = getViewSite().getActionBars().getMenuManager();
+ mgr.add(filterAction);
+ }
+
@Override
public void setFocus() {
- // TODO Auto-generated method stub
-
+ //TODO
}
}
More information about the Esbox-commits
mailing list