~ubuntu-branches/debian/sid/swt-gtk/sid

« back to all changes in this revision

Viewing changes to org/eclipse/swt/graphics/Device.java

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Perez
  • Date: 2009-12-07 10:22:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091207102224-70w2tax575mcks1w
Tags: 3.5.1-1
* New upstream release. Closes: #558663.
* debian/control: 
  - Add Vcs-* fields for Git repository.
  - Allow DM-Uploads.
  - Remove "Conflicts", package should live with eclipse.
* debian/rules: Fix default-java path around AWT_LIB_PATH.
* debian/copyright: Minor update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*******************************************************************************
2
 
 * Copyright (c) 2000, 2008 IBM Corporation and others.
 
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
3
3
 * All rights reserved. This program and the accompanying materials
4
4
 * are made available under the terms of the Eclipse Public License v1.0
5
5
 * which accompanies this distribution, and is available at
92
92
        * fix is to remove this feature. Unfortunately,
93
93
        * too many application programs rely on this
94
94
        * feature.
95
 
        *
96
 
        * This code will be removed in the future.
97
95
        */
98
96
        protected static Device CurrentDevice;
99
97
        protected static Runnable DeviceFinder;
100
98
        static {
101
99
                try {
102
100
                        Class.forName ("org.eclipse.swt.widgets.Display");
103
 
                } catch (Throwable e) {}
 
101
                } catch (ClassNotFoundException e) {}
104
102
        }       
105
103
 
106
104
/*
792
790
        }
793
791
        gdkColors = null;
794
792
        colorRefCount = null;
 
793
 
 
794
        if (COLOR_BLACK != null) COLOR_BLACK.dispose();
 
795
        if (COLOR_DARK_RED != null) COLOR_DARK_RED.dispose();
 
796
        if (COLOR_DARK_GREEN != null) COLOR_DARK_GREEN.dispose();
 
797
        if (COLOR_DARK_YELLOW != null) COLOR_DARK_YELLOW.dispose();
 
798
        if (COLOR_DARK_BLUE != null) COLOR_DARK_BLUE.dispose();
 
799
        if (COLOR_DARK_MAGENTA != null) COLOR_DARK_MAGENTA.dispose();
 
800
        if (COLOR_DARK_CYAN != null) COLOR_DARK_CYAN.dispose();
 
801
        if (COLOR_GRAY != null) COLOR_GRAY.dispose();
 
802
        if (COLOR_DARK_GRAY != null) COLOR_DARK_GRAY.dispose();
 
803
        if (COLOR_RED != null) COLOR_RED.dispose();
 
804
        if (COLOR_GREEN != null) COLOR_GREEN.dispose();
 
805
        if (COLOR_YELLOW != null) COLOR_YELLOW.dispose();
 
806
        if (COLOR_BLUE != null) COLOR_BLUE.dispose();
 
807
        if (COLOR_MAGENTA != null) COLOR_MAGENTA.dispose();
 
808
        if (COLOR_CYAN != null) COLOR_CYAN.dispose();
 
809
        if (COLOR_WHITE != null) COLOR_WHITE.dispose();
795
810
        COLOR_BLACK = COLOR_DARK_RED = COLOR_DARK_GREEN = COLOR_DARK_YELLOW = COLOR_DARK_BLUE =
796
811
        COLOR_DARK_MAGENTA = COLOR_DARK_CYAN = COLOR_GRAY = COLOR_DARK_GRAY = COLOR_RED =
797
812
        COLOR_GREEN = COLOR_YELLOW = COLOR_BLUE = COLOR_MAGENTA = COLOR_CYAN = COLOR_WHITE = null;