55import com .intellij .openapi .wm .ToolWindow ;
66import com .intellij .openapi .wm .ToolWindowAnchor ;
77import com .intellij .openapi .wm .ToolWindowManager ;
8- import com .intellij .openapi .wm .ToolWindowType ;
98import com .intellij .ui .content .Content ;
109
1110import javax .swing .*;
1211import java .util .ArrayList ;
13- import java .util .HashMap ;
1412
1513// The CodeTimeMachine represents the plugin window per project
1614// and contains one ToolWindow.
@@ -27,7 +25,7 @@ public CodeTimeMachine(Project project)
2725
2826 gitHelper = new GitHelper (project );
2927
30- toolWindow = ToolWindowManager .getInstance (project ).registerToolWindow ("Code Time Machine " , true /*Can close tabs?*/ , ToolWindowAnchor .RIGHT );
28+ toolWindow = ToolWindowManager .getInstance (project ).registerToolWindow ("Code Time Machine " , false /*Can close tabs?*/ , ToolWindowAnchor .RIGHT );
3129 ImageIcon icon = new ImageIcon (getClass ().getResource ("/images/appIcon.png" ));
3230 toolWindow .setIcon (icon );
3331 toolWindow .setAutoHide (false );
@@ -47,7 +45,6 @@ void addNewContent(TTMSingleFileView singleView, String contentName)
4745 {
4846 Content ttm_content = toolWindow .getContentManager ().getFactory ().createContent (singleView .getComponent (), contentName , true );
4947 toolWindow .getContentManager ().addContent (ttm_content );
50- //toolWindow.setAvailable(true,null);
5148 singleViews .add (singleView );
5249 }
5350
0 commit comments