Revision 235
trunk/org.gvsig.dwg/org.gvsig.dwg.app/org.gvsig.dwg.app.mainplugin/src/main/java/org/gvsig/dwg/DWGRegisterExtension.java | ||
---|---|---|
23 | 23 |
|
24 | 24 |
import org.gvsig.andami.IconThemeHelper; |
25 | 25 |
import org.gvsig.andami.plugins.Extension; |
26 |
import org.gvsig.dwg.fmap.dal.store.dwg.DWGLibrary; |
|
27 | 26 |
import org.gvsig.dwg.fmap.dal.store.dwg.DWGStoreProvider; |
28 | 27 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
29 | 28 |
|
30 | 29 |
/** |
31 | 30 |
* Dummy DWG extension, as all the registration happens in the |
32 | 31 |
* {@link DWGLibrary}. |
33 |
*
|
|
32 |
* |
|
34 | 33 |
* @author gvSIG Team |
35 | 34 |
*/ |
36 | 35 |
public class DWGRegisterExtension extends Extension { |
trunk/org.gvsig.dwg/pom.xml | ||
---|---|---|
11 | 11 |
<parent> |
12 | 12 |
<groupId>org.gvsig</groupId> |
13 | 13 |
<artifactId>org.gvsig.desktop</artifactId> |
14 |
<version>2.0.148</version>
|
|
14 |
<version>2.0.151</version>
|
|
15 | 15 |
</parent> |
16 | 16 |
|
17 | 17 |
<url>https://devel.gvsig.org/redmine/projects/gvsig-dwg</url> |
trunk/org.gvsig.dwg/org.gvsig.dwg.provider.legend/src/main/java/org/gvsig/dwg/fmap/dal/store/dwg/legend/DWGGetLegendBuilder.java | ||
---|---|---|
33 | 33 |
import org.gvsig.tools.dynobject.DynClass; |
34 | 34 |
import org.gvsig.tools.dynobject.DynObject; |
35 | 35 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
36 |
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException; |
|
37 | 36 |
|
37 |
/** |
|
38 |
* @author gvSIG team |
|
39 |
* |
|
40 |
*/ |
|
38 | 41 |
public class DWGGetLegendBuilder extends AbstractDynMethod { |
39 | 42 |
private static Integer code = null; |
40 | 43 |
|
... | ... | |
42 | 45 |
if (code != null) { |
43 | 46 |
return; |
44 | 47 |
} |
45 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
48 |
DWGGetLegendBuilder legendBuilder = new DWGGetLegendBuilder(); |
|
49 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
46 | 50 |
.registerDynMethod( |
47 |
dwgLegendDynClass, new DWGGetLegendBuilder())); |
|
51 |
dwgLegendDynClass, legendBuilder)); |
|
52 |
legendBuilder.setCode(code); |
|
48 | 53 |
|
49 | 54 |
} |
50 | 55 |
public DWGGetLegendBuilder() { |
51 | 56 |
super(LegendBuilder.DYNMETHOD_BUILDER_NAME,"DWG LegendBuilder creator"); |
52 |
this.setCode(code); |
|
53 | 57 |
} |
54 | 58 |
|
55 | 59 |
@Override |
trunk/org.gvsig.dwg/org.gvsig.dwg.provider.legend/src/main/java/org/gvsig/dwg/fmap/dal/store/dwg/legend/DWGGetLabeling.java | ||
---|---|---|
43 | 43 |
if (code != null) { |
44 | 44 |
return; |
45 | 45 |
} |
46 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
47 |
.registerDynMethod(dwgLegendDynClass, new DWGGetLabeling())); |
|
46 |
DWGGetLabeling labeling = new DWGGetLabeling(); |
|
47 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
48 |
.registerDynMethod(dwgLegendDynClass, labeling)); |
|
49 |
labeling.setCode(code); |
|
48 | 50 |
|
49 | 51 |
} |
50 | 52 |
public DWGGetLabeling() { |
51 | 53 |
super(LegendBuilder.DYNMETHOD_GETLABELING_NAME,"DWG Labeling"); |
52 |
this.setCode(code); |
|
53 | 54 |
} |
54 | 55 |
|
55 | 56 |
@Override |
trunk/org.gvsig.dwg/org.gvsig.dwg.provider.legend/src/main/java/org/gvsig/dwg/fmap/dal/store/dwg/legend/DWGGetLegend.java | ||
---|---|---|
35 | 35 |
import org.gvsig.tools.dynobject.DynClass; |
36 | 36 |
import org.gvsig.tools.dynobject.DynObject; |
37 | 37 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
38 |
import org.gvsig.tools.dynobject.exception.DynMethodNotSupportedException; |
|
39 | 38 |
|
39 |
/** |
|
40 |
* @author gvSIG Team |
|
41 |
* |
|
42 |
*/ |
|
40 | 43 |
public class DWGGetLegend extends AbstractDynMethod { |
41 | 44 |
private static Integer code = null; |
42 | 45 |
|
... | ... | |
44 | 47 |
if (code != null) { |
45 | 48 |
return; |
46 | 49 |
} |
47 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
48 |
.registerDynMethod(dwgLegendDynClass, new DWGGetLegend())); |
|
50 |
DWGGetLegend legend = new DWGGetLegend(); |
|
51 |
code = new Integer(ToolsLocator.getDynObjectManager() |
|
52 |
.registerDynMethod(dwgLegendDynClass, legend)); |
|
53 |
legend.setCode(code); |
|
49 | 54 |
|
50 | 55 |
} |
51 |
|
|
56 |
|
|
52 | 57 |
public DWGGetLegend() { |
53 | 58 |
super(LegendBuilder.DYNMETHOD_GETLEGEND_NAME,"DWG Legend"); |
54 |
this.setCode(code); |
|
55 | 59 |
} |
56 | 60 |
|
57 | 61 |
@Override |
Also available in: Unified diff