[Esbox-commits] r2330 - in branches/work_mmad: org.maemo.esbox.maemosdk.ui org.maemo.esbox.maemosdk.ui/META-INF org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards org.maemo.esbox.scratchbox.ui org.maemo.esbox.scratchbox.ui/META-INF org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian

ilpyykko at garage.maemo.org ilpyykko at garage.maemo.org
Wed Oct 21 14:19:22 EEST 2009


Author: ilpyykko
Date: 2009-10-21 14:19:21 +0300 (Wed, 21 Oct 2009)
New Revision: 2330

Added:
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/AbstractESboxDebianPackageAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildCppAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildPythonAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageDeployAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageShowContentAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructureCppAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructurePythonAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageUninstallAction.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/DeviceScratchboxTargetFilter.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuildWizard.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuilder.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageDeployWizard.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageInstaller.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageStructureCppWizard.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUndeployWizard.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUninstaller.java
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ScratchboxTargetFilter.java
Removed:
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuildWizard.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuilder.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageDeployWizard.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageInstaller.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageStructureCppWizard.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUndeployWizard.java
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUninstaller.java
Modified:
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/META-INF/MANIFEST.MF
   branches/work_mmad/org.maemo.esbox.maemosdk.ui/plugin.xml
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/META-INF/MANIFEST.MF
   branches/work_mmad/org.maemo.esbox.scratchbox.ui/plugin.xml
Log:
Moved the wizard classes under scratchbox.

Modified: branches/work_mmad/org.maemo.esbox.maemosdk.ui/META-INF/MANIFEST.MF
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/META-INF/MANIFEST.MF	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/META-INF/MANIFEST.MF	2009-10-21 11:19:21 UTC (rev 2330)
@@ -7,15 +7,17 @@
 Bundle-Vendor: INdT / NOKIA
 Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime,
+ org.maemo.mica.common.core;bundle-version="2.0.0",
+ org.maemo.mica.common.project.core;bundle-version="2.0.0",
+ org.maemo.mica.common.ui;bundle-version="2.0.0",
+ org.maemo.esbox.maemosdk.core;bundle-version="2.0.0",
  org.eclipse.ui.ide;bundle-version="3.4.1",
  org.eclipse.ui.views;bundle-version="3.3.0",
- org.maemo.mica.common.core;bundle-version="2.0.0",
- org.maemo.mica.common.ui;bundle-version="2.0.0",
- org.maemo.mica.common.project.core;bundle-version="2.0.0",
  org.maemo.mica.linux.packages.core;bundle-version="2.0.0",
  org.maemo.mica.linux.packages.ui;bundle-version="2.0.0",
- org.maemo.mica.python.project.ui;bundle-version="2.0.0",
- org.maemo.esbox.maemosdk.core;bundle-version="2.0.0"
+ org.maemo.mica.cpp.project.core;bundle-version="2.0.0",
+ org.maemo.mica.python.project.core;bundle-version="2.0.0",
+ org.maemo.mica.common.project.ui;bundle-version="2.0.0"
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Bundle-ActivationPolicy: lazy
 Export-Package: org.maemo.esbox.internal.api.maemosdk.ui.preferences

Modified: branches/work_mmad/org.maemo.esbox.maemosdk.ui/plugin.xml
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/plugin.xml	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/plugin.xml	2009-10-21 11:19:21 UTC (rev 2330)
@@ -99,129 +99,5 @@
       <category
             id="org.maemo.esbox.Import"
             name="ESbox"/>
-  </extension>
-  
-  
-  <!-- Start: Debian package -->
-  
-  <!-- Debian package menu -->
-  <!-- Debian package actions for Python and C/C++ -->
-  <extension
-         point="org.eclipse.ui.popupMenus">
-    <objectContribution
-        adaptable="true"
-        id="org.maemo.esbox.maemosdk.ui.actions.debian"
-        objectClass="org.eclipse.core.resources.IProject">
-      <menu
-          id="org.maemo.esbox.maemosdk.ui.debpopup"
-          label="Debian Package"
-          path="buildGroup" />
-          
-      <visibility>
-        <or>
-	        <objectState
-	            name="nature"
-	            value="org.maemo.esbox.cpp.project.cppNature" />
-	        <objectState
-	            name="nature"
-	            value="org.maemo.esbox.python.project.pythonNature" />
-	    </or>
-      </visibility>
-         
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESboxDebianPackageDeployAction"
-          enablesFor="1" 
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.deploy"
-          label="Install Debian Package on Target"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESboxDebianPackageUninstallAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.uninstall"
-          label="Uninstall Debian Package"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-
-      <!-- Show content dialog -->
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESboxDebianPackageShowContentAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.show"
-          label="Show Debian Package Contents"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-      
-      </objectContribution>
-   </extension>
-  
-  <!-- Debian package actions for C/C++ -->
-  <extension
-         point="org.eclipse.ui.popupMenus">
-    <objectContribution
-        adaptable="true"
-        id="org.maemo.esbox.maemosdk.ui.actions.debian.cpp"
-        objectClass="org.eclipse.core.resources.IProject">
-
-      <visibility>
-	    <objectState
-	        name="nature"
-	        value="org.maemo.esbox.cpp.project.cppNature" />
-      </visibility>
-
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESboxDebianPackageStructureCppAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.create.cpp"
-          label="Create Debian Structure"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-      
-            
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESBoxDebianPackageBuildCppAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.build.cpp"
-          label="Build Debian Package"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-      
-    </objectContribution>
-  </extension>
-  
-  <!-- Debian package actions for Python -->
-  <extension
-      point="org.eclipse.ui.popupMenus">
-    <objectContribution
-        adaptable="true"
-        id="org.maemo.esbox.maemosdk.ui.actions.debian.python"
-        objectClass="org.eclipse.core.resources.IProject">
-
-      <visibility>
-	  	<objectState
-	        name="nature"
-	        value="org.maemo.esbox.python.project.pythonNature" />
-      </visibility>
-      	         
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESboxDebianPackageStructurePythonAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.create.python"
-          label="Create Debian Structure"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-
-      <action
-          class="org.maemo.esbox.internal.maemosdk.ui.actions.debian.ESBoxDebianPackageBuildPythonAction"
-          enablesFor="1"
-          id="org.maemo.esbox.maemosdk.ui.actions.debian.build.python"
-          label="Build Debian Package"
-          menubarPath="org.maemo.esbox.maemosdk.ui.debpopup/content">
-      </action>
-    </objectContribution>
-  </extension>
-   
-  <!-- End: Debian package -->
-  
+  </extension>   
 </plugin>

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuildWizard.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuildWizard.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuildWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,55 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.eclipse.core.resources.IProject;
-import org.maemo.mica.common.core.MicaException;
-import org.maemo.mica.common.core.sdk.BuildMachineHostedTargetFilter;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
-import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractDebianPackageWizard;
-import org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard;
-
-/**
- * ESbox Debian package builder wizard 
- */
-public class ESboxDebianPackageBuildWizard extends AbstractDebianPackageBuildWizard {
-
-	/**
-	 * New wizard instance.
-	 * 
-	 * @param project the project
-	 */
-	public ESboxDebianPackageBuildWizard(IProject project) {
-		super(project, new BuildMachineHostedTargetFilter());
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard#createBuilder(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
-	 */
-	@Override
-	protected IDebianPackageExecutable createBuilder(IProject project,
-			ISDKTarget target, String destination) throws MicaException {
-		return new ESboxDebianPackageBuilder(project, target, destination, this);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard#createDeployWizard(org.eclipse.core.resources.IProject)
-	 */
-	@Override
-	protected AbstractDebianPackageWizard createDeployWizard(IProject project) {
-		return new ESboxDebianPackageDeployWizard(project);
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuilder.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuilder.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuilder.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,53 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import java.util.Arrays;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.IPath;
-import org.maemo.mica.common.core.MicaException;
-import org.maemo.mica.common.core.process.ProcessLauncherParameters;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageBuilder;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageBuild;
-
-/**
- * Debian package builder for ESbox projects 
- */
-public class ESboxDebianPackageBuilder extends AbstractDebianPackageBuilder{
-
-	/**
-	 * Constructor. 
-	 * 
-	 * @param project the project
-	 * @param target the target SDK
-	 * @param destination the destination directory
-	 * @param callback the callback object (if <code>null</code> then not used)
-	 * @throws MicaException
-	 */
-	public ESboxDebianPackageBuilder(IProject project, ISDKTarget target,
-			String destination, IDebianPackageBuild callback) throws MicaException {
-		super(project, target, destination, callback, false);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageBuilder#createBuildParameters(org.eclipse.core.runtime.IPath)
-	 */
-	@Override
-	protected ProcessLauncherParameters createBuildParameters(IPath project) {
-		return ProcessLauncherParameters.create(project, 
-				Arrays.asList( "dpkg-buildpackage", "-rfakeroot", "-d"));
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageDeployWizard.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageDeployWizard.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageDeployWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.eclipse.core.resources.IProject;
-import org.maemo.mica.common.core.sdk.DeviceTargetFilter;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
-import org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageDeployWizard;
-
-/**
- * ESbox debian package installer wizard 
- */
-public class ESboxDebianPackageDeployWizard extends
-		AbstractDebianPackageDeployWizard {
-
-	/**
-	 * Constructor.
-	 * 
-	 * @param project the project
-	 */
-	public ESboxDebianPackageDeployWizard(IProject project) {
-		super(project, new DeviceTargetFilter());
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageDeployWizard#createDebianPackageInstaller(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String, int)
-	 */
-	@Override
-	protected IDebianPackageExecutable createDebianPackageInstaller(
-			IProject project, ISDKTarget target, String location, int debugMask) {
-		return new ESboxDebianPackageInstaller(project, target, location, debugMask);
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageInstaller.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageInstaller.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageInstaller.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.eclipse.core.resources.IProject;
-import org.maemo.mica.common.core.MicaException;
-import org.maemo.mica.common.core.process.ProcessLauncherParameters;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
-
-/**
- * Debian package installer for ESbox. 
- */
-public class ESboxDebianPackageInstaller extends AbstractDebianPackageInstaller {
-	/**
-	 * Constructor
-	 * 
-	 * @param project the project
-	 * @param target the target where to install
-	 * @param location the location of the packet
-	 * @param debugMask the debug mask
-	 */
-	public ESboxDebianPackageInstaller(IProject project, ISDKTarget target,
-			String location, int debugMask) {
-		super(false, null, true, project, location, target, debugMask);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller#createDebianPackageBuilder(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
-	 */
-	@Override
-	protected IDebianPackageExecutable createDebianPackageBuilder(
-			IProject project, ISDKTarget target, String location)
-			throws MicaException {
-		return null; // Should not come here
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller#createInstallParameters(org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String, int)
-	 */
-	@Override
-	protected ProcessLauncherParameters createInstallParameters(
-			ISDKTarget machineTarget, String targetPackageLocation,
-			int informationMask) {
-		return ProcessLauncherParameters.create("dpkg", "-i", "-D"
-				+ informationMask, targetPackageLocation);
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageStructureCppWizard.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageStructureCppWizard.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageStructureCppWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,46 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.eclipse.core.resources.IProject;
-import org.maemo.mica.common.core.MicaException;
-import org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureGenerator;
-import org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureValues;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
-import org.maemo.mica.internal.api.linux.packages.ui.wizard.structure.AbstractDebianPackageStructureWizard;
-
-/**
- * Debian package structure generator wizard.
- */
-public class ESboxDebianPackageStructureCppWizard extends
-		AbstractDebianPackageStructureWizard {
-
-	/**
-	 * Constructor
-	 * @param project the project
-	 */
-	public ESboxDebianPackageStructureCppWizard(IProject project) {
-		super(project);
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.structure.AbstractDebianPackageStructureWizard#createStructureGenerator(org.eclipse.core.resources.IProject, org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureValues)
-	 */
-	@Override
-	protected IDebianPackageExecutable createStructureGenerator(
-			IProject project, DebianPackageStructureValues values)
-			throws MicaException {
-		return new DebianPackageStructureGenerator(project, values);
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUndeployWizard.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUndeployWizard.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUndeployWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.eclipse.core.resources.IProject;
-import org.maemo.mica.common.core.sdk.DeviceTargetFilter;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
-import org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageUndeployWizard;
-
-/**
- * Debian package uninstall wizard.
- */
-public class ESboxDebianPackageUndeployWizard extends
-		AbstractDebianPackageUndeployWizard {
-
-	/**
-	 * Constructor. Filters devices.
-	 * @param project the project
-	 */
-	public ESboxDebianPackageUndeployWizard(IProject project) {
-		super(project, new DeviceTargetFilter());
-	}
-
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageUndeployWizard#createUninstaller(java.lang.String, org.maemo.mica.common.core.sdk.ISDKTarget)
-	 */
-	@Override
-	protected IDebianPackageExecutable createUninstaller(String packageName,
-			ISDKTarget target) {
-		return new ESboxDebianPackageUninstaller(packageName, target);
-	}
-
-}

Deleted: branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUninstaller.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUninstaller.java	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUninstaller.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -1,44 +0,0 @@
-/*******************************************************************************
- * 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:
- *    Ilja Pyykkönen (Digia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.internal.maemosdk.ui.wizards;
-
-import org.maemo.mica.common.core.process.ProcessLauncherParameters;
-import org.maemo.mica.common.core.sdk.ISDKTarget;
-import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageUninstaller;
-
-/**
- * Debian package uninstaller.
- */
-public class ESboxDebianPackageUninstaller extends
-		AbstractDebianPackageUninstaller {
-
-	/**
-	 * Constructor.
-	 * 
-	 * @param packageName the package to uninstall
-	 * @param target the target where to uninstall from
-	 */
-	public ESboxDebianPackageUninstaller(String packageName, ISDKTarget target) {
-		super(packageName, target);
-	}
-	
-	/*
-	 * (non-Javadoc)
-	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageUninstaller#createUninstallParameters(org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
-	 */
-	@Override
-	protected ProcessLauncherParameters createUninstallParameters(
-			ISDKTarget target, String packageName) {
-		 return ProcessLauncherParameters.create("dpkg", "--remove", packageName);
-	}
-
-}

Modified: branches/work_mmad/org.maemo.esbox.scratchbox.ui/META-INF/MANIFEST.MF
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/META-INF/MANIFEST.MF	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/META-INF/MANIFEST.MF	2009-10-21 11:19:21 UTC (rev 2330)
@@ -7,13 +7,16 @@
 Bundle-Vendor: INdT / NOKIA
 Require-Bundle: org.eclipse.ui,
  org.eclipse.core.runtime,
+ org.eclipse.ui.ide;bundle-version="3.4.0",
  org.maemo.esbox.scratchbox.core;bundle-version="2.0.0",
  org.maemo.mica.common.core;bundle-version="2.0.0",
  org.maemo.mica.common.project.core;bundle-version="2.0.0",
  org.maemo.mica.common.ui;bundle-version="2.0.0",
  org.maemo.mica.maemosdk.core;bundle-version="2.0.0",
  org.maemo.mica.maemosdk.ui;bundle-version="2.0.0",
- org.eclipse.ui.ide;bundle-version="3.4.0"
+ org.maemo.mica.linux.packages.core;bundle-version="2.0.0",
+ org.maemo.mica.linux.packages.ui;bundle-version="2.0.0",
+ org.maemo.mica.python.project.ui;bundle-version="2.0.0"
 Bundle-RequiredExecutionEnvironment: J2SE-1.5
 Bundle-ActivationPolicy: lazy
 Export-Package: org.maemo.esbox.internal.api.scratchbox.ui.adapters,

Modified: branches/work_mmad/org.maemo.esbox.scratchbox.ui/plugin.xml
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/plugin.xml	2009-10-21 08:01:43 UTC (rev 2329)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/plugin.xml	2009-10-21 11:19:21 UTC (rev 2330)
@@ -15,4 +15,127 @@
       </contextMenuProvider>
    </extension>
 
+  
+  <!-- Start: Debian package -->
+  
+  <!-- Debian package menu -->
+  <!-- Debian package actions for Python and C/C++ -->
+  <extension
+         point="org.eclipse.ui.popupMenus">
+    <objectContribution
+        adaptable="true"
+        id="org.maemo.esbox.scratchbox.ui.actions.debian"
+        objectClass="org.eclipse.core.resources.IProject">
+      <menu
+          id="org.maemo.esbox.scratchbox.ui.debpopup"
+          label="Debian Package"
+          path="buildGroup" />
+          
+      <visibility>
+        <or>
+	        <objectState
+	            name="nature"
+	            value="org.maemo.esbox.cpp.project.cppNature" />
+	        <objectState
+	            name="nature"
+	            value="org.maemo.esbox.python.project.pythonNature" />
+	    </or>
+      </visibility>
+         
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESboxDebianPackageDeployAction"
+          enablesFor="1" 
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.deploy"
+          label="Install Debian Package on Target"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESboxDebianPackageUninstallAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.uninstall"
+          label="Uninstall Debian Package"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+
+      <!-- Show content dialog -->
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESboxDebianPackageShowContentAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.show"
+          label="Show Debian Package Contents"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+      
+      </objectContribution>
+   </extension>
+  
+  <!-- Debian package actions for C/C++ -->
+  <extension
+         point="org.eclipse.ui.popupMenus">
+    <objectContribution
+        adaptable="true"
+        id="org.maemo.esbox.scratchbox.ui.actions.debian.cpp"
+        objectClass="org.eclipse.core.resources.IProject">
+
+      <visibility>
+	    <objectState
+	        name="nature"
+	        value="org.maemo.esbox.cpp.project.cppNature" />
+      </visibility>
+
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESboxDebianPackageStructureCppAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.create.cpp"
+          label="Create Debian Structure"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+      
+            
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESBoxDebianPackageBuildCppAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.build.cpp"
+          label="Build Debian Package"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+      
+    </objectContribution>
+  </extension>
+  
+  <!-- Debian package actions for Python -->
+  <extension
+      point="org.eclipse.ui.popupMenus">
+    <objectContribution
+        adaptable="true"
+        id="org.maemo.esbox.scratchbox.ui.actions.debian.python"
+        objectClass="org.eclipse.core.resources.IProject">
+
+      <visibility>
+	  	<objectState
+	        name="nature"
+	        value="org.maemo.esbox.python.project.pythonNature" />
+      </visibility>
+      	         
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESboxDebianPackageStructurePythonAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.create.python"
+          label="Create Debian Structure"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+
+      <action
+          class="org.maemo.esbox.internal.api.scratchbox.ui.actions.debian.ESBoxDebianPackageBuildPythonAction"
+          enablesFor="1"
+          id="org.maemo.esbox.scratchbox.ui.actions.debian.build.python"
+          label="Build Debian Package"
+          menubarPath="org.maemo.esbox.scratchbox.ui.debpopup/content">
+      </action>
+    </objectContribution>
+  </extension>
+   
+  <!-- End: Debian package -->
+
 </plugin>

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/AbstractESboxDebianPackageAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/AbstractESboxDebianPackageAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/AbstractESboxDebianPackageAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/AbstractESboxDebianPackageAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.wizard.IWizard;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.maemo.mica.internal.api.common.ui.actions.AbstractSelectedResourceAction;
+
+import com.nokia.cpp.internal.api.utils.ui.WorkbenchUtils;
+
+/**
+ * Abstract action for running dialog. 
+ */
+public abstract class AbstractESboxDebianPackageAction extends AbstractSelectedResourceAction {
+
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+	 */
+	public void run(IAction action) {
+		new WizardDialog(WorkbenchUtils.getSafeShell(), createWizard(extractSelection().getProject())).open();
+	}
+
+	/**
+	 * Create wizard
+	 * 
+	 * @param project the project
+	 * @return the created wizard
+	 */
+	protected abstract IWizard createWizard(IProject project);
+	
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildCppAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESBoxDebianPackageBuildCppAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildCppAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildCppAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageBuildWizard;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageStructureCppWizard;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractDebianPackageWizard;
+
+/**
+ * Build debian package action for C/C++ projects. 
+ */
+public class ESBoxDebianPackageBuildCppAction extends AbstractBuildDebianPackageAction {
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction#createBuildWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected AbstractDebianPackageWizard createBuildWizard(IProject project) {
+		return new ESboxDebianPackageBuildWizard(project);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction#createStructureWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected AbstractDebianPackageWizard createStructureWizard(IProject project) {
+		return new ESboxDebianPackageStructureCppWizard(project);
+	}
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildPythonAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESBoxDebianPackageBuildPythonAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildPythonAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESBoxDebianPackageBuildPythonAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageBuildWizard;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractDebianPackageWizard;
+import org.maemo.mica.python.project.ui.wizards.PythonDebianStructureWizard;
+
+/**
+ * Build Debian package action for Python projects. 
+ */
+public class ESBoxDebianPackageBuildPythonAction extends AbstractBuildDebianPackageAction {
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction#createBuildWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected AbstractDebianPackageWizard createBuildWizard(IProject project) {
+		return new ESboxDebianPackageBuildWizard(project);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractBuildDebianPackageAction#createStructureWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected AbstractDebianPackageWizard createStructureWizard(IProject project) {
+		return new PythonDebianStructureWizard(project);
+	}
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageDeployAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESboxDebianPackageDeployAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageDeployAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageDeployAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.wizard.IWizard;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageDeployWizard;
+
+/**
+ * Deploy Debian package action 
+ */
+public class ESboxDebianPackageDeployAction extends AbstractESboxDebianPackageAction {
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.esbox.internal.maemosdk.ui.actions.debian.AbstractESboxDebianPackageAction#createWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected IWizard createWizard(IProject project) {
+		return new ESboxDebianPackageDeployWizard(project);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageShowContentAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESboxDebianPackageShowContentAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageShowContentAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageShowContentAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.jface.action.IAction;
+import org.maemo.mica.internal.api.common.ui.actions.AbstractSelectedResourceAction;
+import org.maemo.mica.internal.api.linux.packages.ui.debian.DebianPackageContentViewerDialog;
+
+import com.nokia.cpp.internal.api.utils.ui.WorkbenchUtils;
+
+/**
+ * Show content dialog action.
+ */
+public class ESboxDebianPackageShowContentAction extends
+		AbstractSelectedResourceAction {
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
+	 */
+	public void run(IAction action) {
+		new DebianPackageContentViewerDialog(WorkbenchUtils.getSafeShell())
+				.open();
+	}
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructureCppAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESboxDebianPackageStructureCppAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructureCppAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructureCppAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.wizard.IWizard;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageStructureCppWizard;
+
+/**
+ * Action to launch Debian package Structure wizard. 
+ */
+public class ESboxDebianPackageStructureCppAction extends
+		AbstractESboxDebianPackageAction {
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.esbox.internal.maemosdk.ui.actions.debian.AbstractESboxDebianPackageAction#createWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected IWizard createWizard(IProject project) {
+		return new ESboxDebianPackageStructureCppWizard(project);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructurePythonAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESboxDebianPackageStructurePythonAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructurePythonAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageStructurePythonAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.wizard.IWizard;
+import org.maemo.mica.python.project.ui.wizards.PythonDebianStructureWizard;
+
+/**
+ * Action to launch Python Debian structure generator wizard.
+ */
+public class ESboxDebianPackageStructurePythonAction extends AbstractESboxDebianPackageAction {
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.esbox.internal.maemosdk.ui.actions.debian.AbstractESboxDebianPackageAction#createWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected IWizard createWizard(IProject project) {
+		return new PythonDebianStructureWizard(project);
+	}
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageUninstallAction.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/actions/debian/ESboxDebianPackageUninstallAction.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageUninstallAction.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/actions/debian/ESboxDebianPackageUninstallAction.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.actions.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jface.wizard.IWizard;
+import org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian.ESboxDebianPackageUndeployWizard;
+/**
+ * Action to launch undeploy (uninstall) wizard. 
+ */
+public class ESboxDebianPackageUninstallAction extends
+		AbstractESboxDebianPackageAction {
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.esbox.internal.maemosdk.ui.actions.debian.AbstractESboxDebianPackageAction#createWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected IWizard createWizard(IProject project) {
+		return new ESboxDebianPackageUndeployWizard(project);
+	}
+
+}

Added: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/DeviceScratchboxTargetFilter.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/DeviceScratchboxTargetFilter.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/DeviceScratchboxTargetFilter.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,41 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.maemo.mica.common.core.sdk.DeviceTargetFilter;
+import org.maemo.mica.common.core.sdk.ISDK;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+
+/**
+ * Target filter. Accepts devices and Scratchbox targets. 
+ */
+public class DeviceScratchboxTargetFilter extends DeviceTargetFilter {
+	private ScratchboxTargetFilter filter = new ScratchboxTargetFilter();
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.common.core.sdk.DeviceTargetFilter#accept(org.maemo.mica.common.core.sdk.ISDK)
+	 */
+	@Override
+	public boolean accept(ISDK sdk) {
+		return filter.accept(sdk) || super.accept(sdk);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.common.core.sdk.DeviceTargetFilter#accept(org.maemo.mica.common.core.sdk.ISDKTarget)
+	 */
+	@Override
+	public boolean accept(ISDKTarget sdkTarget) {
+		return filter.accept(sdkTarget) || super.accept(sdkTarget);
+	}
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuildWizard.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuildWizard.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuildWizard.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuildWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.mica.common.core.MicaException;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.AbstractDebianPackageWizard;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard;
+
+/**
+ * ESbox Debian package builder wizard 
+ */
+public class ESboxDebianPackageBuildWizard extends AbstractDebianPackageBuildWizard {
+
+	/**
+	 * New wizard instance.
+	 * 
+	 * @param project the project
+	 */
+	public ESboxDebianPackageBuildWizard(IProject project) {
+		super(project, new ScratchboxTargetFilter());
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard#createBuilder(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
+	 */
+	@Override
+	protected IDebianPackageExecutable createBuilder(IProject project,
+			ISDKTarget target, String destination) throws MicaException {
+		return new ESboxDebianPackageBuilder(project, target, destination, this);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.build.AbstractDebianPackageBuildWizard#createDeployWizard(org.eclipse.core.resources.IProject)
+	 */
+	@Override
+	protected AbstractDebianPackageWizard createDeployWizard(IProject project) {
+		return new ESboxDebianPackageDeployWizard(project);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuilder.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageBuilder.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuilder.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageBuilder.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import java.util.Arrays;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IPath;
+import org.maemo.mica.common.core.MicaException;
+import org.maemo.mica.common.core.process.ProcessLauncherParameters;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageBuilder;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageBuild;
+
+/**
+ * Debian package builder for ESbox projects 
+ */
+public class ESboxDebianPackageBuilder extends AbstractDebianPackageBuilder{
+
+	/**
+	 * Constructor. 
+	 * 
+	 * @param project the project
+	 * @param target the target SDK
+	 * @param destination the destination directory
+	 * @param callback the callback object (if <code>null</code> then not used)
+	 * @throws MicaException
+	 */
+	public ESboxDebianPackageBuilder(IProject project, ISDKTarget target,
+			String destination, IDebianPackageBuild callback) throws MicaException {
+		super(project, target, destination, callback, false);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageBuilder#createBuildParameters(org.eclipse.core.runtime.IPath)
+	 */
+	@Override
+	protected ProcessLauncherParameters createBuildParameters(IPath project) {
+		return ProcessLauncherParameters.create(project, 
+				Arrays.asList( "dpkg-buildpackage", "-rfakeroot", "-d"));
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageDeployWizard.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageDeployWizard.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageDeployWizard.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageDeployWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageDeployWizard;
+
+/**
+ * ESbox debian package installer wizard 
+ */
+public class ESboxDebianPackageDeployWizard extends
+		AbstractDebianPackageDeployWizard {
+
+	/**
+	 * Constructor.
+	 * 
+	 * @param project the project
+	 */
+	public ESboxDebianPackageDeployWizard(IProject project) {
+		super(project, new DeviceScratchboxTargetFilter());
+		
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageDeployWizard#createDebianPackageInstaller(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String, int)
+	 */
+	@Override
+	protected IDebianPackageExecutable createDebianPackageInstaller(
+			IProject project, ISDKTarget target, String location, int debugMask) {
+		return new ESboxDebianPackageInstaller(project, target, location, debugMask);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageInstaller.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageInstaller.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageInstaller.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageInstaller.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.mica.common.core.MicaException;
+import org.maemo.mica.common.core.process.ProcessLauncherParameters;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
+
+/**
+ * Debian package installer for ESbox. 
+ */
+public class ESboxDebianPackageInstaller extends AbstractDebianPackageInstaller {
+	/**
+	 * Constructor
+	 * 
+	 * @param project the project
+	 * @param target the target where to install
+	 * @param location the location of the packet
+	 * @param debugMask the debug mask
+	 */
+	public ESboxDebianPackageInstaller(IProject project, ISDKTarget target,
+			String location, int debugMask) {
+		super(false, null, true, project, location, target, debugMask);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller#createDebianPackageBuilder(org.eclipse.core.resources.IProject, org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
+	 */
+	@Override
+	protected IDebianPackageExecutable createDebianPackageBuilder(
+			IProject project, ISDKTarget target, String location)
+			throws MicaException {
+		return null; // Should not come here
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageInstaller#createInstallParameters(org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String, int)
+	 */
+	@Override
+	protected ProcessLauncherParameters createInstallParameters(
+			ISDKTarget machineTarget, String targetPackageLocation,
+			int informationMask) {
+		return ProcessLauncherParameters.create("dpkg", "-i", "-D"
+				+ informationMask, targetPackageLocation);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageStructureCppWizard.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageStructureCppWizard.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageStructureCppWizard.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageStructureCppWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,46 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.mica.common.core.MicaException;
+import org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureGenerator;
+import org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureValues;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.structure.AbstractDebianPackageStructureWizard;
+
+/**
+ * Debian package structure generator wizard.
+ */
+public class ESboxDebianPackageStructureCppWizard extends
+		AbstractDebianPackageStructureWizard {
+
+	/**
+	 * Constructor
+	 * @param project the project
+	 */
+	public ESboxDebianPackageStructureCppWizard(IProject project) {
+		super(project);
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.structure.AbstractDebianPackageStructureWizard#createStructureGenerator(org.eclipse.core.resources.IProject, org.maemo.mica.internal.api.linux.packages.core.debian.DebianPackageStructureValues)
+	 */
+	@Override
+	protected IDebianPackageExecutable createStructureGenerator(
+			IProject project, DebianPackageStructureValues values)
+			throws MicaException {
+		return new DebianPackageStructureGenerator(project, values);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUndeployWizard.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUndeployWizard.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUndeployWizard.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUndeployWizard.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.eclipse.core.resources.IProject;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.IDebianPackageExecutable;
+import org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageUndeployWizard;
+
+/**
+ * Debian package uninstall wizard.
+ */
+public class ESboxDebianPackageUndeployWizard extends
+		AbstractDebianPackageUndeployWizard {
+
+	/**
+	 * Constructor. Filters devices.
+	 * @param project the project
+	 */
+	public ESboxDebianPackageUndeployWizard(IProject project) {
+		super(project, new DeviceScratchboxTargetFilter());
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.ui.wizard.deploy.AbstractDebianPackageUndeployWizard#createUninstaller(java.lang.String, org.maemo.mica.common.core.sdk.ISDKTarget)
+	 */
+	@Override
+	protected IDebianPackageExecutable createUninstaller(String packageName,
+			ISDKTarget target) {
+		return new ESboxDebianPackageUninstaller(packageName, target);
+	}
+
+}

Copied: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUninstaller.java (from rev 2329, branches/work_mmad/org.maemo.esbox.maemosdk.ui/src/org/maemo/esbox/internal/maemosdk/ui/wizards/ESboxDebianPackageUninstaller.java)
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUninstaller.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ESboxDebianPackageUninstaller.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.maemo.mica.common.core.process.ProcessLauncherParameters;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+import org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageUninstaller;
+
+/**
+ * Debian package uninstaller.
+ */
+public class ESboxDebianPackageUninstaller extends
+		AbstractDebianPackageUninstaller {
+
+	/**
+	 * Constructor.
+	 * 
+	 * @param packageName the package to uninstall
+	 * @param target the target where to uninstall from
+	 */
+	public ESboxDebianPackageUninstaller(String packageName, ISDKTarget target) {
+		super(packageName, target);
+	}
+	
+	/*
+	 * (non-Javadoc)
+	 * @see org.maemo.mica.internal.api.linux.packages.core.debian.AbstractDebianPackageUninstaller#createUninstallParameters(org.maemo.mica.common.core.sdk.ISDKTarget, java.lang.String)
+	 */
+	@Override
+	protected ProcessLauncherParameters createUninstallParameters(
+			ISDKTarget target, String packageName) {
+		 return ProcessLauncherParameters.create("dpkg", "--remove", packageName);
+	}
+
+}

Added: branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ScratchboxTargetFilter.java
===================================================================
--- branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ScratchboxTargetFilter.java	                        (rev 0)
+++ branches/work_mmad/org.maemo.esbox.scratchbox.ui/src/org/maemo/esbox/internal/api/scratchbox/ui/wizards/debian/ScratchboxTargetFilter.java	2009-10-21 11:19:21 UTC (rev 2330)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * 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:
+ *    Ilja Pyykkönen (Digia) - initial API and implementation
+ *******************************************************************************/
+
+package org.maemo.esbox.internal.api.scratchbox.ui.wizards.debian;
+
+import org.maemo.esbox.scratchbox.core.sdk.IScratchboxSDK;
+import org.maemo.esbox.scratchbox.core.sdk.IScratchboxSDKTarget;
+import org.maemo.mica.common.core.sdk.IBuildTargetFilter;
+import org.maemo.mica.common.core.sdk.ISDK;
+import org.maemo.mica.common.core.sdk.ISDKTarget;
+
+/**
+ * Target filter. Accepts Scratchbox targets.  
+ */
+public class ScratchboxTargetFilter implements IBuildTargetFilter {
+
+	public boolean accept(ISDK sdk) {
+		return sdk instanceof IScratchboxSDK;
+	}
+
+	public boolean accept(ISDKTarget sdkTarget) {
+		return sdkTarget instanceof IScratchboxSDKTarget;
+	}
+}



More information about the Esbox-commits mailing list