Package com.intellij.ui.tabs

Examples of com.intellij.ui.tabs.TabInfo


    }

    private void prepareMessagesTab() {
        JComponent component = getMessagesPanel().getComponent();
        if (resultTabs.getTabCount() == 0 || resultTabs.getTabAt(0).getComponent() != component) {
            TabInfo tabInfo = new TabInfo(component);

            tabInfo.setText("Messages");
            tabInfo.setIcon(Icons.EXEC_RESULT_MESSAGES);
            resultTabs.addTab(tabInfo, 0);

        }

        TabInfo tabInfo = resultTabs.getTabAt(0);
        resultTabs.select(tabInfo, true);
    }
View Full Code Here


    public void removeMessagesTab() {
        ExecutionMessagesPanel executionMessagesPanel = getMessagesPanel();
        JComponent component = executionMessagesPanel.getComponent();
        if (resultTabs.getTabCount() > 0 || resultTabs.getTabAt(0).getComponent() == component) {
            TabInfo tabInfo = resultTabs.getTabAt(0);
            resultTabs.removeTab(tabInfo);
        }

        executionMessagesPanel.reset();
        if (getTabCount() == 0) {
View Full Code Here

        }
    }

    public void addResultTab(ExecutionResult executionResult) {
        JComponent component = executionResult.getResultPanel().getComponent();
        TabInfo tabInfo = new TabInfo(component);
        tabInfo.setObject(executionResult);
        EnvironmentVisibilitySettings visibilitySettings = getEnvironmentSettings(project).getVisibilitySettings();
        if (visibilitySettings.getExecutionResultTabs().value()){
            tabInfo.setTabColor(executionResult.getConnectionHandler().getEnvironmentType().getColor());
        } else {
            tabInfo.setTabColor(null);
        }
        tabInfo.setText(executionResult.getResultName());
        tabInfo.setIcon(executionResult.getResultIcon());
        resultTabs.addTab(tabInfo);
        selectResultTab(tabInfo);
    }
View Full Code Here

    public void removeResultTab(ExecutionResult executionResult) {
        try {
            canScrollToSource = false;
            ExecutionResultForm resultComponent = executionResult.getResultPanel();
            TabInfo tabInfo = resultTabs.findInfo(resultComponent.getComponent());
            if (resultTabs.getTabs().contains(tabInfo)) {
                resultTabs.removeTab(tabInfo);
                if (executionResult instanceof StatementExecutionResult) {
                    StatementExecutionResult statementExecutionResult = (StatementExecutionResult) executionResult;
                    StatementExecutionInput executionInput = statementExecutionResult.getExecutionInput();
View Full Code Here

    }

    public void selectResultTab(ExecutionResult executionResult) {
        executionResult.getResultPanel().setExecutionResult(executionResult);
        JComponent component = executionResult.getResultPanel().getComponent();
        TabInfo tabInfo = resultTabs.findInfo(component);
        if (tabInfo != null) {
            tabInfo.setText(executionResult.getResultName());
            tabInfo.setIcon(executionResult.getResultIcon());
            selectResultTab(tabInfo);
        }
    }
View Full Code Here

        mainPanel.setFocusable(false);
    }

    private void addSettingsPanel(Configuration configuration) {
        JComponent component = configuration.createComponent();
        TabInfo tabInfo = new TabInfo(component);
        tabInfo.setText(configuration.getDisplayName());
        tabInfo.setObject(configuration);
        //tabInfo.setTabColor(GUIUtil.getWindowColor());
        configurationTabs.addTab(tabInfo);
    }
View Full Code Here

    }

    public void focusSettingsEditor(Configuration configuration) {
        JComponent component = configuration.getSettingsEditor().getComponent();
        if (component != null) {
            TabInfo tabInfo = getTabInfo(component);
            configurationTabs.select(tabInfo, true);
        }
    }
View Full Code Here

        return null;
    }

    @NotNull
    public Configuration getActiveSettings() {
        TabInfo tabInfo = configurationTabs.getSelectedInfo();
        if (tabInfo != null) {
            return (Configuration) tabInfo.getObject();
        }
        return getConfiguration();
    }
View Full Code Here

    consoleBuilder.setViewer(true);
    myConsoleView = consoleBuilder.getConsole();
    Disposer.register(parentDisposable, myConsoleView);
    myStatusView = new JstdServerStatusView(parentDisposable);
    JPanel panel = createContent(myConsoleView, myStatusView);
    myTabInfo = new TabInfo(panel);
    myTabInfo.setText("Console");
  }
View Full Code Here

      .addLabeledComponent("&Browser timeout:", addMillisDescription(myBrowserTimeoutSpinner))
      .addLabeledComponent("&Runner mode:", myRunnerModeComboBox)
      .getPanel();
    JPanel result = createResultPanel(form);
    result.setBorder(BorderFactory.createEmptyBorder(GAP, GAP, GAP, GAP));
    myTabInfo = new TabInfo(new JBScrollPane(result));
    myTabInfo.setText("Settings");
    setSettings(JstdServerSettingsManager.loadSettings());
    JstdServerSettingsManager.addListener(new JstdServerSettingsManager.Listener() {
      @Override
      public void onChanged(@NotNull JstdServerSettings settings) {
View Full Code Here

TOP

Related Classes of com.intellij.ui.tabs.TabInfo

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.