Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / ProjectionContainerManager.java @ 44198

History | View | Annotate | Download (1021 Bytes)

1
package org.gvsig.andami;
2

    
3

    
4
/**
5
 * Don't use this class, it will be removed in nexts versions.
6
 * 
7
 * This is a patch to resolve access to projection of view in jcrs
8
 * plugin and will be removed in nexts versions.
9
 *  
10
 * @deprecated 
11
 */
12
public class ProjectionContainerManager {
13
        /**
14
         * @deprecated 
15
         */
16
        public interface ProjectionContainer {
17
                Object getCurrentProjection();
18
        }
19
        private static ProjectionContainer currentProjectionContainer = null;
20
        
21
        /**
22
         * @deprecated 
23
         */
24
        public static void set(ProjectionContainer container) {
25
                currentProjectionContainer = container;
26
        }
27

    
28
        /**
29
         * @deprecated 
30
         */
31
        public static void unset(ProjectionContainer container) {
32
                if( container == currentProjectionContainer ) {
33
                        currentProjectionContainer = null;
34
                }
35
        }
36
                
37
        /**
38
         * @deprecated 
39
         */
40
        public static Object getCurrentProjection() {
41
                if( currentProjectionContainer==null ) {
42
                    return null;
43
                } 
44
                return currentProjectionContainer.getCurrentProjection();
45
        }
46

    
47
}