Search in sources :

Example 1 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class QNameValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 2 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class QNamespaceValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 3 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class CDataValueBindingImpl method init.

@Override
public void init(Property property) {
    super.init(property);
    PropertyDef propertyDef = property.definition();
    XmlBinding bindingAnnotation = propertyDef.getAnnotation(XmlBinding.class);
    _path = new XmlPath(bindingAnnotation.path(), resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath) PropertyDef(org.eclipse.sapphire.PropertyDef) XmlBinding(org.eclipse.sapphire.modeling.xml.annotations.XmlBinding)

Example 4 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class ChoiceValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.BindingImpl#init(org.eclipse.sapphire.modeling.
 *      IModelElement, org.eclipse.sapphire.modeling.ModelProperty,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Example 5 with XmlPath

use of org.eclipse.sapphire.modeling.xml.XmlPath in project liferay-ide by liferay.

the class NameAndQNameChoiceValueBinding method init.

/**
 * (non-Javadoc)
 *
 * @see org.eclipse.sapphire.modeling.PropertyBinding#init(org.eclipse.sapphire.
 *      modeling.Element, org.eclipse.sapphire.modeling.Property,
 *      java.lang.String[])
 */
@Override
public void init(Property property) {
    super.init(property);
    this.params = property.definition().getAnnotation(CustomXmlValueBinding.class).params();
    this.path = new XmlPath(params[0], resource().getXmlNamespaceResolver());
}
Also used : XmlPath(org.eclipse.sapphire.modeling.xml.XmlPath)

Aggregations

XmlPath (org.eclipse.sapphire.modeling.xml.XmlPath)9 XmlBinding (org.eclipse.sapphire.modeling.xml.annotations.XmlBinding)2 PropertyDef (org.eclipse.sapphire.PropertyDef)1