Examples of TextFieldWithBrowseButton


Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

        JPanel configurationPanel = new JPanel(new FormLayout("fill:50dlu:grow", "p,p,5dlu,p,p,fill:50dlu:grow"));

        CellConstraints c = new CellConstraints();
        configurationPanel.add(new JLabel("Working directory"), c.xy(1, 1));
        this.wdSelector = new TextFieldWithBrowseButton();
        this.wdSelector
                .addBrowseFolderListener("Select working directory", "This directory must contain a project.clj file. ",
                        null, new FileChooserDescriptor(false, true, false, false, false, false));
        configurationPanel.add(this.wdSelector, c.xy(1, 2));
        configurationPanel.add(new JLabel("Goals to run (separate with space)"), c.xy(1, 4));
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

        JPanel leinPanel = new JPanel(new FormLayout("80dlu, fill:80dlu:grow, 20dlu, 80dlu", "p,p,p"));

        CellConstraints c = new CellConstraints();
        int row = 1;
        leinPanel.add(new JBLabel("Leiningen executable:"), c.xy(1,row));
        this.leinBinSelectorField = new TextFieldWithBrowseButton();
        leinBinSelectorField
                .addBrowseFolderListener("Select the Leiningen executable", "'lein' on Linux/MacOS, 'lein.bat' on Windows. ", null,
                        new FileChooserDescriptor(true, false, false, false, false, false));
        leinPanel.add(leinBinSelectorField, c.xy(2,row));

        row++;

        leinPanel.add(new JBLabel("Leiningen Home:"), c.xy(1,row));
        this.leinHomeSelectorField = new TextFieldWithBrowseButton();
        leinHomeSelectorField
                .addBrowseFolderListener("Select the Leiningen home directory", "usually at $USER_HOME/.lein", null,
                        new FileChooserDescriptor(false, true, false, false, false, false));

        leinPanel.add(leinHomeSelectorField, c.xy(2,row));
        this.overrideLeinHome = new JBCheckBox();
        leinPanel.add(overrideLeinHome, c.xy(3,row));
        leinPanel.add(new JBLabel("Override"), c.xy(4,row));

        row++;

        leinPanel.add(new JBLabel("Leiningen Jar:"), c.xy(1,row));
        this.leinJarSelectorField = new TextFieldWithBrowseButton();
        leinJarSelectorField
                .addBrowseFolderListener("Select the Leiningen Jar", "usually at $USER_HOME/.lein/self-installs/leinigen-VERSION-standalone.jar", null,
                        new FileChooserDescriptor(true, false, true, true, false, false));

        leinPanel.add(leinJarSelectorField, c.xy(2,row));
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

        }
    }

    private LabeledComponent<TextFieldWithBrowseButton> createShellPathField() {
        LabeledComponent<TextFieldWithBrowseButton> shellPathField = new LabeledComponent<TextFieldWithBrowseButton>();
        TextFieldWithBrowseButton component = new TextFieldWithBrowseButton();
        component.getChildComponent().setName("shellPathField");
        shellPathField.setComponent(component);
        shellPathField.getComponent().addBrowseFolderListener("Mongo shell configuration", "", null,
                new FileChooserDescriptor(true, false, false, false, false, false));

        shellPathField.getComponent().setText(configuration.getShellPath());
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

        shellWorkingDirField.setText(configuration.getShellWorkingDir());
        autoConnectCheckBox.setSelected(configuration.isConnectOnIdeStartup());
    }

    private void createUIComponents() {
        shellWorkingDirField = new TextFieldWithBrowseButton();
        shellWorkingDirField.addBrowseFolderListener("Mongo shell working directory", "", null,
                new FileChooserDescriptor(false, true, false, false, false, false));
        shellWorkingDirField.setName("shellWorkingDirField");
    }
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

    protected void disposeEditor() {
        mainPanel = null;
    }

    private void createUIComponents() {
        shellWorkingDirField = new TextFieldWithBrowseButton();
        shellWorkingDirField.addBrowseFolderListener("Mongo shell working directory", "", null,
                new FileChooserDescriptor(false, true, false, false, false, false));
        shellWorkingDirField.setName("shellWorkingDirField");
    }
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

  private final TextFieldWithBrowseButton myTextField;
  private String myDialodCaption = "";

  public RawCommandLineEditor() {
    super(new BorderLayout());
    myTextField = new TextFieldWithBrowseButton(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        Messages.showTextAreaDialog(myTextField.getTextField(), myDialodCaption, "EditParametersPopupWindow");
      }
    });
    myTextField.setButtonIcon(Icons.OPEN_EDIT_DIALOG_ICON);
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

  protected JComponent createCenterPanel() {
    Box box = Box.createVerticalBox();

    JPanel _panel = new JPanel(new BorderLayout());
    myClassName = new TextFieldWithBrowseButton();
    _panel.add(new JLabel(UIBundle.message("label.class.filter.editor.add.dialog.filter.pattern")), BorderLayout.NORTH);
    _panel.add(myClassName, BorderLayout.CENTER);
    box.add(_panel);

    box.add(Box.createVerticalBox());
View Full Code Here

Examples of com.intellij.openapi.ui.TextFieldWithBrowseButton

        myCustomButton.setDisplayedMnemonicIndex(0);
        panel2.add(myCustomButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
        final JPanel panel3 = new JPanel();
        panel3.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));
        panel2.add(panel3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 1, false));
        myLauncherPath = new TextFieldWithBrowseButton();
        panel3.add(myLauncherPath, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, new Dimension(250, -1), null, null, 0, false));
        myLauncherPathLabel = new JLabel();
        myLauncherPathLabel.setText("Path:");
        panel3.add(myLauncherPathLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
        myLauncherNote = new JLabel();
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.