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

项目:intellij-ce-playground    文件:AntArtifactPropertiesEditor.java   
public void reset() {
  myRunTargetCheckBox.setSelected(myProperties.isEnabled());
  myTarget = myProperties.findTarget(AntConfiguration.getInstance(myContext.getProject()));
  final List<BuildFileProperty> properties = new ArrayList<BuildFileProperty>();
  for (BuildFileProperty property : myProperties.getAllProperties(myContext.getArtifact())) {
    properties.add(new BuildFileProperty(property.getPropertyName(), property.getPropertyValue()));
  }
  myContainer = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, properties);
  myBinding.loadValues(myContainer);
  updatePanel();
}
项目:tools-idea    文件:AntArtifactPropertiesEditor.java   
public void reset() {
  myRunTargetCheckBox.setSelected(myProperties.isEnabled());
  myTarget = myProperties.findTarget(AntConfiguration.getInstance(myContext.getProject()));
  final List<BuildFileProperty> properties = new ArrayList<BuildFileProperty>();
  for (BuildFileProperty property : myProperties.getAllProperties(myContext.getArtifact())) {
    properties.add(new BuildFileProperty(property.getPropertyName(), property.getPropertyValue()));
  }
  myContainer = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, properties);
  myBinding.loadValues(myContainer);
  updatePanel();
}
项目:consulo-apache-ant    文件:AntBuildFileImpl.java   
private void collectClasspath(List<File> files,
        ListProperty<AntClasspathEntry> property,
        AbstractProperty.AbstractPropertyContainer container)
{
    if(!container.hasProperty(property))
    {
        return;
    }
    Iterator<AntClasspathEntry> entries = property.getIterator(container);
    while(entries.hasNext())
    {
        AntClasspathEntry entry = entries.next();
        entry.addFilesTo(files);
    }
}
项目:consulo-apache-ant    文件:AntArtifactPropertiesEditor.java   
public void reset() {
  myRunTargetCheckBox.setSelected(myProperties.isEnabled());
  myTarget = myProperties.findTarget(AntConfiguration.getInstance(myContext.getProject()));
  final List<BuildFileProperty> properties = new ArrayList<BuildFileProperty>();
  for (BuildFileProperty property : myProperties.getAllProperties(myContext.getArtifact())) {
    properties.add(new BuildFileProperty(property.getPropertyName(), property.getPropertyValue()));
  }
  myContainer = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, properties);
  myBinding.loadValues(myContainer);
  updatePanel();
}
项目:hybris-integration-intellij-idea-plugin    文件:DefaultAntConfigurator.java   
private void setAntProperties(
    final EditPropertyContainer editPropertyContainer,
    final File platformDir,
    final List<TargetFilter> filterList
) {
    AntBuildFileImpl.ADDITIONAL_CLASSPATH.set(editPropertyContainer, classPaths);
    AntBuildFileImpl.TREE_VIEW.set(editPropertyContainer, true);
    AntBuildFileImpl.TREE_VIEW_ANSI_COLOR.set(editPropertyContainer, true);
    AntBuildFileImpl.TREE_VIEW_COLLAPSE_TARGETS.set(editPropertyContainer, false);
    AntBuildFileImpl.ANT_INSTALLATION.set(editPropertyContainer, antInstallation);
    AntBuildFileImpl.ANT_REFERENCE.set(editPropertyContainer, antInstallation.getReference());
    AntBuildFileImpl.RUN_WITH_ANT.set(editPropertyContainer, antInstallation);
    AntBuildFileImpl.MAX_HEAP_SIZE.set(editPropertyContainer, HybrisConstants.ANT_HEAP_SIZE_MB);
    AntBuildFileImpl.MAX_STACK_SIZE.set(editPropertyContainer, HybrisConstants.ANT_STACK_SIZE_MB);
    AntBuildFileImpl.RUN_IN_BACKGROUND.set(editPropertyContainer, false);
    AntBuildFileImpl.VERBOSE.set(editPropertyContainer, false);

    final ListProperty<BuildFileProperty> properties = AntBuildFileImpl.ANT_PROPERTIES;
    properties.clearList(editPropertyContainer);

    final BuildFileProperty platformHomeProperty = new BuildFileProperty();
    platformHomeProperty.setPropertyName(HybrisConstants.ANT_PLATFORM_HOME);
    platformHomeProperty.setPropertyValue(platformDir.getAbsolutePath());

    final BuildFileProperty antHomeProperty = new BuildFileProperty();
    antHomeProperty.setPropertyName(HybrisConstants.ANT_HOME);
    antHomeProperty.setPropertyValue(antInstallation.getHomeDir());

    final BuildFileProperty antOptsProperty = new BuildFileProperty();
    antOptsProperty.setPropertyName(HybrisConstants.ANT_OPTS);
    antOptsProperty.setPropertyValue(HybrisConstants.ANT_XMX + HybrisConstants.ANT_HEAP_SIZE_MB + " " + HybrisConstants.ANT_ENCODING);

    final List<BuildFileProperty> buildFileProperties = new ArrayList<>();
    buildFileProperties.add(platformHomeProperty);
    buildFileProperties.add(antHomeProperty);
    buildFileProperties.add(antOptsProperty);

    AntBuildFileImpl.ANT_PROPERTIES.set(editPropertyContainer, buildFileProperties);
    if (hybrisProjectDescriptor.getExternalConfigDirectory() != null) {
        AntBuildFileImpl.ANT_COMMAND_LINE_PARAMETERS.set(editPropertyContainer, HybrisConstants.ANT_HYBRIS_CONFIG_DIR + hybrisProjectDescriptor.getExternalConfigDirectory().getAbsolutePath());
    }

    AntBuildFileImpl.TARGET_FILTERS.set(editPropertyContainer, filterList);
}
项目:intellij-ce-playground    文件:AntArtifactPropertiesEditor.java   
private List<BuildFileProperty> getUserProperties() {
  final SinglePropertyContainer<ListProperty> container = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, null);
  myBinding.apply(container);
  final List<BuildFileProperty> allProperties = (List<BuildFileProperty>)container.getValueOf(ANT_PROPERTIES);
  return ContainerUtil.filter(allProperties, USER_PROPERTY_CONDITION);
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
public <T extends JDOMExternalizable> TableListBinding<T> bindList(JTable table, ColumnInfo[] columns, ListProperty<T> property) {
  final TableListBinding<T> binding = new TableListBinding<T>(table, columns, property);
  myBindings.add(binding);
  return binding;
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
public <T> OrderListBinding<T> bindList(JList list, ListProperty<T> property) {
  OrderListBinding<T> binding = new OrderListBinding<T>(list, property);
  addBinding(binding);
  return binding;
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
protected BaseListBinding(ListProperty<Item> property, JList list) {
  myList = list;
  myProperty = property;
  myComponents.add(myList);
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
protected ListProperty<Item> getProperty() {
  return myProperty;
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
public SortedListBinding(JList list, ListProperty<T> property, Comparator<T> comparator) {
  super(property, list);
  list.setModel(new SortedListModel<T>(comparator));
}
项目:intellij-ce-playground    文件:UIPropertyBinding.java   
public OrderListBinding(JList list, ListProperty<T> property) {
  super(property, list);
  list.setModel(new DefaultListModel());
}
项目:tools-idea    文件:AntArtifactPropertiesEditor.java   
private List<BuildFileProperty> getUserProperties() {
  final SinglePropertyContainer<ListProperty> container = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, null);
  myBinding.apply(container);
  final List<BuildFileProperty> allProperties = (List<BuildFileProperty>)container.getValueOf(ANT_PROPERTIES);
  return ContainerUtil.filter(allProperties, USER_PROPERTY_CONDITION);
}
项目:tools-idea    文件:UIPropertyBinding.java   
public <T extends JDOMExternalizable> TableListBinding<T> bindList(JTable table, ColumnInfo[] columns, ListProperty<T> property) {
  final TableListBinding<T> binding = new TableListBinding<T>(table, columns, property);
  myBindings.add(binding);
  return binding;
}
项目:tools-idea    文件:UIPropertyBinding.java   
public <T> OrderListBinding<T> bindList(JList list, ListProperty<T> property) {
  OrderListBinding<T> binding = new OrderListBinding<T>(list, property);
  addBinding(binding);
  return binding;
}
项目:tools-idea    文件:UIPropertyBinding.java   
protected BaseListBinding(ListProperty<Item> property, JList list) {
  myList = list;
  myProperty = property;
  myComponents.add(myList);
}
项目:tools-idea    文件:UIPropertyBinding.java   
protected ListProperty<Item> getProperty() {
  return myProperty;
}
项目:tools-idea    文件:UIPropertyBinding.java   
public SortedListBinding(JList list, ListProperty<T> property, Comparator<T> comparator) {
  super(property, list);
  list.setModel(new SortedListModel<T>(comparator));
}
项目:tools-idea    文件:UIPropertyBinding.java   
public OrderListBinding(JList list, ListProperty<T> property) {
  super(property, list);
  list.setModel(new DefaultListModel());
}
项目:consulo-apache-ant    文件:AntArtifactPropertiesEditor.java   
private List<BuildFileProperty> getUserProperties() {
  final SinglePropertyContainer<ListProperty> container = new SinglePropertyContainer<ListProperty>(ANT_PROPERTIES, null);
  myBinding.apply(container);
  final List<BuildFileProperty> allProperties = (List<BuildFileProperty>)container.getValueOf(ANT_PROPERTIES);
  return ContainerUtil.filter(allProperties, USER_PROPERTY_CONDITION);
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
public <T extends JDOMExternalizable> TableListBinding<T> bindList(JTable table, ColumnInfo[] columns, ListProperty<T> property) {
  final TableListBinding<T> binding = new TableListBinding<T>(table, columns, property);
  myBindings.add(binding);
  return binding;
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
public <T> OrderListBinding<T> bindList(JList list, ListProperty<T> property) {
  OrderListBinding<T> binding = new OrderListBinding<T>(list, property);
  addBinding(binding);
  return binding;
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
protected BaseListBinding(ListProperty<Item> property, JList list) {
  myList = list;
  myProperty = property;
  myComponents.add(myList);
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
protected ListProperty<Item> getProperty() {
  return myProperty;
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
public SortedListBinding(JList list, ListProperty<T> property, Comparator<T> comparator) {
  super(property, list);
  list.setModel(new SortedListModel<T>(comparator));
}
项目:consulo-apache-ant    文件:UIPropertyBinding.java   
public OrderListBinding(JList list, ListProperty<T> property) {
  super(property, list);
  list.setModel(new DefaultListModel());
}