Examples of TabInfo


Examples of com.gwtplatform.mvp.client.annotations.TabInfo

      String ginjectorClassName, JClassType ginjectorClass)
      throws UnableToCompleteException {
    // Look for the title function in the parent presenter
    TabInfoFunctionDescription result = null;
    for (JMethod method : presenterClass.getMethods()) {
      TabInfo annotation = method.getAnnotation(TabInfo.class);
      if (annotation != null) {
        if (result != null) {
          logger.log(TreeLogger.ERROR, "At least two methods in presenter "
              + presenterClassName + "are annotated with @"
              + TabInfo.class.getSimpleName() + ". This is illegal.");
View Full Code Here

Examples of com.gwtplatform.mvp.client.annotations.TabInfo

    @Override
    void initSubclass(JClassType proxyInterface) throws UnableToCompleteException {
        tabInfoMethod = presenterInspector.findTabInfoMethod();

        TabInfo tabInfoAnnotation = proxyInterface.getAnnotation(TabInfo.class);
        ensureExactlyOneTabInfoAnnotation(tabInfoAnnotation);

        tabPriority = null;
        tabLabel = null;
        if (tabInfoMethod == null) {
            findTabPriority(tabInfoAnnotation);
            findTabLabel(tabInfoAnnotation);
            targetNameToken = tabInfoAnnotation.nameToken();
            tabContainerClassName = tabInfoAnnotation.container().getCanonicalName();
        } else {
            targetNameToken = tabInfoMethod.getNameToken();
            tabContainerClassName = tabInfoMethod.getTabContainerClassName();
        }
        ensureNameTokenIsValid();
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

import java.util.List;

public class EditorUtil {
    public static void selectEditor(DatabaseEditableObjectFile databaseFile, FileEditor fileEditor) {
        JBTabsImpl tabs = getEditorTabComponent(databaseFile);
        TabInfo tabInfo = getEditorTabInfo(tabs, fileEditor);
        if (tabInfo != null) {
            tabs.getJBTabs().select(tabInfo, true);
        }
    }
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        }
    }

    public static void setEditorIcon(DatabaseEditableObjectFile databaseFile, FileEditor fileEditor, Icon icon) {
        JBTabsImpl tabs = getEditorTabComponent(databaseFile);
        TabInfo tabInfo = getEditorTabInfo(tabs, fileEditor);
        if (tabInfo != null) {
            tabInfo.setIcon(icon);
        }
    }
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        ConnectionManager connectionManager = ConnectionManager.getInstance(project);
        for (ConnectionBundle connectionBundle : connectionManager.getConnectionBundles()) {
            for (ConnectionHandler connectionHandler: connectionBundle.getConnectionHandlers()) {
                SimpleBrowserForm browserForm = new SimpleBrowserForm(connectionHandler);
                JComponent component = browserForm.getComponent();
                TabInfo tabInfo = new TabInfo(component);
                tabInfo.setText(connectionHandler.getName());
                tabInfo.setObject(browserForm);
                //tabInfo.setIcon(connectionHandler.getIcon());
                connectionTabs.addTab(tabInfo);

                EnvironmentType environmentType = connectionHandler.getEnvironmentType();
                tabInfo.setTabColor(environmentType.getColor());
            }
        }
        if (connectionTabs.getTabCount() == 0) {
            mainPanel.removeAll();
            mainPanel.add(new JBList(new ArrayList()), BorderLayout.CENTER);
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        return browserForm== null ? null : browserForm.getBrowserTree();
    }

    @Nullable
    public DatabaseBrowserTree getActiveBrowserTree() {
        TabInfo tabInfo = connectionTabs.getSelectedInfo();
        if (tabInfo != null) {
            SimpleBrowserForm browserForm = (SimpleBrowserForm) tabInfo.getObject();
            return browserForm.getBrowserTree();
        }
        return null;
    }
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        addSettingsPanel(getConfiguration().getPSQLCodeStyleSettings(), Icons.FILE_PLSQL);
    }

    private void addSettingsPanel(Configuration configuration, Icon icon) {
        JComponent component = configuration.createComponent();
        TabInfo tabInfo = new TabInfo(component);
        tabInfo.setText(configuration.getDisplayName());
        tabInfo.setObject(configuration);
        tabInfo.setIcon(icon);
        languageTabs.addTab(tabInfo);
    }
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        super(connectionSettings);
        ConnectionDatabaseSettings databaseSettings = connectionSettings.getDatabaseSettings();
        configTabbedPane = new TabbedPane(databaseSettings.getProject());
        mainPanel.add(configTabbedPane, BorderLayout.CENTER);

        TabInfo connectionTabInfo = new TabInfo(databaseSettings.createComponent());
        connectionTabInfo.setText("Connection");
        configTabbedPane.addTab(connectionTabInfo);

        ConnectionDetailSettings detailSettings = connectionSettings.getDetailSettings();
        TabInfo detailsTabInfo = new TabInfo(detailSettings.createComponent());
        detailsTabInfo.setText("Details");
        configTabbedPane.addTab(detailsTabInfo);

        ConnectionFilterSettings filterSettings = connectionSettings.getFilterSettings();
        TabInfo filtersTabInfo = new TabInfo(filterSettings.createComponent());
        filtersTabInfo.setText("Filters");
        configTabbedPane.addTab(filtersTabInfo);

        String connectionId = connectionSettings.getId();
        ConnectionDetailSettingsForm detailSettingsForm = detailSettings.getSettingsEditor();
        ConnectionFilterSettingsForm filterSettingsForm = filterSettings.getSettingsEditor();
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

        return -1;
    }
   
   
    public static String getSelectedTabName(TabbedPane tabbedPane) {
        TabInfo selectedInfo = tabbedPane.getSelectedInfo();
        return selectedInfo == null ? null : selectedInfo.getText();
    }
View Full Code Here

Examples of com.intellij.ui.tabs.TabInfo

    public TabbedPane(@NotNull Project project) {
        super(project);
    }

    public void select(JComponent component, boolean requestFocus) {
        TabInfo tabInfo = findInfo(component);
        if (tabInfo != null) {
            select(tabInfo, requestFocus);
        }
    }
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.