Revision 3572 org.gvsig.vcsgis/trunk/org.gvsig.vcsgis/org.gvsig.vcsgis.swing/org.gvsig.vcsgis.swing.impl/src/main/java/org/gvsig/vcsgis/swing/impl/VCSGisEntitySelectorControllerJList.java
VCSGisEntitySelectorControllerJList.java | ||
---|---|---|
199 | 199 |
@Override |
200 | 200 |
public void setWorkspace(VCSGisWorkspace workspace) { |
201 | 201 |
this.workspace = workspace; |
202 |
reloadEntities(); |
|
203 |
} |
|
204 |
|
|
205 |
@Override |
|
206 |
public VCSGisWorkspace getWorkspace() { |
|
207 |
return this.workspace; |
|
208 |
} |
|
209 |
|
|
210 |
@Override |
|
211 |
public void reloadEntities() { |
|
202 | 212 |
if (workspace == null) { |
203 | 213 |
this.filteredList.getModel().clear(); |
204 | 214 |
return; |
... | ... | |
206 | 216 |
Thread task = new Thread(() -> {reloadTables(this.workspace);}, "VCSGisEntitySelectorReloadEntities"); |
207 | 217 |
task.start(); |
208 | 218 |
} |
209 |
|
|
210 |
@Override |
|
211 |
public VCSGisWorkspace getWorkspace() { |
|
212 |
return this.workspace; |
|
213 |
} |
|
214 | 219 |
|
215 | 220 |
private void reloadTables(VCSGisWorkspace workspace) { |
216 | 221 |
I18nManager i18n = ToolsLocator.getI18nManager(); |
Also available in: Unified diff