root / branches / v2_0_0_prep / libraries / libFMap_dataFile / src / org / gvsig / data / datastores / vectorial / file / dgn / Register.java @ 21613
History | View | Annotate | Download (764 Bytes)
1 |
package org.gvsig.data.datastores.vectorial.file.dgn; |
---|---|
2 |
|
3 |
import org.gvsig.data.DataManager; |
4 |
import org.gvsig.data.datastores.vectorial.file.dgn.operation.DefaultLabelingStrategyOperation; |
5 |
import org.gvsig.data.datastores.vectorial.file.dgn.operation.DefaultLegendOperation; |
6 |
|
7 |
public class Register { |
8 |
public static void selfRegister() { |
9 |
DataManager dsm = DataManager.getManager(); |
10 |
|
11 |
dsm.registerDataStore(DGNStore.DATASTORE_NAME, |
12 |
DGNStore.class, |
13 |
DGNStoreParameters.class |
14 |
); |
15 |
//Register operations
|
16 |
if (DefaultLegendOperation.CODE < 0){ |
17 |
throw new RuntimeException("Register Operation exception"); |
18 |
} |
19 |
|
20 |
if (DefaultLabelingStrategyOperation.CODE < 0){ |
21 |
throw new RuntimeException("Register Operation exception"); |
22 |
} |
23 |
|
24 |
} |
25 |
} |