Package com.intellij.openapi.actionSystem

Examples of com.intellij.openapi.actionSystem.ActionToolbar


        actionGrp.add(autoScrollAction);
        actionGrp.addSeparator();
        actionGrp.add(cmnActionsMgr.createCollapseAllAction(treeExpanded));
        actionGrp.add(cmnActionsMgr.createExpandAllAction(treeExpanded));

        final ActionToolbar toolbar = actionMgr.createActionToolbar(PLACE, actionGrp, true);
        add(toolbar.getComponent(), BorderLayout.PAGE_START);

        //
        //install popup menu on tree
        //
        final DefaultActionGroup popupGrp = new DefaultActionGroup("POM Manager Popup", true);
View Full Code Here


        //
        //create the action group toolbar and add it to the toolbar panel
        //
        final ActionManager actMgr = ActionManager.getInstance();
        final ActionToolbar toolbar = actMgr.createActionToolbar(PLACE, pActions, true);
        toolbarPanel.add(toolbar.getComponent(), BorderLayout.LINE_START);

        //
        //add repository selection combo box
        //
        repoComboBox = new RepositoriesComboBox(project);
View Full Code Here

    }
    else
    {
      ActionGroup actionGroup = (ActionGroup) ActionManager.getInstance().getAction("revu.issueForm.toolbar");

      ActionToolbar actionToolbar = ActionManager.getInstance()
        .createActionToolbar(ActionPlaces.UNKNOWN, actionGroup, true);
      actionToolbar.setTargetComponent(targetActionComponent);
      toolbar = actionToolbar.getComponent();
    }
  }
View Full Code Here

                handler.getSecondaryElements(), handler, options, true);
          }
        }
    );

    ActionToolbar actionToolbar = ActionManager.getInstance()
        .createActionToolbar(ActionPlaces.USAGE_VIEW_TOOLBAR, toolbar, true);
    actionToolbar.setReservePlaceAutoPopupIcon(false);
    final JComponent toolBar = actionToolbar.getComponent();
    toolBar.setOpaque(false);
    builder.setSettingButton(toolBar);

    popup[0] = builder.createPopup();
    JComponent content = popup[0].getContent();
View Full Code Here

        valueScrollPane.setBorder(null);
        valueScrollPane.setPreferredSize(new Dimension(preferredWidth + 32, Math.max(60, preferredWidth / 4)));

        if (isLargeTextLayout) {
            ActionToolbar actionToolbar = ActionUtil.createActionToolbar("", true,
                    /*new PinUnpinPopupAction(),
                    new CloseAction(),
                    ActionUtil.SEPARATOR,*/
                    new WrapUnwrapContentAction(),
                    new LoadReloadAction()
                    );
            JComponent toolbarComponent = actionToolbar.getComponent();
            actionsPanel.add(toolbarComponent, BorderLayout.WEST);
            infoPanel.setVisible(true);

            DatasetEditorManager dataEditorManager = DatasetEditorManager.getInstance(table.getProject());
            isPinned = dataEditorManager.isValuePreviewPinned();
View Full Code Here

                headerTitle,
                headerIcon,
                headerBackground);
        headerPanel.add(headerForm.getComponent(), BorderLayout.CENTER);

        ActionToolbar actionToolbar = ActionUtil.createActionToolbar(
                "DBNavigator.Place.DataEditor.TextAreaPopup", true,
                new SortAlphabeticallyAction(),
                ActionUtil.SEPARATOR,
                new FirstRecordAction(),
                new PreviousRecordAction(),
                new NextRecordAction(),
                new LastRecordAction());
        actionsPanel.add(actionToolbar.getComponent(), BorderLayout.WEST);


        columnsPanel.setLayout(new BoxLayout(columnsPanel, BoxLayout.Y_AXIS));

        for (Object cell: row.getCells()) {
View Full Code Here

    public CodeCompletionSortingSettingsForm(CodeCompletionSortingSettings settings) {
        super(settings);
        resetChanges();
        sortingItemsList.setCellRenderer(LIST_CELL_RENDERER);
        sortingItemsList.setFont(UIUtil.getLabelFont());
        ActionToolbar actionToolbar = ActionUtil.createActionToolbar("", true,
                new MoveUpAction(sortingItemsList, settings),
                new MoveDownAction(sortingItemsList, settings));
        actionPanel.add(actionToolbar.getComponent(), BorderLayout.WEST);
        registerComponent(enableCheckBox);
        updateBorderTitleForeground(mainPanel);
    }
View Full Code Here

                headerTitle,
                headerIcon,
                headerBackground);
        headerPanel.add(headerForm.getComponent(), BorderLayout.CENTER);

        ActionToolbar actionToolbar = ActionUtil.createActionToolbar(
                "DBNavigator.Place.DataEditor.TextAreaPopup", true,
                new SortAlphabeticallyAction(),
                ActionUtil.SEPARATOR);
        actionsPanel.add(actionToolbar.getComponent(), BorderLayout.WEST);


        columnsPanel.setLayout(new BoxLayout(columnsPanel, BoxLayout.Y_AXIS));

        for (DBColumn column : record.getDataset().getColumns()) {
View Full Code Here

        DatabaseBrowserManager browserManager = DatabaseBrowserManager.getInstance(project);

        displayMode = DatabaseBrowserSettings.getInstance(project).getGeneralSettings().getDisplayMode();
        initBrowserForm();

        ActionToolbar actionToolbar = ActionUtil.createActionToolbar("", true, "DBNavigator.ActionGroup.Browser.Controls");

        actionsPanel.add(actionToolbar.getComponent());

        /*ActionToolbar objectPropertiesActionToolbar = ActionUtil.createActionToolbar("", false, "DBNavigator.ActionGroup.Browser.ObjectProperties");
        closeActionPanel.add(objectPropertiesActionToolbar.getComponent(), BorderLayout.CENTER);*/

        objectPropertiesPanel.setVisible(browserManager.getShowObjectProperties().value());
View Full Code Here

        return connectionsList;
    }

    public ConnectionBundleSettingsForm(ConnectionBundle connectionBundle) {
        super(connectionBundle);
        ActionToolbar actionToolbar = ActionUtil.createActionToolbar(
                "DBNavigator.Connections.Setup", true,
                new AddConnectionAction(connectionsList, connectionBundle),
                new RemoveConnectionAction(connectionsList, connectionBundle),
                new DuplicateConnectionAction(connectionsList, connectionBundle),
                ActionUtil.SEPARATOR,
                new CopyConnectionsAction(connectionsList, connectionBundle),
                new PasteConnectionAction(connectionsList, connectionBundle),
                ActionUtil.SEPARATOR,
                new MoveConnectionUpAction(connectionsList, connectionBundle),
                new MoveConnectionDownAction(connectionsList, connectionBundle),
                new SortConnectionsAction(connectionsList, connectionBundle));
        actionsPanel.add(actionToolbar.getComponent(), BorderLayout.CENTER);

        connectionsList.setModel(new ConnectionListModel(connectionBundle));
        connectionsList.addListSelectionListener(this);
        connectionsList.setCellRenderer(new ConnectionConfigListCellRenderer());
        connectionsList.setFont(com.intellij.util.ui.UIUtil.getLabelFont());
View Full Code Here

TOP

Related Classes of com.intellij.openapi.actionSystem.ActionToolbar

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.