Package com.intellij.ui.content

Examples of com.intellij.ui.content.Content


        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


public class JsLintToolWindowFactory implements ToolWindowFactory{

    public void createToolWindowContent(@NotNull final Project project,@NotNull final ToolWindow toolWindow) {
        JsLinkToolWindow window = new JsLinkToolWindow();
        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(window.getRootComponent(), "JsLintvalidator", false);
        toolWindow.getContentManager().addContent(content);
    }
View Full Code Here

        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

        contentManager.removeAllContents(true);

        for (UsagesRequestValues value : values)
        {
            Vector<UsageMapping> usageMappings = RobotlegsMappingUtils.getMappingByClassAndFunctionProject(project, value.getClassQName(), value.getFunctions());
            Content content = createTable(project, contentManager, usageMappings, value.getTabName());
        }
    }
View Full Code Here

            JBScrollPane jbScrollPane = new JBScrollPane(table);
            jbScrollPane.getVerticalScrollBar().setUnitIncrement(16);

            jPanel.add(jbScrollPane, BorderLayout.CENTER);

            Content content = ContentFactory.SERVICE.getInstance().createContent(jPanel, tableName, false);
            contentManager.addContent(content);

            table.addMouseListener(new MyMouseAdapter(table, dataRows, project));
            table.setEnableAntialiasing(true);
View Full Code Here

    public MyCloseAction() {
      super(CommonBundle.message("close.action.name"), null, IconLoader.getIcon("/actions/cancel.png"));
    }

    public void actionPerformed(AnActionEvent e) {
      Content content = myContentManager.getContent(PanelWithActionsAndCloseButton.this);
      if (content != null) {
        myContentManager.removeContent(content, true);
      }
    }
View Full Code Here

    @Override
    public void createToolWindowContent(Project project, ToolWindow toolWindow) {
        myToolWindow = toolWindow;
        ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
        Content content = contentFactory.createContent(myToolWindowContent, "", false);
        toolWindow.getContentManager().addContent(content);
    }
View Full Code Here

        }

        final ToolWindow toolWindow = ToolWindowManager.getInstance(
                project).getToolWindow(CheckStyleConstants.ID_TOOLWINDOW);

        final Content content = toolWindow.getContentManager().getContent(0);
        if (content != null) {
            final CheckStyleToolWindowPanel panel = (CheckStyleToolWindowPanel) content.getComponent();
            panel.expandTree();
        }
    }
View Full Code Here

        }

        final ToolWindow toolWindow = ToolWindowManager.getInstance(
                project).getToolWindow(CheckStyleConstants.ID_TOOLWINDOW);

        final Content content = toolWindow.getContentManager().getContent(0);
        if (content != null) {
            final CheckStyleToolWindowPanel panel = (CheckStyleToolWindowPanel) content.getComponent();
            return panel.isDisplayingErrors();
        }

        return false;
    }
View Full Code Here

        }

        final ToolWindow toolWindow = ToolWindowManager.getInstance(
                project).getToolWindow(CheckStyleConstants.ID_TOOLWINDOW);

        final Content content = toolWindow.getContentManager().getContent(0);
        if (content != null) {
            final CheckStyleToolWindowPanel panel = (CheckStyleToolWindowPanel) content.getComponent();
            panel.setDisplayingErrors(selected);
            panel.filterDisplayedResults();
        }
    }
View Full Code Here

TOP

Related Classes of com.intellij.ui.content.Content

Copyright © 2018 www.massapicom. 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.