Example usage for com.intellij.openapi.ui TextFieldWithBrowseButton setEditable

List of usage examples for com.intellij.openapi.ui TextFieldWithBrowseButton setEditable

Introduction

In this page you can find the example usage for com.intellij.openapi.ui TextFieldWithBrowseButton setEditable.

Prototype

public void setEditable(boolean b) 

Source Link

Usage

From source file:com.intellij.execution.configuration.EnvironmentVariablesComponent.java

License:Apache License

public EnvironmentVariablesComponent() {
    super();/*w w w. j  a  va 2s.  co  m*/
    final TextFieldWithBrowseButton envsTestField = new TextFieldWithBrowseButton();
    envsTestField.setEditable(false);
    setComponent(envsTestField);
    setText(ExecutionBundle.message("environment.variables.component.title"));
    getComponent().addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(final ActionEvent e) {
            new MyEnvironmentVariablesDialog().show();
        }
    });
}