[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-8591) New File Wizard gives no indication that new resource can't be created because project lacks BPEL facet

Robert (Bob) Brodt (JIRA) jira-events at lists.jboss.org
Wed Mar 16 18:18:45 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-8591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert (Bob) Brodt resolved JBIDE-8591.
---------------------------------------

    Resolution: Done


Added a warning message to the New File Wizard if the user tries to create a BPEL process file in a non-faceted project.

> New File Wizard gives no indication that new resource can't be created because project lacks BPEL facet
> -------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8591
>                 URL: https://issues.jboss.org/browse/JBIDE-8591
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: bpel
>    Affects Versions: 3.2.0.CR1
>            Reporter: Robert (Bob) Brodt
>             Fix For: 3.2.1
>
>
> The New File Wizard can not be advanced beyond the first page ("Select a wizard - New BPEL Process File") if the selected project does not have a BPEL facet. No error message is displayed but there is a stack trace in the log. The correct behavior should be to allow creation of the BPEL process file, but display a warning if the project does not have a BPEL facet.
> java.lang.IllegalArgumentException: Path must include project and resource name: /project_without_BPEL_facet
> 	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
> 	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1795)
> 	at org.eclipse.core.internal.resources.Container.getFolder(Container.java:221)
> 	at org.eclipse.bpel.ui.wizards.NewFileWizard.getBPELContainer(NewFileWizard.java:228)
> 	at org.eclipse.bpel.ui.wizards.NewFileWizard.init(NewFileWizard.java:93)
> 	at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:185)
> 	at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:104)
> 	at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:100)
> 	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:887)
> 	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:426)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
> 	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
> 	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
> 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> 	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> 	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
> 	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
> 	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
> 	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
> 	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list