Search in sources :

Example 1 with ListSelectionListener

use of javax.swing.event.ListSelectionListener in project pcgen by PCGen.

the class CampaignPanel method setupDisplay.

/**
	 * @see pcgen.gui2.converter.panel.ConvertSubPanel#setupDisplay(javax.swing.JPanel, pcgen.cdom.base.CDOMObject)
	 */
@Override
public void setupDisplay(JPanel panel, final CDOMObject pc) {
    panel.setLayout(new GridBagLayout());
    JLabel introLabel = new JLabel("Please select the Campaign(s) to Convert:");
    GridBagConstraints gbc = new GridBagConstraints();
    Utility.buildRelativeConstraints(gbc, GridBagConstraints.REMAINDER, 1, 1.0, 0, GridBagConstraints.HORIZONTAL, GridBagConstraints.NORTHWEST);
    gbc.insets = new Insets(25, 25, 5, 25);
    panel.add(introLabel, gbc);
    final CampaignTableModel model = new CampaignTableModel(gameModeCampaigns, folderName);
    final JTable table = new JTable(model) {

        //Implement table cell tool tips.
        @Override
        public String getToolTipText(MouseEvent e) {
            java.awt.Point p = e.getPoint();
            int rowIndex = rowAtPoint(p);
            int colIndex = columnAtPoint(p);
            String tip = String.valueOf(getValueAt(rowIndex, colIndex));
            return tip;
        }
    };
    table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent event) {
            pc.removeListFor(ListKey.CAMPAIGN);
            int[] selRows = table.getSelectedRows();
            if (selRows.length == 0) {
                saveSourceSelection(pc);
                fireProgressEvent(ProgressEvent.NOT_ALLOWED);
            } else {
                for (int row : selRows) {
                    Campaign selCampaign = (Campaign) model.getValueAt(row, 0);
                    pc.addToListFor(ListKey.CAMPAIGN, selCampaign);
                }
                saveSourceSelection(pc);
                fireProgressEvent(ProgressEvent.ALLOWED);
            }
        }
    });
    JScrollPane listScroller = new JScrollPane(table);
    Utility.buildRelativeConstraints(gbc, GridBagConstraints.REMAINDER, GridBagConstraints.REMAINDER, 1.0, 1.0);
    gbc.fill = GridBagConstraints.BOTH;
    panel.add(listScroller, gbc);
    initSourceSelection(model, table);
}
Also used : JScrollPane(javax.swing.JScrollPane) GridBagConstraints(java.awt.GridBagConstraints) Insets(java.awt.Insets) MouseEvent(java.awt.event.MouseEvent) GridBagLayout(java.awt.GridBagLayout) ListSelectionEvent(javax.swing.event.ListSelectionEvent) JLabel(javax.swing.JLabel) ListSelectionListener(javax.swing.event.ListSelectionListener) Campaign(pcgen.core.Campaign) JTable(javax.swing.JTable)

Example 2 with ListSelectionListener

use of javax.swing.event.ListSelectionListener in project pcgen by PCGen.

the class ExperienceAdjusterView method initComponents.

/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    jPanel5 = new javax.swing.JPanel();
    panelChar = new javax.swing.JPanel();
    characterList = new javax.swing.JList();
    spCharLabel = new javax.swing.JLabel();
    jPanel1 = new javax.swing.JPanel();
    jLabel4 = new javax.swing.JLabel();
    enemyList = new javax.swing.JList();
    jPanel6 = new javax.swing.JPanel();
    jPanel7 = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    experienceToAdd = new javax.swing.JTextField(6);
    addExperienceToCharButton = new javax.swing.JButton();
    jPanel8 = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    experienceFromCombat = new javax.swing.JLabel();
    experienceMultNameLabel = new javax.swing.JLabel();
    experienceMultSlider = new javax.swing.JSlider();
    addExperienceToPartyButton = new javax.swing.JButton();
    experienceMultLabel = new javax.swing.JLabel();
    adjustCRButton = new javax.swing.JButton();
    addEnemyButton = new javax.swing.JButton();
    removeEnemyButton = new javax.swing.JButton();
    scrollPaneChar = new JScrollPane(characterList);
    scrollPaneEnemy = new JScrollPane(enemyList);
    setLayout(new GridLayout(0, 1));
    //$NON-NLS-1$
    jPanel5.setBorder(new TitledBorder(LanguageBundle.getString("in_plugin_xp_char")));
    jPanel5.setLayout(new java.awt.GridLayout(1, 0));
    panelChar.setLayout(new java.awt.BorderLayout());
    //$NON-NLS-1$
    spCharLabel.setText(LanguageBundle.getString("in_plugin_xp_nameLvlXp"));
    panelChar.add(spCharLabel, BorderLayout.NORTH);
    panelChar.add(scrollPaneChar, java.awt.BorderLayout.CENTER);
    jPanel5.add(panelChar);
    jPanel1.setLayout(new java.awt.BorderLayout());
    //$NON-NLS-1$
    jLabel4.setText(LanguageBundle.getString("in_plugin_xp_nameCr"));
    jPanel1.add(jLabel4, java.awt.BorderLayout.NORTH);
    jPanel1.add(scrollPaneEnemy, java.awt.BorderLayout.CENTER);
    add(jPanel5);
    jPanel6.setLayout(new java.awt.GridLayout(1, 0));
    //$NON-NLS-1$
    jPanel6.setBorder(new TitledBorder(LanguageBundle.getString("in_plugin_xp_enemies")));
    jPanel6.add(jPanel1);
    jPanel7.setLayout(new java.awt.GridBagLayout());
    // the button is after to allow the use of Tab after entering a value then pressing the button
    //$NON-NLS-1$
    jLabel7.setText(LanguageBundle.getString("in_plugin_xp_xpTo"));
    //$NON-NLS-1$
    addExperienceToCharButton.setText(LanguageBundle.getString("in_plugin_xp_selectedChar"));
    addExperienceToCharButton.setEnabled(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    //$NON-NLS-1$
    jPanel7.add(new JLabel(LanguageBundle.getString("in_plugin_xp_add")), gridBagConstraints);
    jPanel7.add(experienceToAdd, gridBagConstraints);
    jPanel7.add(jLabel7, gridBagConstraints);
    jPanel7.add(addExperienceToCharButton, gridBagConstraints);
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
    // add an empty horizontal glue like panel
    jPanel7.add(new JPanel(), gridBagConstraints);
    // Updates the button if there is a selected character
    characterList.addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (!e.getValueIsAdjusting()) {
                addExperienceToCharButton.setEnabled(!characterList.isSelectionEmpty());
            }
        }
    });
    jPanel7.setBorder(BorderFactory.createEmptyBorder(0, BORDER_SIZE, 0, 0));
    jPanel5.add(jPanel7);
    jPanel8.setLayout(new java.awt.GridBagLayout());
    //$NON-NLS-1$
    jLabel5.setText(LanguageBundle.getString("in_plugin_xp_xpFromCombat"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridwidth = 2;
    jPanel8.add(jLabel5, gridBagConstraints);
    experienceFromCombat.setText(Integer.toString(0));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(experienceFromCombat, gridBagConstraints);
    //$NON-NLS-1$
    experienceMultNameLabel.setText(LanguageBundle.getString("in_plugin_xp_normal"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.fill = GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(experienceMultNameLabel, gridBagConstraints);
    experienceMultSlider.setMaximum(10);
    experienceMultSlider.setMinimum(-5);
    experienceMultSlider.setValue(0);
    // TODO the false value (the slider's) should not be visible, only the real one should
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridheight = 2;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    jPanel8.add(experienceMultSlider, gridBagConstraints);
    experienceMultSlider.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent e) {
            double realValue = getSliderRealValue();
            if (CoreUtility.doublesEqual(realValue, 0.5)) {
                getExperienceMultNameLabel().setText(//$NON-NLS-1$
                LanguageBundle.getString("in_plugin_xp_half"));
            } else if (realValue <= 0.7) {
                getExperienceMultNameLabel().setText(//$NON-NLS-1$
                LanguageBundle.getString("in_plugin_xp_easier"));
            } else if ((realValue > 0.7) && (realValue < 1.5)) {
                getExperienceMultNameLabel().setText(//$NON-NLS-1$
                LanguageBundle.getString("in_plugin_xp_normal"));
            } else if (realValue >= 1.5) {
                getExperienceMultNameLabel().setText(//$NON-NLS-1$
                LanguageBundle.getString("in_plugin_xp_harder"));
            }
            if (CoreUtility.doublesEqual(realValue, 2)) {
                getExperienceMultNameLabel().setText(//$NON-NLS-1$
                LanguageBundle.getString("in_plugin_xp_twice"));
            }
            getExperienceMultLabel().setText(LanguageBundle.getPrettyMultiplier(realValue));
            model.setMultiplier(realValue);
        }
    });
    //$NON-NLS-1$
    addExperienceToPartyButton.setText(LanguageBundle.getString("in_plugin_xp_addXpToParty"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(addExperienceToPartyButton, gridBagConstraints);
    experienceMultLabel.setText(LanguageBundle.getPrettyMultiplier(1.0d));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(experienceMultLabel, gridBagConstraints);
    //$NON-NLS-1$
    adjustCRButton.setText(LanguageBundle.getString("in_plugin_xp_adjustCr"));
    adjustCRButton.setEnabled(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(adjustCRButton, gridBagConstraints);
    //$NON-NLS-1$
    addEnemyButton.setText(LanguageBundle.getString("in_plugin_xp_addEnemy"));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.insets = new java.awt.Insets(12, 0, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(addEnemyButton, gridBagConstraints);
    //$NON-NLS-1$
    removeEnemyButton.setText(LanguageBundle.getString("in_plugin_xp_removeEnemy"));
    removeEnemyButton.setEnabled(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.insets = new java.awt.Insets(12, BORDER_SIZE, 0, 0);
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    jPanel8.add(removeEnemyButton, gridBagConstraints);
    // Update buttons on selection change
    enemyList.addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (!e.getValueIsAdjusting()) {
                adjustCRButton.setEnabled(!enemyList.isSelectionEmpty());
                removeEnemyButton.setEnabled(!enemyList.isSelectionEmpty());
            }
        }
    });
    jPanel8.setBorder(BorderFactory.createEmptyBorder(0, BORDER_SIZE, 0, 0));
    jPanel6.add(jPanel8);
    add(jPanel6);
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) JButton(javax.swing.JButton) JTextField(javax.swing.JTextField) JList(javax.swing.JList) ListSelectionEvent(javax.swing.event.ListSelectionEvent) JLabel(javax.swing.JLabel) GridBagConstraints(java.awt.GridBagConstraints) TitledBorder(javax.swing.border.TitledBorder) ListSelectionListener(javax.swing.event.ListSelectionListener) GridLayout(java.awt.GridLayout) GridLayout(java.awt.GridLayout) ChangeEvent(javax.swing.event.ChangeEvent) JLabel(javax.swing.JLabel) ChangeListener(javax.swing.event.ChangeListener) BorderLayout(java.awt.BorderLayout) JPanel(javax.swing.JPanel)

Example 3 with ListSelectionListener

use of javax.swing.event.ListSelectionListener in project intellij-community by JetBrains.

the class PythonSdkDetailsDialog method addListeners.

private void addListeners() {
    myListener = new SdkModel.Listener() {

        @Override
        public void sdkAdded(Sdk sdk) {
        }

        @Override
        public void beforeSdkRemove(Sdk sdk) {
        }

        @Override
        public void sdkChanged(Sdk sdk, String previousName) {
            refreshSdkList();
        }

        @Override
        public void sdkHomeSelected(Sdk sdk, String newSdkHome) {
        }
    };
    myProjectSdksModel.addListener(myListener);
    mySdkList.addListSelectionListener(new ListSelectionListener() {

        public void valueChanged(ListSelectionEvent event) {
            updateOkButton();
        }
    });
}
Also used : SdkModel(com.intellij.openapi.projectRoots.SdkModel) ListSelectionEvent(javax.swing.event.ListSelectionEvent) Sdk(com.intellij.openapi.projectRoots.Sdk) ListSelectionListener(javax.swing.event.ListSelectionListener)

Example 4 with ListSelectionListener

use of javax.swing.event.ListSelectionListener in project intellij-community by JetBrains.

the class AbstractTableView method setToolbarActions.

public final void setToolbarActions(final AnAction... actions) {
    final DefaultActionGroup actionGroup = new DefaultActionGroup();
    for (final AnAction action : actions) {
        actionGroup.add(action);
    }
    if (getHelpId() != null) {
        actionGroup.add(Separator.getInstance());
        actionGroup.add(new ContextHelpAction(getHelpId()));
    }
    final ActionManager actionManager = ActionManager.getInstance();
    final ToolbarPosition position = getToolbarPosition();
    final ActionToolbar myActionToolbar = actionManager.createActionToolbar(ActionPlaces.PROJECT_VIEW_TOOLBAR, actionGroup, position == ToolbarPosition.TOP || position == ToolbarPosition.BOTTOM);
    myActionToolbar.setTargetComponent(myInnerPanel);
    final JComponent toolbarComponent = myActionToolbar.getComponent();
    final MatteBorder matteBorder = BorderFactory.createMatteBorder(0, 0, position == ToolbarPosition.TOP ? 1 : 0, 0, JBColor.DARK_GRAY);
    toolbarComponent.setBorder(BorderFactory.createCompoundBorder(matteBorder, toolbarComponent.getBorder()));
    getTable().getSelectionModel().addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            myActionToolbar.updateActionsImmediately();
        }
    });
    add(toolbarComponent, position.getPosition());
}
Also used : MatteBorder(javax.swing.border.MatteBorder) ListSelectionEvent(javax.swing.event.ListSelectionEvent) ContextHelpAction(com.intellij.ide.actions.ContextHelpAction) ListSelectionListener(javax.swing.event.ListSelectionListener)

Example 5 with ListSelectionListener

use of javax.swing.event.ListSelectionListener in project intellij-community by JetBrains.

the class ToBeMergedDialog method initUI.

private void initUI() {
    final ListSelectionListener selectionListener = e -> {
        List<SvnChangeList> changeLists = myRevisionsList.getSelectedObjects();
        myAlreadyMerged.clear();
        for (SvnChangeList changeList : changeLists) {
            myAlreadyMerged.addAll(getAlreadyMergedPaths(changeList));
        }
        myRepositoryChangesBrowser.setChangesToDisplay(collectChanges(changeLists, false));
        mySplitter.doLayout();
        myRepositoryChangesBrowser.repaint();
    };
    final MyListCellRenderer listCellRenderer = new MyListCellRenderer();
    myRevisionsList = new TableView<SvnChangeList>() {

        @Override
        public TableCellRenderer getCellRenderer(int row, int column) {
            return listCellRenderer;
        }

        @Override
        public void valueChanged(ListSelectionEvent e) {
            super.valueChanged(e);
            selectionListener.valueChanged(e);
        }
    };
    myRevisionsList.setExpandableItemsEnabled(false);
    new TableViewSpeedSearch<SvnChangeList>(myRevisionsList) {

        @Override
        protected String getItemText(@NotNull SvnChangeList element) {
            return element.getComment();
        }
    };
    myRevisionsList.setModelAndUpdateColumns(myRevisionsModel);
    myRevisionsList.setTableHeader(null);
    myRevisionsList.setShowGrid(false);
    final AbstractBaseTagMouseListener mouseListener = new AbstractBaseTagMouseListener() {

        @Override
        public Object getTagAt(@NotNull MouseEvent e) {
            JTable table = (JTable) e.getSource();
            int row = table.rowAtPoint(e.getPoint());
            int column = table.columnAtPoint(e.getPoint());
            if (row == -1 || column == -1)
                return null;
            listCellRenderer.customizeCellRenderer(table, table.getValueAt(row, column), table.isRowSelected(row));
            return listCellRenderer.myRenderer.getFragmentTagAt(e.getPoint().x - table.getCellRect(row, column, false).x);
        }
    };
    mouseListener.installOn(myRevisionsList);
    myMore100Action = new MoreXAction(100);
    myMore500Action = new MoreXAction(500);
    BorderLayoutPanel panel = JBUI.Panels.simplePanel().addToCenter(ScrollPaneFactory.createScrollPane(myRevisionsList)).addToTop(createToolbar().getComponent());
    mySplitter = new Splitter(false, 0.7f);
    mySplitter.setFirstComponent(panel);
    myRepositoryChangesBrowser = new RepositoryChangesBrowser(myMergeContext.getProject(), Collections.<SvnChangeList>emptyList(), emptyList(), null);
    myRepositoryChangesBrowser.getDiffAction().registerCustomShortcutSet(myRepositoryChangesBrowser.getDiffAction().getShortcutSet(), myRevisionsList);
    setChangesDecorator();
    mySplitter.setSecondComponent(myRepositoryChangesBrowser);
    mySplitter.setDividerWidth(2);
    addRevisionListListeners();
    myPanel.add(mySplitter, BorderLayout.CENTER);
}
Also used : UIUtil(com.intellij.util.ui.UIUtil) AllIcons(com.intellij.icons.AllIcons) MessageType(com.intellij.openapi.ui.MessageType) CommittedChangesTreeBrowser.collectChanges(com.intellij.openapi.vcs.changes.committed.CommittedChangesTreeBrowser.collectChanges) Change(com.intellij.openapi.vcs.changes.Change) MergeChecker(org.jetbrains.idea.svn.mergeinfo.MergeChecker) ColumnInfo(com.intellij.util.ui.ColumnInfo) MergeCalculatorTask.getBunchSize(org.jetbrains.idea.svn.integrate.MergeCalculatorTask.getBunchSize) TableCellRenderer(javax.swing.table.TableCellRenderer) Collections.singletonList(java.util.Collections.singletonList) Task(com.intellij.openapi.progress.Task) BorderLayoutPanel(com.intellij.util.ui.components.BorderLayoutPanel) JBUI(com.intellij.util.ui.JBUI) Collections.synchronizedMap(java.util.Collections.synchronizedMap) CommittedChangeListRenderer(com.intellij.openapi.vcs.changes.committed.CommittedChangeListRenderer) VcsException(com.intellij.openapi.vcs.VcsException) ListSelectionEvent(javax.swing.event.ListSelectionEvent) ContainerUtilRt.newHashSet(com.intellij.util.containers.ContainerUtilRt.newHashSet) TableView(com.intellij.ui.table.TableView) KeyEvent(java.awt.event.KeyEvent) com.intellij.ui(com.intellij.ui) Collectors(java.util.stream.Collectors) ProgressIndicator(com.intellij.openapi.progress.ProgressIndicator) SvnChangeList(org.jetbrains.idea.svn.history.SvnChangeList) List(java.util.List) ApplicationManager(com.intellij.openapi.application.ApplicationManager) NotNull(org.jetbrains.annotations.NotNull) AbstractBaseTagMouseListener(com.intellij.openapi.vcs.changes.issueLinks.AbstractBaseTagMouseListener) java.util(java.util) KeyAdapter(java.awt.event.KeyAdapter) ContainerUtil(com.intellij.util.containers.ContainerUtil) MergeCalculatorTask.loadChangeLists(org.jetbrains.idea.svn.integrate.MergeCalculatorTask.loadChangeLists) SvnMergeInfoCache(org.jetbrains.idea.svn.mergeinfo.SvnMergeInfoCache) DialogWrapper(com.intellij.openapi.ui.DialogWrapper) ListTableModel(com.intellij.util.ui.ListTableModel) ContainerUtilRt.emptyList(com.intellij.util.containers.ContainerUtilRt.emptyList) Splitter(com.intellij.openapi.ui.Splitter) ListMergeStatus(org.jetbrains.idea.svn.mergeinfo.ListMergeStatus) ChangeNodeDecorator(com.intellij.openapi.vcs.changes.ui.ChangeNodeDecorator) PopupUtil(com.intellij.openapi.ui.popup.util.PopupUtil) ActionEvent(java.awt.event.ActionEvent) MouseEvent(java.awt.event.MouseEvent) java.awt(java.awt) com.intellij.openapi.actionSystem(com.intellij.openapi.actionSystem) ChangesBrowserNodeRenderer(com.intellij.openapi.vcs.changes.ui.ChangesBrowserNodeRenderer) DumbAwareAction(com.intellij.openapi.project.DumbAwareAction) RepositoryChangesBrowser(com.intellij.openapi.vcs.changes.committed.RepositoryChangesBrowser) Pair(com.intellij.openapi.util.Pair) ObjectUtils(com.intellij.util.ObjectUtils) ListSelectionListener(javax.swing.event.ListSelectionListener) Condition(com.intellij.openapi.util.Condition) javax.swing(javax.swing) TableCellRenderer(javax.swing.table.TableCellRenderer) MouseEvent(java.awt.event.MouseEvent) Splitter(com.intellij.openapi.ui.Splitter) RepositoryChangesBrowser(com.intellij.openapi.vcs.changes.committed.RepositoryChangesBrowser) SvnChangeList(org.jetbrains.idea.svn.history.SvnChangeList) ListSelectionEvent(javax.swing.event.ListSelectionEvent) NotNull(org.jetbrains.annotations.NotNull) BorderLayoutPanel(com.intellij.util.ui.components.BorderLayoutPanel) ListSelectionListener(javax.swing.event.ListSelectionListener) AbstractBaseTagMouseListener(com.intellij.openapi.vcs.changes.issueLinks.AbstractBaseTagMouseListener) Collections.singletonList(java.util.Collections.singletonList) SvnChangeList(org.jetbrains.idea.svn.history.SvnChangeList) List(java.util.List) ContainerUtilRt.emptyList(com.intellij.util.containers.ContainerUtilRt.emptyList)

Aggregations

ListSelectionListener (javax.swing.event.ListSelectionListener)216 ListSelectionEvent (javax.swing.event.ListSelectionEvent)210 ActionEvent (java.awt.event.ActionEvent)90 ActionListener (java.awt.event.ActionListener)76 JScrollPane (javax.swing.JScrollPane)72 JPanel (javax.swing.JPanel)67 JButton (javax.swing.JButton)61 BorderLayout (java.awt.BorderLayout)53 MouseEvent (java.awt.event.MouseEvent)47 Dimension (java.awt.Dimension)44 JLabel (javax.swing.JLabel)40 MouseAdapter (java.awt.event.MouseAdapter)37 JTable (javax.swing.JTable)36 FlowLayout (java.awt.FlowLayout)28 Insets (java.awt.Insets)28 JList (javax.swing.JList)27 List (java.util.List)24 ArrayList (java.util.ArrayList)22 KeyEvent (java.awt.event.KeyEvent)21 GridBagConstraints (java.awt.GridBagConstraints)20