Home | History | Annotate | Download | only in property

Lines Matching refs:Property

11 package org.eclipse.wb.internal.core.editor.structure.property;

15 import org.eclipse.wb.internal.core.model.property.Property;
16 import org.eclipse.wb.internal.core.model.property.PropertyManager;
22 * Helper for computing intersection of {@link Property} arrays.
38 public void intersect(Property[] properties) {
42 Property property = properties[i];
43 m_intersection.add(new PropertyGroup(property));
56 * @return the array of matched composite {@link Property}'s.
58 public Property[] getProperties() {
59 List<Property> properties = Lists.newArrayList();
61 Property compositeProperty = propertyGroup.getCompositeProperty();
67 return properties.toArray(new Property[properties.size()]);
76 * The group of {@link Property}'s that match.
79 private final List<Property> m_properties = Lists.newArrayList();
86 public PropertyGroup(Property property) {
87 m_properties.add(property);
96 * @return <code>true</code> if new matched {@link Property} from given array was added.
98 public boolean add(Property[] properties) {
99 for (Property property : properties) {
100 if (add(property)) {
109 * @return the composite {@link Property} for this group.
111 public Property getCompositeProperty() {
112 Property properties[] = m_properties.toArray(new Property[m_properties.size()]);
122 * @return <code>true</code> if given {@link Property} matches and was added.
124 private boolean add(Property property) {
125 Property example = m_properties.get(0);
126 if (example.getClass() == property.getClass()
127 && example.getTitle().equals(property.getTitle())
128 && PropertyManager.getCategory(example) == PropertyManager.getCategory(property)) {
129 m_properties.add(property);