set correct tooltip when a project is added
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 17 May 2008 17:49:45 +0000 (17:49 +0000)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 17 May 2008 17:49:45 +0000 (17:49 +0000)
git-svn-id: http://trooper/svn/projects/jSite/trunk@909 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/jsite/gui/MainWindow.java

index 843fd1f..636193c 100644 (file)
@@ -247,7 +247,9 @@ public class MainWindow extends JFrame implements WindowListener, I18nable, Prop
         */
        void addProject(Project project) {
                ProjectPanel projectPanel = new ProjectPanel(swingInterface, project);
+               int newTabIndex = projectPane.getTabCount();
                projectPane.add(project.getName(), projectPanel);
+               projectPane.setToolTipTextAt(newTabIndex, project.getDescription());
                project.addPropertyChangeListener(this);
        }