Package org.eclipse.wb.internal.core.xml.model.property

Examples of org.eclipse.wb.internal.core.xml.model.property.XmlProperty


   */
  private Property getTabTextProperty(final XmlObjectInfo widget) throws Exception {
    Property property = (Property) widget.getArbitraryValue(this);
    if (property == null) {
      final DocumentElement tabElement = widget.getElement().getParent();
      property = new XmlProperty(widget, "TabText", StringPropertyEditor.INSTANCE) {
        @Override
        public boolean isModified() throws Exception {
          return getValue() != UNKNOWN_VALUE;
        }

View Full Code Here


                "WEST",
                "EAST",
                "CENTER",
                "LINE_START",
                "LINE_END");
        XmlProperty property = new XmlProperty(widget, "Direction", propertyEditor) {
          @Override
          public boolean isModified() throws Exception {
            return true;
          }

          @Override
          public Object getValue() throws Exception {
            return getDirection(widget);
          }

          @Override
          public void setValue(Object value) throws Exception {
            if (value instanceof String) {
              setDirection(widget, (String) value);
            }
          }
        };
        property.setCategory(PropertyCategory.system(7));
        return property;
      }
    });
  }
View Full Code Here

   */
  private Property getStackTextProperty(final XmlObjectInfo widget) throws Exception {
    Property property = (Property) widget.getArbitraryValue(this);
    if (property == null) {
      final String attributeName = getElement().getTagNS() + "StackPanel-text";
      property = new XmlProperty(widget, "StackText", StringPropertyEditor.INSTANCE) {
        @Override
        public boolean isModified() throws Exception {
          return getValue() != UNKNOWN_VALUE;
        }

View Full Code Here

  private Property getHeaderTextProperty(final XmlObjectInfo widget) throws Exception {
    Property property = (Property) widget.getArbitraryValue(this);
    if (property == null) {
      final DocumentElement headerElement = getHeaderElement(widget);
      if (headerElement.getTagLocal().equals("header")) {
        property = new XmlProperty(widget, "HeaderText", StringPropertyEditor.INSTANCE) {
          @Override
          public boolean isModified() throws Exception {
            return getValue() != UNKNOWN_VALUE;
          }
View Full Code Here

   * @return the existing or new "HeaderSize" property.
   */
  private Property getHeaderSizeProperty(final WidgetInfo widget) throws Exception {
    Property property = (Property) widget.getArbitraryValue(this);
    if (property == null) {
      property = new XmlProperty(widget, "HeaderSize", DoublePropertyEditor.INSTANCE) {
        @Override
        public boolean isModified() throws Exception {
          return getValue() != UNKNOWN_VALUE;
        }

View Full Code Here

  private Property getTabTextProperty(final XmlObjectInfo widget) throws Exception {
    Property property = (Property) widget.getArbitraryValue(this);
    if (property == null) {
      final DocumentElement headerElement = getHeaderElement(widget);
      if (headerElement.getTagLocal().equals("header")) {
        property = new XmlProperty(widget, "TabText", StringPropertyEditor.INSTANCE) {
          @Override
          public boolean isModified() throws Exception {
            return getValue() != UNKNOWN_VALUE;
          }
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.xml.model.property.XmlProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.