--------------------- PatchSet 2507 Date: 2004/05/05 12:34:00 Author: mentlicher Log: Open the Versioning Explorer when the first versioning filesystem is added into the VersioningRepository. This is a fix of issue #42652. Members: src/org/netbeans/modules/vcscore/versioning/VersioningRepository.java:1.8->1.9 Index: src/org/netbeans/modules/vcscore/versioning/VersioningRepository.java =================================================================== RCS file: /cvs/vcscore/src/org/netbeans/modules/vcscore/versioning/VersioningRepository.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -u -r1.8 -r1.9 --- src/org/netbeans/modules/vcscore/versioning/VersioningRepository.java 30 Jul 2002 11:30:09 -0000 1.8 +++ src/org/netbeans/modules/vcscore/versioning/VersioningRepository.java 5 May 2004 11:34:00 -0000 1.9 @@ -20,6 +20,8 @@ import org.openide.util.Lookup; +import org.netbeans.modules.vcscore.versioning.impl.VersioningExplorer; + /** * * @author Martin Entlicher @@ -80,9 +82,13 @@ public final void addVersioningFileSystem(VersioningFileSystem vfs) { boolean fireIt; + boolean firstFSAdded = false; synchronized (this) { String systemName = vfs.getSystemName(); if (!names.containsKey(systemName)) { + if (verSystems.size() == 0) { + firstFSAdded = true; + } verSystems.add(vfs); verSystemsCopy = new ArrayList(verSystems); // mark as a listener on changes in the file system @@ -94,6 +100,13 @@ } if (fireIt) { fireVerSystem(vfs, true); + } + if (firstFSAdded) { + javax.swing.SwingUtilities.invokeLater(new Runnable() { + public void run() { + VersioningExplorer.getRevisionExplorer().open(); + } + }); } }