Java 类com.intellij.util.config.BooleanProperty 实例源码

项目:tools-idea    文件:DiffOptionsForm.java   
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);
}
项目:consulo    文件:ExternalDiffSettingsConfigurable.java   
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);
}
项目:intellij-ce-playground    文件:ExternalDiffSettings.java   
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;
}
项目:consulo    文件:ExternalDiffSettings.java   
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;
}
项目:intellij-ce-playground    文件:ExternalDiffSettings.java   
private static void setProperty(@Nullable BooleanProperty oldProperty, boolean value) {
  if (oldProperty != null) oldProperty.set(getProperties(), value);
}
项目:intellij-ce-playground    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}
项目:intellij-ce-playground    文件:ToggleModelAction.java   
public ToggleModelAction(String text, String description, Icon icon, AbstractProperty.AbstractPropertyContainer properties,
                         BooleanProperty property) {
  super(text, description, icon, properties, property);
}
项目:tools-idea    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}
项目:tools-idea    文件:ToggleModelAction.java   
public ToggleModelAction(String text, String description, Icon icon, AbstractProperty.AbstractPropertyContainer properties,
                         BooleanProperty property) {
  super(text, description, icon, properties, property);
}
项目:consulo    文件:ExternalDiffSettings.java   
private static void setProperty(@javax.annotation.Nullable BooleanProperty oldProperty, boolean value) {
  if (oldProperty != null) oldProperty.set(getProperties(), value);
}
项目:consulo    文件:ToggleModelAction.java   
public ToggleModelAction(String text, String description, Icon icon, AbstractProperty.AbstractPropertyContainer properties,
                         BooleanProperty property) {
  super(text, description, icon, properties, property);
}
项目:consulo    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}