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

项目: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   
@NotNull
private static String getProperty(@Nullable StringProperty oldProperty, @Nullable String newValue, @NotNull String defaultValue) {
  if (newValue != null) return newValue;
  if (oldProperty != null) {
    String oldValue = oldProperty.get(getProperties());
    if (!StringUtil.isEmptyOrSpaces(oldValue)) return oldValue;
  }
  return defaultValue;
}
项目:consulo    文件:ExternalDiffSettings.java   
@Nonnull
private static String getProperty(@javax.annotation.Nullable StringProperty oldProperty, @javax.annotation.Nullable String newValue, @Nonnull String defaultValue) {
  if (newValue != null) return newValue;
  if (oldProperty != null) {
    String oldValue = oldProperty.get(getProperties());
    if (!StringUtil.isEmptyOrSpaces(oldValue)) return oldValue;
  }
  return defaultValue;
}
项目:intellij-ce-playground    文件:ExternalDiffSettings.java   
private static void setProperty(@Nullable StringProperty oldProperty, @NotNull String value) {
  if (oldProperty != null) oldProperty.set(getProperties(), value);
}
项目:intellij-ce-playground    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}
项目:tools-idea    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}
项目:consulo    文件:ExternalDiffSettings.java   
private static void setProperty(@javax.annotation.Nullable StringProperty oldProperty, @Nonnull String value) {
  if (oldProperty != null) oldProperty.set(getProperties(), value);
}
项目:consulo    文件:BaseExternalTool.java   
protected BaseExternalTool(BooleanProperty enableProperty, StringProperty toolProperty) {
  myEnableProperty = enableProperty;
  myToolProperty = toolProperty;
}