[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3627) Exception while creating second war archive for Seam war project.

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Sun Jan 25 17:40:44 EST 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12449633#action_12449633 ] 

Snjezana Peco commented on JBIDE-3627:
--------------------------------------

The problem with selection is caused by the following code :

ArchivesActionProvider.addNewPackageActions():
//workaround for JBIDE-3016
if( manager.getItems().length > 0) {
      return;

}
for( int i = 0; i < newPackageActions.length; i++ ) {
	NewArchiveAction action = newPackageActions[i];
	ActionWrapper wrapped = new ActionWrapper(action);
	wrapped.selectionChanged(getSelection());
	manager.add(wrapped);
}

If the menu manager contains items, the method does nothing and the selection isn't changed.
The correct fix would be as follows:

//if( manager.getItems().length > 0) {
      //return;
	manager.removeAll();
//}
...

This code would remove items from the menu manager, create them again and change selection.

I have committed the changes to the trunk. Would you like me to commit them to CR2?

> Exception while creating second war archive for Seam war project.
> -----------------------------------------------------------------
>
>                 Key: JBIDE-3627
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3627
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Archives
>    Affects Versions: 3.0.0.CR2
>         Environment: WindowsXP SP2
> JBoss Developer Studio
> Version: 2.0.0.CR2
> Build id: jbdevstudio-eap-win32-2.0.0.CR2-N200901221952
> JRE 1.5_08
>            Reporter: Aliaksey Nis
>            Assignee: Snjezana Peco
>             Fix For: 3.0.0.CR2
>
>         Attachments: ArchiveWar.txt
>
>
> EXECUTE: Create Seam 2FP war project.
> EXECUTE: Open archive view, select Seam project in Package explorer.
> EXECUTE: New > New Archive>War. Right click. Left options unchanged, press Finish.
> ASSERT: Archive appears.
> EXECUTE: Select archive in Archives view. Select fileset in view. Press "edit fileset".
> EXECUTE: When fileset menu appears - press Cancel.
> EXECUTE: Right click on Seam project name in Archives view. New > New Archive>War. 
> FAILURE: Exception thrown. Wizard don't appears.
> Error log attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list