Revision 38564 branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/extension/TableOperations.java
TableOperations.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
import javax.swing.JOptionPane; |
29 | 29 |
|
30 |
import org.gvsig.andami.IconThemeHelper; |
|
30 | 31 |
import org.gvsig.andami.PluginServices; |
31 | 32 |
import org.gvsig.andami.messages.NotificationManager; |
32 | 33 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
75 | 76 |
tableDcouments |
76 | 77 |
.toArray(new TableDocument[tableDcouments.size()]); |
77 | 78 |
|
78 |
if ("LINK".equals(actionCommand)) {
|
|
79 |
if ("table-create-link".equals(actionCommand)) {
|
|
79 | 80 |
try { |
80 | 81 |
final ObjectSelectionStep sourceTable = |
81 | 82 |
new ObjectSelectionStep(); |
... | ... | |
373 | 374 |
* @see org.gvsig.andami.plugins.IExtension#initialize() |
374 | 375 |
*/ |
375 | 376 |
public void initialize() { |
376 |
registerIcons(); |
|
377 |
// FIXME |
|
378 |
// org.gvsig.fmap.data.feature.joinstore.Register.selfRegister(); |
|
377 |
IconThemeHelper.registerIcon("action", "table-create-link", this); |
|
379 | 378 |
|
380 | 379 |
} |
381 | 380 |
|
382 |
private void registerIcons() { |
|
383 |
PluginServices.getIconTheme().registerDefault( |
|
384 |
"table-join", |
|
385 |
this.getClass().getClassLoader() |
|
386 |
.getResource("images/tablejoin.png")); |
|
387 |
|
|
388 |
PluginServices.getIconTheme().registerDefault( |
|
389 |
"table-link", |
|
390 |
this.getClass().getClassLoader() |
|
391 |
.getResource("images/tablelink.png")); |
|
392 |
} |
|
393 |
|
|
394 | 381 |
/** |
395 | 382 |
* @see org.gvsig.andami.plugins.IExtension#isEnabled() |
396 | 383 |
*/ |
Also available in: Unified diff