Package org.eclipse.wst.xml.ui.internal.properties

Examples of org.eclipse.wst.xml.ui.internal.properties.XMLPropertySource


    if ((model = DesignerPropertyTool.getElementNode(object)) != null) {
      source = (IPropertySource) ((INodeNotifier) (model))
          .getAdapterFor(IPropertySource.class);
      if (source == null) {
        source = new XMLPropertySource((INodeNotifier) model);
      }
    }
    if (source != null) {
      return new AttributePropertySource( model, source);
    }
View Full Code Here


      if (object instanceof IDOMNode) {
        fSource = (INodeNotifier) object;
        fPropertySource = (IPropertySource) fSource.getAdapterFor(IPropertySource.class);
        if (fPropertySource == null) {
          fPropertySource = new XMLPropertySource((INodeNotifier) object) {
            public void setPropertyValue(Object nameObject, Object value) {
              // https://bugs.eclipse.org/bugs/show_bug.cgi?id=218979
              if (fSelectedNotifiers != null) {
                for (int i = 0; i < fSelectedNotifiers.length; i++) {
                  fSelectedNotifiers[i].removeAdapter(fRefreshAdapter);
View Full Code Here

      if (node instanceof IDOMNode) {
        INodeNotifier source = (INodeNotifier) node;
        IPropertySource propertySource = (IPropertySource) source
            .getAdapterFor(IPropertySource.class);
        if (propertySource == null) {
          propertySource = new XMLPropertySource(
              (INodeNotifier) source);
          return new WebflowElementPropertySource(propertySource);
        }
      }
    }
View Full Code Here

  @SuppressWarnings("rawtypes")
  public Object getAdapter(Class adapter) {
    if (IPropertySource.class == adapter) {
      IPropertySource propertySource = (IPropertySource) input.getAdapterFor(IPropertySource.class);
      if (propertySource == null) {
        propertySource = new XMLPropertySource(input);
      }
      return propertySource;
    }
    return null;
  }
View Full Code Here

@SuppressWarnings("restriction")
public class SpringConfigPropertySourceProvider implements IPropertySourceProvider {

  public IPropertySource getPropertySource(Object object) {
    if (object instanceof IDOMNode) {
      return new XMLPropertySource((IDOMNode) object);
    }
    else if (object instanceof IAdaptable) {
      Object adapter = ((IAdaptable) object).getAdapter(IPropertySource.class);
      if (adapter instanceof IPropertySource) {
        return (IPropertySource) adapter;
View Full Code Here

  public Object getAdapter(Class adapter) {
    if (IPropertySource.class == adapter) {
      IPropertySource propertySource = (IPropertySource) input.getAdapterFor(IPropertySource.class);
      if (propertySource == null) {
        propertySource = new XMLPropertySource(input);
      }
      return propertySource;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.xml.ui.internal.properties.XMLPropertySource

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.