Home | History | Annotate | Download | only in table

Lines Matching refs:property

11 package org.eclipse.wb.internal.core.model.property.table;
42 import org.eclipse.wb.internal.core.model.property.Property;
43 import org.eclipse.wb.internal.core.model.property.category.PropertyCategory;
44 import org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProvider;
45 import org.eclipse.wb.internal.core.model.property.category.PropertyCategoryProviders;
46 import org.eclipse.wb.internal.core.model.property.editor.PropertyEditor;
47 import org.eclipse.wb.internal.core.model.property.editor.complex.IComplexPropertyEditor;
48 import org.eclipse.wb.internal.core.model.property.editor.presentation.ButtonPropertyEditorPresentation;
49 import org.eclipse.wb.internal.core.model.property.editor.presentation.PropertyEditorPresentation;
58 * Control that can display {@link Property}'s and edit them using {@link PropertyEditor}'s.
62 * @coverage core.model.property.table
113 private Property[] m_rawProperties;
286 Property property = m_activePropertyInfo.getProperty();
308 activateEditor(property, null);
314 property.setValue(Property.UNKNOWN_VALUE);
318 property.getEditor().keyDown(this, property, e);
347 // activate new property
384 // click in property
390 // prepare property
392 Property property = m_activePropertyInfo.getProperty();
398 activateEditor(property, getValueRelativeLocation(event.x, event.y));
448 Property property = m_activePropertyInfo.getProperty();
449 property.getEditor().doubleClick(property, getValueRelativeLocation(event.x, event.y));
498 Property property = propertyInfo.getProperty();
505 m_tooltipHelper.update(property, true, false, titleX, titleRight, y, m_rowHeight);
514 property,
548 public void activateEditor(Property property, Point location) {
553 PropertyEditor editor = property.getEditor();
555 if (editor.activate(this, property, location)) {
566 PropertyEditor editor = property.getEditor();
572 button.click(this, property);
606 // it is possible that active property was hidden because its parent was collapsed
754 * @return <code>true</code> if given <code>x</code> is on value part of property.
766 * @return the location relative to the value part of property.
778 * Shows or hides {@link Property}-s with {@link PropertyCategory#ADVANCED}.
786 * Sets the array of {@link Property}'s to display/edit.
788 public void setInput(Property[] properties) {
797 Property property = propertyInfo.getProperty();
800 PropertyEditorPresentation presentation = property.getEditor().getPresentation();
802 presentation.hide(this, property);
813 // add PropertyInfo for each Property
815 for (Property property : m_rawProperties) {
816 if (rawProperties_shouldShow(property)) {
817 PropertyInfo propertyInfo = new PropertyInfo(property);
837 // update active property
857 * @return <code>true</code> if given {@link Property} should be displayed.
859 private boolean rawProperties_shouldShow(Property property) throws Exception {
860 PropertyCategory category = getCategory(property);
867 if (!m_showAdvancedProperties && !property.isModified()) {
879 * Activates given {@link Property}.
881 public void setActiveProperty(Property property) {
883 if (propertyInfo.m_property == property) {
903 * @return the {@link Property} from "expanded" list.
905 public Property forTests_getProperty(int index) {
924 * @return the location of state image (plus/minus) for given {@link Property}.
926 public Point forTests_getStateLocation(Property property) {
927 PropertyInfo propertyInfo = getPropertyInfo(property);
938 * @return the location of state image (plus/minus) for given {@link Property}.
940 public Point forTests_getValueLocation(Property property) {
941 PropertyInfo propertyInfo = getPropertyInfo(property);
961 public PropertyCategory forTests_getCategory(Property property) {
962 return getCategory(property);
966 * @return the {@link PropertyInfo}for given {@link Property}.
968 private PropertyInfo getPropertyInfo(Property property) {
970 if (propertyInfo.getProperty() == property) {
1016 // update m_activePropertyId only when really select property,
1017 // not just remove selection because there are no corresponding property for old active
1018 property, old active will be selected
1022 // make sure that active property is visible
1148 // draw single property
1174 * Shows {@link PropertyEditorPresentation}'s for all {@link Property}'s, i.e. updates also their
1190 Property property = propertyInfo.getProperty();
1191 PropertyEditorPresentation presentation = property.getEditor().getPresentation();
1193 presentationsWidth[i] = presentation.show(this, property, x, y + 1, w, m_rowHeight - 1);
1201 * Draws lines from expanded complex property to its last sub-property.
1215 // prepare index of last sub-property
1246 // draw property
1248 Property property = propertyInfo.getProperty();
1250 m_activePropertyInfo != null && m_activePropertyInfo.getProperty() == property;
1252 boolean modified = property.isModified();
1276 if (getCategory(property).isAdvanced()) {
1279 } else if (getCategory(property).isPreferred() || getCategory(property).isSystem()) {
1289 DrawUtils.drawStringCV(gc, property.getTitle(), x, y, m_splitter - x, height);
1309 property.getEditor().paint(property, gc, x, y, w, height);
1339 private PropertyCategory getCategory(Property property) {
1340 return m_propertyCategoryProvider.getCategory(property);
1349 * Class with information about single {@link Property}.
1356 private final Property m_property;
1366 public PropertyInfo(Property property) {
1367 this(property, "", 0);
1370 private PropertyInfo(Property property, String idPrefix, int level) {
1372 //m_id = idPrefix + "|" + property.getTitle();
1373 m_id = idPrefix + "|" + property.getName();
1376 m_property = property;
1377 m_stateComplex = property.getEditor() instanceof IComplexPropertyEditor;
1386 * @return <code>true</code> if this property is complex.
1401 * @return <code>true</code> if this complex property is expanded.
1413 * @return the level of this property, i.e. on which level of complex property it is located.
1420 * @return the {@link Property}.
1422 public Property getProperty() {
1439 * Expands this property.
1459 * Collapses this property.
1491 // skip if should not display raw Property
1511 // skip if should not display raw Property
1538 for (Property subProperty : getSubProperties()) {
1545 Property subProperty) {
1549 private Property[] getSubProperties() throws Exception {
1551 List<Property> subProperties = Lists.newArrayList();
1552 for (Property subProperty : complexEditor.getProperties(m_property)) {
1559 return subProperties.toArray(new Property[subProperties.size()]);