gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz] Re: [Gzz-commits] gzz/gzz/gfx/gl PaperOptions.java


From: Tuomas Lukka
Subject: [Gzz] Re: [Gzz-commits] gzz/gzz/gfx/gl PaperOptions.java
Date: Sat, 16 Nov 2002 20:23:12 +0200
User-agent: Mutt/1.4i

On Thu, Nov 14, 2002 at 09:56:30AM -0500, Vesa Kaihlavirta wrote:
> CVSROOT:      /cvsroot/gzz
> Module name:  gzz
> Changes by:   Vesa Kaihlavirta <address@hidden>       02/11/14 09:56:30
> 
> Modified files:
>       gzz/gfx/gl     : PaperOptions.java 
> 
> Log message:
>       Singletonized.
> 
> CVSWeb URLs:
> http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/gfx/gl/PaperOptions.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
> 
> Patches:
> Index: gzz/gzz/gfx/gl/PaperOptions.java
> diff -u gzz/gzz/gfx/gl/PaperOptions.java:1.1 
> gzz/gzz/gfx/gl/PaperOptions.java:1.2
> --- gzz/gzz/gfx/gl/PaperOptions.java:1.1      Mon Nov 11 15:29:07 2002
> +++ gzz/gzz/gfx/gl/PaperOptions.java  Thu Nov 14 09:56:30 2002
> @@ -1,6 +1,15 @@
>  package gzz.gfx.gl;
>  
>  public class PaperOptions {
> -    public static boolean use_opengl_1_1;
> -    public PaperOptions() {}
> +    public static boolean use_opengl_1_1 = false;
> +    static private PaperOptions _instance = null;
> +
> +    static public PaperOptions instance() {
> +     if(null == _instance) {
> +         _instance = new PaperOptions();
> +     }
> +     return _instance;
> +    }
> +    private PaperOptions() {
> +    }
>  }

I think I'd probably prefer this to be state in the papermill object.

        Tuomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]