[Esbox-commits] r36 - trunk/org.indt.esbox.core/src/org/indt/esbox/core

carolina at garage.maemo.org carolina at garage.maemo.org
Tue Oct 2 17:14:58 EEST 2007


Author: carolina
Date: 2007-10-02 17:14:58 +0300 (Tue, 02 Oct 2007)
New Revision: 36

Modified:
   trunk/org.indt.esbox.core/src/org/indt/esbox/core/ESboxProjectProperties.java
Log:
[Task 485] Create properties pages

Now ESbox have a properties page.

Modified: trunk/org.indt.esbox.core/src/org/indt/esbox/core/ESboxProjectProperties.java
===================================================================
--- trunk/org.indt.esbox.core/src/org/indt/esbox/core/ESboxProjectProperties.java	2007-10-02 14:14:16 UTC (rev 35)
+++ trunk/org.indt.esbox.core/src/org/indt/esbox/core/ESboxProjectProperties.java	2007-10-02 14:14:58 UTC (rev 36)
@@ -53,20 +53,20 @@
 		}
 	}
 	
-	public String getMaemoSDK(IProject project) {
+	public static synchronized String getMaemoSDK(IProject project) {
 		try {
 			return project.getPersistentProperty(maemoSDKProperty);
 		} catch (CoreException e) {
-			logError(e);
+			logError2(e);
 			return null;
 		}
 	}
 	
-	public String getPlatform(IProject project) {
+	public static synchronized String getPlatform(IProject project) {
 		try {
 			return project.getPersistentProperty(platformProperty);
 		} catch (CoreException e) {
-			logError(e);
+			logError2(e);
 			return null;
 		}
 	}
@@ -79,19 +79,19 @@
 		}
 	}
 	
-	public void setMaemoSDK(IProject project, String maemoSDK) {
+	public static synchronized void setMaemoSDK(IProject project, String maemoSDK) {
 		try {
 			project.setPersistentProperty(maemoSDKProperty,maemoSDK);
 		} catch (CoreException e) {
-			logError(e);
+			logError2(e);
 		}
 	}
 	
-	public void setPlatform(IProject project, String platform) {
+	public static synchronized void setPlatform(IProject project, String platform) {
 		try {
 			project.setPersistentProperty(platformProperty,platform);
 		} catch (CoreException e) {
-			logError(e);
+			logError2(e);
 		}
 	}
 	
@@ -100,4 +100,9 @@
 		errorLogger.logAndShowError("Eclipse error", e);
 	}
 	
+	private static void logError2(Exception e) {
+		ErrorLogger errorLogger = CoreActivator.getDefault().getErrorLogger();
+		errorLogger.logAndShowError("Eclipse error", e);
+	}
+	
 }



More information about the Esbox-commits mailing list