Revision 32880 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dgn/legend/DGNGetLabeling.java

View differences:

DGNGetLabeling.java
34 34
import org.gvsig.tools.dynobject.DynClass;
35 35
import org.gvsig.tools.dynobject.DynMethod;
36 36
import org.gvsig.tools.dynobject.DynObject;
37
import org.gvsig.tools.dynobject.DynObjectManager;
37 38
import org.gvsig.tools.dynobject.exception.DynMethodException;
38 39
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException;
39 40

  
40 41
public class DGNGetLabeling implements DynMethod {
41
	private static Integer code = null;
42
	private static int code = DynObjectManager.NULLCODE;
42 43

  
43
	static void register(DynClass dxfLegendDynClass) {
44
		if (code != null) {
44
	static void register(DynClass DGNDynClass) {
45
		if (code != DynObjectManager.NULLCODE) {
45 46
			return;
46 47
		}
47
		code = new Integer(ToolsLocator.getDynObjectManager()
48
				.registerDynMethod(dxfLegendDynClass, new DGNGetLabeling()));
48
		code = ToolsLocator.getDynObjectManager().registerDynMethod(
49
			DGNDynClass, 
50
			new DGNGetLabeling()
51
		);
49 52

  
50 53
	}
51 54
	public int getCode() throws DynMethodNotSupportedException {
52
		return code.intValue();
55
		return code;
53 56
	}
54 57

  
55 58
	public String getDescription() {

Also available in: Unified diff