Examples of PropertySource


Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

    AdapterFactory af = getAdapterFactory(object);
    if (af != null) {
      IItemPropertySource ips = (IItemPropertySource) af.adapt(object,
          IItemPropertySource.class);
      if (ips != null) {
        return new PropertySource(object, ips);
      }
    }
    if (object instanceof IAdaptable) {
      return (IPropertySource) ((IAdaptable) object)
          .getAdapter(IPropertySource.class);
View Full Code Here

Examples of org.eclipse.emf.edit.ui.provider.PropertySource

      List adapters = eObj.eAdapters();
      for (Iterator itr = adapters.iterator(); itr.hasNext();) {
        Object adapter = itr.next();
        if (adapter instanceof IItemPropertySource) {
          //TODO handle the case with multiple IItemPropertySource adapters for this EObject
          return new PropertySource(adaptableObject, (IItemPropertySource) adapter);
        }
      }
    }
    return null;
  }
View Full Code Here

Examples of org.impalaframework.config.PropertySource

      this.invalidate();
    }
  }

  boolean getPreserveSession() {
    final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
    if (propertySource == null) return true;
    BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
   
    final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
    return preserveSession;
View Full Code Here

Examples of org.impalaframework.config.PropertySource

        assertTrue(propertySources.get(3) instanceof ServletContextPropertySource);
    }
   
    public void testAddLocations() throws Exception {
        final ContextLocationResolver resolverDelegate = createMock(ContextLocationResolver.class);
        final PropertySource source = createMock(PropertySource.class);
       
        ServletContextLocationsRetriever resolver = new ServletContextLocationsRetriever(servletContext, resolverDelegate, propertiesLoader) {

            @Override
            protected Properties getProperties() {
View Full Code Here

Examples of org.impalaframework.config.PropertySource

            this.invalidate();
        }
    }

    boolean getPreserveSession() {
        final PropertySource propertySource = PropertySourceHolder.getInstance().getPropertySource();
        if (propertySource == null) return true;
        BooleanPropertyValue preserveSessionOnReloadFailure = new BooleanPropertyValue(propertySource, WebBootstrapProperties.PRESERVE_SESSION_ON_RELOAD_FAILURE, true);
       
        final boolean preserveSession = preserveSessionOnReloadFailure.getValue();
        return preserveSession;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.