[forge-issues] [JBoss JIRA] (FORGE-2160) Projects must check the current selection instead of the initial selection
George Gastaldi (JIRA)
issues at jboss.org
Tue Dec 2 08:23:39 EST 2014
[ https://issues.jboss.org/browse/FORGE-2160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-2160:
-----------------------------------
Description:
After using a UIContext to create a project, the following exception is thrown if the same UIContext is reused:
{{java.lang.IllegalStateException: A project is required in the current context}}
It would be nice to use the current selection instead of the initialSelection to lookup a Project in the {{org.jboss.forge.addon.projects.Projects}} class
was:
After using a UIContext to create a
{{java.lang.IllegalStateException: A project is required in the current context}}
This is because Projects uses the getInitialSelection() to determine the current project. It should use getSelection(), which fallbacks to getInitialSelection() if not provided.
> Projects must check the current selection instead of the initial selection
> --------------------------------------------------------------------------
>
> Key: FORGE-2160
> URL: https://issues.jboss.org/browse/FORGE-2160
> Project: Forge
> Issue Type: Enhancement
> Components: Projects
> Affects Versions: 2.12.3.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 2.12.4.Final
>
>
> After using a UIContext to create a project, the following exception is thrown if the same UIContext is reused:
> {{java.lang.IllegalStateException: A project is required in the current context}}
> It would be nice to use the current selection instead of the initialSelection to lookup a Project in the {{org.jboss.forge.addon.projects.Projects}} class
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the forge-issues
mailing list