[Esbox-commits] r205 - in trunk/org.indt.esbox.python.ui: . src/org/indt/esbox/python/ui src/org/indt/esbox/python/ui/wizards templates/PythonHildonHelloWorld templates/PythonOSSOApplication templates/PythonOSSORPC
carolina at garage.maemo.org
carolina at garage.maemo.org
Tue Oct 30 21:53:49 EET 2007
Author: carolina
Date: 2007-10-30 21:53:48 +0200 (Tue, 30 Oct 2007)
New Revision: 205
Added:
trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonBuilder.java
Modified:
trunk/org.indt.esbox.python.ui/plugin.xml
trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonProjectNature.java
trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/PythonUIActivator.java
trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/wizards/ESboxPythonMainWizardPage.java
trunk/org.indt.esbox.python.ui/templates/PythonHildonHelloWorld/.project
trunk/org.indt.esbox.python.ui/templates/PythonOSSOApplication/.project
trunk/org.indt.esbox.python.ui/templates/PythonOSSORPC/.project
Log:
Now is possible to add nature org.indt.esbox.python.ui.esboxNature.
Modified: trunk/org.indt.esbox.python.ui/plugin.xml
===================================================================
--- trunk/org.indt.esbox.python.ui/plugin.xml 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/plugin.xml 2007-10-30 19:53:48 UTC (rev 205)
@@ -35,6 +35,27 @@
projectType="org.indt.esbox.python.ui.projectType.python">
</template>
</extension>
+
+ <extension
+ id="esboxNature"
+ name="ESbox Python Project Nature"
+ point="org.eclipse.core.resources.natures">
+ <requires-nature id="org.python.pydev.pythonNature"/>
+ <runtime>
+ <run class="org.indt.esbox.python.ui.ESboxPythonProjectNature"/>
+ </runtime>
+ <builder id="org.indt.esbox.python.ui.pluthonBuilder"/>
+ </extension>
+ <extension
+ id="esboxBuilder"
+ name="Builder for ESbox Python Projects"
+ point="org.eclipse.core.resources.builders">
+ <builder
+ hasNature="true"
+ isConfigurable="false">
+ <run class="org.indt.esbox.python.ui.ESboxPythonBuilder"/>
+ </builder>
+ </extension>
</plugin>
\ No newline at end of file
Added: trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonBuilder.java
===================================================================
--- trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonBuilder.java (rev 0)
+++ trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonBuilder.java 2007-10-30 19:53:48 UTC (rev 205)
@@ -0,0 +1,31 @@
+/*******************************************************************************
+ * 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:
+ * Raul Herbster (raul at embedded.ufcg.edu.br) (UFCG) - initial API and implementation
+ *******************************************************************************/
+package org.indt.esbox.python.ui;
+
+import java.util.Map;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+
+public class ESboxPythonBuilder extends IncrementalProjectBuilder {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.resources.IncrementalProjectBuilder#build(int, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
+ */
+ @Override
+ protected IProject[] build(int kind, Map args, IProgressMonitor monitor)
+ throws CoreException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Modified: trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonProjectNature.java
===================================================================
--- trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonProjectNature.java 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/ESboxPythonProjectNature.java 2007-10-30 19:53:48 UTC (rev 205)
@@ -23,15 +23,16 @@
public class ESboxPythonProjectNature implements IProjectNature {
private IProject project;
+
private static ESboxPythonProjectNature instance;
/*
* id of ESbox Python Project
* org.indt.esbox.core.esboxPythonNature
*/
- public static final String ESBOX_PYTHON_NATURE_ID = PythonUIActivator.getUniqueIdentifierNature() + ".esboxNature";
+ public static final String ESBOX_PYTHON_NATURE_ID = PythonUIActivator.getUniqueIdentifier() + ".esboxNature";
- private ESboxPythonProjectNature() {}
+ public ESboxPythonProjectNature() {}
/**
* Returns the shared instance
Modified: trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/PythonUIActivator.java
===================================================================
--- trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/PythonUIActivator.java 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/PythonUIActivator.java 2007-10-30 19:53:48 UTC (rev 205)
@@ -29,10 +29,7 @@
// The plug-in ID
public static final String PLUGIN_ID = "org.indt.esbox.python.ui";
-
- // The plug-in ID
- private static final String NATURE_ID = "org.indt.esbox.python";
-
+
private static final int DEFAULT_TIMEOUT = 60;
// The shared instance
@@ -156,15 +153,5 @@
public int getTimeout() {
return DEFAULT_TIMEOUT;
- }
-
- public static String getUniqueIdentifierNature() {
- if (getDefault() == null) {
- // If the default instance is not yet initialized,
- // return a static identifier. This identifier must
- // match the plugin id defined in plugin.xml
- return NATURE_ID;
- }
- return getDefault().getBundle().getSymbolicName();
}
}
Modified: trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/wizards/ESboxPythonMainWizardPage.java
===================================================================
--- trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/wizards/ESboxPythonMainWizardPage.java 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/src/org/indt/esbox/python/ui/wizards/ESboxPythonMainWizardPage.java 2007-10-30 19:53:48 UTC (rev 205)
@@ -241,8 +241,7 @@
}
private void fillProjectTypeTree() {
- Template[] templates = UIActivator.getDefault().getTemplates();
- System.out.println(PYTHON_PROJECT_TYPE);
+ Template[] templates = UIActivator.getDefault().getTemplates();
for (int i = 0; i < templates.length; i++) {
Template template = templates[i];
String projectType = template.getTemplateInfo().getProjectType();
Modified: trunk/org.indt.esbox.python.ui/templates/PythonHildonHelloWorld/.project
===================================================================
--- trunk/org.indt.esbox.python.ui/templates/PythonHildonHelloWorld/.project 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/templates/PythonHildonHelloWorld/.project 2007-10-30 19:53:48 UTC (rev 205)
@@ -13,6 +13,6 @@
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
- <nature>org.indt.esbox.python.esboxNature</nature>
+ <nature>org.indt.esbox.python.ui.esboxNature</nature>
</natures>
</projectDescription>
Modified: trunk/org.indt.esbox.python.ui/templates/PythonOSSOApplication/.project
===================================================================
--- trunk/org.indt.esbox.python.ui/templates/PythonOSSOApplication/.project 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/templates/PythonOSSOApplication/.project 2007-10-30 19:53:48 UTC (rev 205)
@@ -13,6 +13,6 @@
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
- <nature>org.indt.esbox.python.esboxNature</nature>
+ <nature>org.indt.esbox.python.ui.esboxNature</nature>
</natures>
</projectDescription>
Modified: trunk/org.indt.esbox.python.ui/templates/PythonOSSORPC/.project
===================================================================
--- trunk/org.indt.esbox.python.ui/templates/PythonOSSORPC/.project 2007-10-30 18:30:58 UTC (rev 204)
+++ trunk/org.indt.esbox.python.ui/templates/PythonOSSORPC/.project 2007-10-30 19:53:48 UTC (rev 205)
@@ -13,6 +13,6 @@
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
- <nature>org.indt.esbox.python.esboxNature</nature>
+ <nature>org.indt.esbox.python.ui.esboxNature</nature>
</natures>
</projectDescription>
More information about the Esbox-commits
mailing list