Revision 886 org.gvsig.topology/trunk/org.gvsig.topology/org.gvsig.topology.lib/org.gvsig.topology.lib.api/src/main/java/org/gvsig/topology/lib/spi/AbstractTopologyRuleAction.java
AbstractTopologyRuleAction.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.topology.lib.spi; |
25 | 25 |
|
26 |
import java.net.URL; |
|
26 | 27 |
import org.gvsig.tools.dynobject.DynObject; |
27 | 28 |
import org.gvsig.topology.lib.api.TopologyLocator; |
28 | 29 |
import org.gvsig.topology.lib.api.TopologyRuleAction; |
... | ... | |
85 | 86 |
} |
86 | 87 |
|
87 | 88 |
private void load_from_resource() { |
88 |
JSONObject rule = RuleResourceLoaderUtils.getRule(this.idRule); |
|
89 |
URL url = RuleResourceLoaderUtils.getRuleURL(this.idRule); |
|
90 |
JSONObject rule = RuleResourceLoaderUtils.getRule(url); |
|
91 |
load_from_resource(url, rule); |
|
92 |
} |
|
93 |
|
|
94 |
protected void load_from_resource(URL jsonUrl, JSONObject rule) { |
|
89 | 95 |
if( rule == null ) { |
90 | 96 |
return; |
91 | 97 |
} |
... | ... | |
94 | 100 |
this.name = action.getString("name"); |
95 | 101 |
} |
96 | 102 |
if( action.has("description") ) { |
97 |
this.shortDescription = RuleResourceLoaderUtils.getDescription(this.idRule, action);
|
|
103 |
this.shortDescription = RuleResourceLoaderUtils.getDescription(jsonUrl, action);
|
|
98 | 104 |
} |
99 | 105 |
} |
100 | 106 |
|
Also available in: Unified diff