Friday, March 7, 2014

Re: Change CSSResources in different Projects

Hi thanks for your support, 

Now it's working very well. 

My Factory now looks : 

public class PSGResourceFactory
{
  private static PSGResourceFactory fac;
  private PSGResources resources;

  public PSGResources getResources()
  {
    if ( resources == null )
    {
      resources = GWT.create( PSGResources.class );
    }
    return resources;
  }

  public static PSGResourceFactory getFac()
  {
    if ( fac == null )
    {
      fac = GWT.create( PSGResourceFactory.class );
    }
    return fac;
  }

}

In my Testfactory I overwrite the getResources method and thats all. 

Thanks again 

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment