public ToolPath(JCheckBox checkBox, TextFieldWithBrowseButton textField, @Nullable JTextField parameters, StringProperty pathProperty, BooleanProperty enabledProperty, @Nullable StringProperty parametersProperty) { myCheckBox = checkBox; myTextField = textField; myPathProperty = pathProperty; myEnabledProperty = enabledProperty; myParameters = parameters; myParametersProperty = parametersProperty; final ButtonModel model = myCheckBox.getModel(); model.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { updateEnabledEffect(); } }); myTextField.addBrowseFolderListener(DiffBundle.message("select.external.diff.program.dialog.title"), null, null, FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), TextComponentAccessor.TEXT_FIELD_SELECTED_TEXT); }
public ToolPath(JCheckBox checkBox, TextFieldWithBrowseButton textField, @Nullable JTextField parameters, StringProperty pathProperty, BooleanProperty enabledProperty, @Nullable StringProperty parametersProperty) { myCheckBox = checkBox; myTextField = textField; myPathProperty = pathProperty; myEnabledProperty = enabledProperty; myParameters = parameters; myParametersProperty = parametersProperty; final ButtonModel model = myCheckBox.getModel(); model.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { updateEnabledEffect(); } }); myTextField.addBrowseFolderListener(DiffBundle.message("select.external.diff.program.dialog.title"), null, null, FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor(), TextComponentAccessor.TEXT_FIELD_SELECTED_TEXT); }
private static boolean getProperty(@Nullable BooleanProperty oldProperty, @Nullable Boolean newValue, boolean defaultValue) { if (newValue != null) return newValue; if (oldProperty != null) { return oldProperty.value(getProperties()); } return defaultValue; }
private static boolean getProperty(@Nullable BooleanProperty oldProperty, @javax.annotation.Nullable Boolean newValue, boolean defaultValue) { if (newValue != null) return newValue; if (oldProperty != null) { return oldProperty.value(getProperties()); } return defaultValue; }
private static void setProperty(@Nullable BooleanProperty oldProperty, boolean value) { if (oldProperty != null) oldProperty.set(getProperties(), value); }
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) { myEnableProperty = enableProperty; myToolProperty = toolProperty; }
public ToggleModelAction(String text, String description, Icon icon, AbstractProperty.AbstractPropertyContainer properties, BooleanProperty property) { super(text, description, icon, properties, property); }
private static void setProperty(@javax.annotation.Nullable BooleanProperty oldProperty, boolean value) { if (oldProperty != null) oldProperty.set(getProperties(), value); }