// Path: src/com/jetbrains/crucible/utils/CrucibleBundle.java
// public class CrucibleBundle {
//     private static Reference<ResourceBundle> ourBundle;
// 
//     @NonNls
//     private static final String BUNDLE = "com.jetbrains.crucible.utils.CrucibleBundle";
// 
//     private CrucibleBundle() {}
// 
//     public static String message(@PropertyKey(resourceBundle = BUNDLE)String key, Object... params) {
//         return AbstractBundle.message(getBundle(), key, params);
//     }
// 
//     private static ResourceBundle getBundle() {
//         ResourceBundle bundle = null;
//         if (ourBundle != null) bundle = ourBundle.get();
//         if (bundle == null) {
//             bundle = ResourceBundle.getBundle(BUNDLE);
//             ourBundle = new SoftReference<ResourceBundle>(bundle);
//         }
//         return bundle;
//     }
// }


import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;
import com.intellij.ui.content.Content;
import com.intellij.ui.content.ContentFactory;
import com.intellij.ui.content.ContentManager;
import com.jetbrains.crucible.utils.CrucibleBundle;
package com.jetbrains.crucible.ui.toolWindow;


/**
 * User: ktisha
 */
public class CrucibleToolWindowFactory implements ToolWindowFactory, DumbAware {

  @Override
  public void createToolWindowContent(Project project, ToolWindow toolWindow) {
    final ContentManager contentManager = toolWindow.getContentManager();
    final CruciblePanel cruciblePanel = new CruciblePanel(project);
    final Content content = ContentFactory.SERVICE.getInstance().
// Path: src/com/jetbrains/crucible/utils/CrucibleBundle.java
// public class CrucibleBundle {
//     private static Reference<ResourceBundle> ourBundle;
// 
//     @NonNls
//     private static final String BUNDLE = "com.jetbrains.crucible.utils.CrucibleBundle";
// 
//     private CrucibleBundle() {}
// 
//     public static String message(@PropertyKey(resourceBundle = BUNDLE)String key, Object... params) {
//         return AbstractBundle.message(getBundle(), key, params);
//     }
// 
//     private static ResourceBundle getBundle() {
//         ResourceBundle bundle = null;
//         if (ourBundle != null) bundle = ourBundle.get();
//         if (bundle == null) {
//             bundle = ResourceBundle.getBundle(BUNDLE);
//             ourBundle = new SoftReference<ResourceBundle>(bundle);
//         }
//         return bundle;
//     }
// }


// Path: src/com/jetbrains/crucible/ui/toolWindow/CrucibleToolWindowFactory.java
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory;
import com.intellij.ui.content.Content;
import com.intellij.ui.content.ContentFactory;
import com.intellij.ui.content.ContentManager;
import com.jetbrains.crucible.utils.CrucibleBundle;

package com.jetbrains.crucible.ui.toolWindow;


/**
 * User: ktisha
 */
public class CrucibleToolWindowFactory implements ToolWindowFactory, DumbAware {

  @Override
  public void createToolWindowContent(Project project, ToolWindow toolWindow) {
    final ContentManager contentManager = toolWindow.getContentManager();
    final CruciblePanel cruciblePanel = new CruciblePanel(project);
    final Content content = ContentFactory.SERVICE.getInstance().
      createContent(cruciblePanel, CrucibleBundle.message("crucible.main.name"), false);