Project: appceleratorstudio
Issue TISTUD-2743: Node.ACS: Can not import removed Node.ACS project
After removing (but not deleting) an ACS Node project that has been published from the workspace, Titanium studio can not import the project. The import project wizard does not have an ACS project choice, and trying to promote the folder to a project throws the following error: {code} !ENTRY org.eclipse.ui 4 0 2012-11-08 08:50:55.974 !MESSAGE Unhandled event loop exception !STACK 0 java.lang.NullPointerException com.aptana.ui.wizards.WizardFolderImportPage.validate(WizardFolderImportPage.java:387) com.aptana.ui.wizards.WizardFolderImportPage$InputModifyListener.modifyText(WizardFolderImportPage.java:787) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:179) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058) org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:2610) org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:4669) org.eclipse.swt.widgets.Control.windowProc(Control.java:4531) org.eclipse.swt.widgets.Display.windowProc(Display.java:4972) org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2425) org.eclipse.swt.widgets.Text.callWindowProc(Text.java:255) org.eclipse.swt.widgets.Control.windowProc(Control.java:4623) org.eclipse.swt.widgets.Text.windowProc(Text.java:2254) org.eclipse.swt.widgets.Display.windowProc(Display.java:4972) org.eclipse.swt.internal.win32.OS.SetWindowTextW(Native Method) org.eclipse.swt.internal.win32.OS.SetWindowText(OS.java:3446) org.eclipse.swt.widgets.Text.setText(Text.java:1977) com.aptana.ui.wizards.WizardFolderImportPage.setProjectName(WizardFolderImportPage.java:483) com.aptana.ui.wizards.WizardFolderImportPage.createControl(WizardFolderImportPage.java:240) org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174) org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736) org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:608) org.eclipse.jface.window.Window.create(Window.java:431) org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089) org.eclipse.jface.window.Window.open(Window.java:790) com.aptana.projects.actions.PromoteToProjectHandler.execute(PromoteToProjectHandler.java:59) org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293) org.eclipse.core.commands.Command.executeWithChecks(Command.java:476) org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508) org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169) org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241) org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829) org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815) org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:125) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) org.eclipse.equinox.launcher.Main.run(Main.java:1410) {code} This is not a regression. Steps to reproduce: 1. Create a new Node.ACS project. 2. Publish the project. 3. From the project Explorer remove the project from the workspace without removing the published app. 4. Try to import the project back into the workspace. Expected result: Import should give a warning that the published project exists and might be overwritten and allow the user to continue. Actual results: Import wizard does not recognized the project type. Creating from a folder causes NPE.
Story points: 5