Examples of ToolWindowManager


Examples of com.intellij.openapi.wm.ToolWindowManager

  public void initComponent() {
  }

  private void initToolWindow() {
    ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);

    ToolWindow toolWindow = toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, false, ToolWindowAnchor.RIGHT);
    toolWindow.setIcon(IntelliTracIcons.getInstance().getSmallIcon());

    ContentFactory contentFactory = PeerFactory.getInstance().getContentFactory();
    toolWindowForm = new ToolWindowForm();
    Content content = contentFactory.createContent(toolWindowForm.getRootComponent(), null, false);
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager

  public void disposeComponent() {
    unregisterToolWindow();
  }

  private void unregisterToolWindow() {
    ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
    toolWindowManager.unregisterToolWindow(TOOL_WINDOW_ID);
  }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager

    @Override
    public void projectOpened() {
        if (ApplicationManager.getApplication().isHeadlessEnvironment()) return;
        StartupManager.getInstance(myProject).registerPostStartupActivity(new DumbAwareRunnable() {
            public void run() {
                final ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(myProject);
                if (toolWindowManager != null) {
                    myToolWindow = toolWindowManager.registerToolWindow(TOOLWINDOW_ID, true, ToolWindowAnchor.BOTTOM, myProject, true);
                    final Content content = ContentFactory.SERVICE.getInstance().createContent(gameController.getMainPanel(), PuzzlersBundle.message("window.content.name"), false);
                    addContent(content);
                }
            }
        });
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager

    public MongoWindowManager(Project project) {
        this.project = project;
        this.mongoManager = MongoManager.getInstance(project);

        ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        mongoExplorerPanel = new MongoExplorerPanel(project, mongoManager);
        mongoExplorerPanel.installActions();
        Content mongoExplorer = ContentFactory.SERVICE.getInstance().createContent(mongoExplorerPanel, null, false);

        ToolWindow toolMongoExplorerWindow = toolWindowManager.registerToolWindow(MONGO_EXPLORER, false, ToolWindowAnchor.RIGHT);
        toolMongoExplorerWindow.getContentManager().addContent(mongoExplorer);
        toolMongoExplorerWindow.setIcon(MONGO_ICON);
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager

        log.info(Constants.SHOW_TOOL_WINDOW_MESSAGE);

        Project project = e.getData(PlatformDataKeys.PROJECT);

        ToolWindowManager manager = ToolWindowManager.getInstance(project);

        manager.getToolWindow(Constants.TOOL_WINDOW_NAME).show(null);
    }
View Full Code Here

Examples of com.intellij.openapi.wm.ToolWindowManager

        return toolPanel;
    }

    @Nullable
    public static CheckStyleToolWindowPanel panelFor(final Project project) {
        final ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project);
        if (toolWindowManager == null) {
            LOG.debug("Couldn't get tool window manager for project " + project);
            return null;
        }

        final ToolWindow toolWindow = toolWindowManager.getToolWindow(CheckStyleConstants.ID_TOOLWINDOW);
        if (toolWindow == null) {
            LOG.debug("Couldn't get tool window for ID " + CheckStyleConstants.ID_TOOLWINDOW);
            return null;
        }
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowManager

    public ToolWindowTableView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        ToolWindowManager toolWindowManager = (ToolWindowManager) viewContext.get(ToolWindowManager.class);

        JPanel toolsPanel = new JPanel(new TableLayout(new double[][]{{-1}, {-1}}));
        toolsPanel.setBorder(new TitledBorder("ToolWindows"));

        final JTable toolsTable = new JTable(new ToolsTableModel(toolWindowManager));
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowManager

        protected Component initComponent() {
            JPanel panel = new JPanel(new ExtendedTableLayout(new double[][]{{150,3,-1,3, 100},{-1}}));

            Container container = (Container) viewContext.get("windowAnchestor");
            ToolWindowManager toolWindowManager = viewContext.get(ToolWindowManager.class);

            try {
                tests = new JComboBox(new Object[]{
                        new InteractiveUniversalDragTest(container, toolWindowManager),
                        new InteractiveShowToolTest(container, toolWindowManager),
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowManager

    public ToolWindowTableView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        ToolWindowManager toolWindowManager = viewContext.get(ToolWindowManager.class);

        final JTable toolsTable = new JTable(new ToolsTableModel(toolWindowManager));
        toolsTable.getTableHeader().setReorderingAllowed(false);
        toolsTable.getSelectionModel().addListSelectionListener(
                new ContextPutListSelectionListener(viewContext, ToolWindow.class, toolsTable, -1)
View Full Code Here

Examples of org.noos.xing.mydoggy.ToolWindowManager

    public ToolWindowsTableView(ViewContext viewContext) {
        super(viewContext);
    }

    protected Component initComponent() {
        ToolWindowManager toolWindowManager = viewContext.get(ToolWindowManager.class);

        final JTable toolsTable = new JTable(new ToolWindowsTableModel(toolWindowManager));

        toolsTable.getTableHeader().setReorderingAllowed(false);
        toolsTable.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.