Revision 13777 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/colortable/ui/ColorTablePanel.java
ColorTablePanel.java | ||
---|---|---|
354 | 354 |
buttonAdd = new JButton(icon); |
355 | 355 |
buttonAdd.setPreferredSize(new Dimension(22, 19)); |
356 | 356 |
buttonAdd.addActionListener(this); |
357 |
buttonAdd.setToolTipText(PluginServices.getText(this, "nueva_libreria")); |
|
357 | 358 |
} |
358 | 359 |
return buttonAdd; |
359 | 360 |
} |
... | ... | |
373 | 374 |
buttonDel = new JButton(icon); |
374 | 375 |
buttonDel.setPreferredSize(new Dimension(22, 19)); |
375 | 376 |
buttonDel.addActionListener(this); |
377 |
buttonDel.setToolTipText(PluginServices.getText(this, "borrar_libreria")); |
|
376 | 378 |
} |
377 | 379 |
return buttonDel; |
378 | 380 |
} |
... | ... | |
443 | 445 |
|
444 | 446 |
ArrayList colorItems = ((ColorTableIconPainter) getListViewComponent().getLastSelectedItem().getIcon()).getColorItems(); |
445 | 447 |
|
448 |
/* |
|
446 | 449 |
switch (getTabbedPane().getSelectedIndex()) { |
447 | 450 |
case 0: |
448 | 451 |
getTabTable().reloadItems(colorItems); |
... | ... | |
451 | 454 |
getTabInterpolated().reloadItems(colorItems); |
452 | 455 |
break; |
453 | 456 |
} |
457 |
*/ |
|
458 |
|
|
459 |
getTabTable().reloadItems(colorItems); |
|
460 |
getTabInterpolated().reloadItems(colorItems); |
|
454 | 461 |
|
455 | 462 |
lastColorTable = ((ColorTableIconPainter) getListViewComponent().getLastSelectedItem().getIcon()).getColorTable(); |
456 | 463 |
if (isNewSelection) |
... | ... | |
605 | 612 |
if (!active) |
606 | 613 |
return; |
607 | 614 |
|
615 |
active = false; |
|
616 |
ArrayList colorItems = ((ColorTableIconPainter) getListViewComponent().getLastSelectedItem().getIcon()).getColorItems(); |
|
617 |
getTabTable().reloadItems(colorItems); |
|
618 |
active = true; |
|
619 |
|
|
608 | 620 |
getListViewComponent().repaint(); |
609 |
|
|
610 | 621 |
getImageNavigator().updateBuffer(); |
611 | 622 |
} |
612 | 623 |
|
Also available in: Unified diff