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/PrintTable.java
PrintTable.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
import javax.swing.JTable; |
33 | 33 |
|
34 |
import org.gvsig.andami.IconThemeHelper; |
|
34 | 35 |
import org.gvsig.andami.PluginServices; |
35 | 36 |
import org.gvsig.andami.messages.NotificationManager; |
36 | 37 |
import org.gvsig.andami.plugins.Extension; |
... | ... | |
47 | 48 |
|
48 | 49 |
private JTable table = null; |
49 | 50 |
|
50 |
/** |
|
51 |
* DOCUMENT ME! |
|
52 |
*/ |
|
53 | 51 |
public void initialize() { |
54 |
registerIcons();
|
|
52 |
IconThemeHelper.registerIcon("action", "document-print", this);
|
|
55 | 53 |
} |
56 | 54 |
|
57 |
private void registerIcons() { |
|
58 |
PluginServices.getIconTheme().registerDefault("document-print", |
|
59 |
this.getClass().getClassLoader().getResource("images/print.png")); |
|
60 |
} |
|
61 |
|
|
62 |
/** |
|
63 |
* DOCUMENT ME! |
|
64 |
* |
|
65 |
* @param actionCommand |
|
66 |
* DOCUMENT ME! |
|
67 |
*/ |
|
68 | 55 |
public void execute(String s) { |
69 |
if (s.compareTo("PRINTTABLE") == 0) {
|
|
56 |
if (s.compareTo("application-print-table") == 0) {
|
|
70 | 57 |
IWindow f = PluginServices.getMDIManager().getActiveWindow(); |
71 | 58 |
try { |
72 | 59 |
table = |
Also available in: Unified diff