Author: rob.stryker(a)jboss.com
Date: 2007-11-19 11:57:52 -0500 (Mon, 19 Nov 2007)
New Revision: 4973
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
Log:
JBIDE-1324 view not listening
Modified:
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java
===================================================================
---
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-11-19
15:55:50 UTC (rev 4972)
+++
trunk/core/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/views/ProjectArchivesView.java 2007-11-19
16:57:52 UTC (rev 4973)
@@ -314,19 +314,17 @@
// we have a changed IArchiveModelNode. Something's different
IArchiveModelNode inputModel = (IArchiveModelNode) packageViewer.getInput();
IArchiveModelNode newModel = (IArchiveModelNode)topChanges[0];
- if( inputModel != null ) {
- if( inputModel.getProjectPath().equals(newModel.getProjectPath()) &&
inputModel != newModel ) {
- // they have the same path but are different objects.
- // Model was probably reloaded from disk and could be completely different
- packageViewer.setInput(newModel);
- packageViewer.expandAll();
- return;
- } else {
- packageViewer.refresh();
- return;
- }
- }
- book.showPage(viewerComposite);
+ if( inputModel == null ||
(inputModel.getProjectPath().equals(newModel.getProjectPath()) && inputModel !=
newModel)) {
+ // they have the same path but are different objects.
+ // Model was probably reloaded from disk and could be completely different
+ book.showPage(viewerComposite);
+ packageViewer.setInput(newModel);
+ packageViewer.expandAll();
+ return;
+ } else {
+ packageViewer.refresh();
+ return;
+ }
} else {
// just refresh whatever is the top changed element (archive probably)
packageViewer.refresh(topChanges[i]);
Show replies by date