[Esbox-commits] r380 - trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards

carolina at garage.maemo.org carolina at garage.maemo.org
Tue Jan 22 16:59:39 EET 2008


Author: carolina
Date: 2008-01-22 16:59:35 +0200 (Tue, 22 Jan 2008)
New Revision: 380

Modified:
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxCommonProjectWizard.java
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxConfigWizardPage.java
   trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxMainWizardPage.java
Log:
You can't create an application with spaces in its name.

Removed unused imports.

Modified: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxCommonProjectWizard.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxCommonProjectWizard.java	2008-01-22 14:50:00 UTC (rev 379)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxCommonProjectWizard.java	2008-01-22 14:59:35 UTC (rev 380)
@@ -31,7 +31,6 @@
 import org.eclipse.cdt.make.core.MakeCorePlugin;
 import org.eclipse.cdt.managedbuilder.ui.wizards.CfgHolder;
 import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.ui.newui.BinaryParsTab;
 import org.eclipse.cdt.ui.newui.ProjectContentsArea;
 import org.eclipse.cdt.ui.newui.UIMessages;
 import org.eclipse.cdt.ui.templateengine.Template;
@@ -97,8 +96,6 @@
 	private String lastProjectName = null;
 	private IPath lastProjectLocation = null;
 	private ESboxConfigHandler esboxHandler;
-	private IWizardPage predatingPage;
-	private IWizardPage followingPage;
 	private IWizardPage[] templatePages;
 	
 	protected List localPages = new ArrayList(); // replacing Wizard.pages since we have to delete them

Modified: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxConfigWizardPage.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxConfigWizardPage.java	2008-01-22 14:50:00 UTC (rev 379)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxConfigWizardPage.java	2008-01-22 14:59:35 UTC (rev 380)
@@ -24,13 +24,6 @@
 import org.eclipse.cdt.ui.newui.ProjectContentsArea;
 import org.eclipse.cdt.ui.newui.UIMessages;
 import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.Preferences;
-import org.eclipse.jface.viewers.CheckStateChangedEvent;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.Viewer;
 import org.eclipse.jface.wizard.WizardPage;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.SelectionAdapter;
@@ -48,7 +41,6 @@
 import org.eclipse.swt.widgets.TableColumn;
 import org.eclipse.swt.widgets.TableItem;
 import org.eclipse.ui.dialogs.PreferencesUtil;
-import org.indt.esbox.core.CoreActivator;
 import org.indt.esbox.core.ErrorLogger;
 import org.indt.esbox.core.scratchbox.ScratchboxException;
 import org.indt.esbox.core.scratchbox.ScratchboxFacade;

Modified: trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxMainWizardPage.java
===================================================================
--- trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxMainWizardPage.java	2008-01-22 14:50:00 UTC (rev 379)
+++ trunk/org.indt.esbox.ui/src/org/indt/esbox/ui/wizards/ESboxMainWizardPage.java	2008-01-22 14:59:35 UTC (rev 380)
@@ -483,6 +483,10 @@
         	return false;
         }
         
+        if (projectNameField.getText().contains(" ")) {
+        	setErrorMessage("Name field is invalid. Project cannot be created");
+        	return false;
+        }
 
 		TreeItem[] tis = treeProjectTypes.getSelection();
 		if (tis == null || tis.length == 0) {



More information about the Esbox-commits mailing list