Revision 38564 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/extension/ProjectExtension.java
ProjectExtension.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
import javax.swing.JOptionPane; |
33 | 33 |
|
34 |
import org.slf4j.Logger; |
|
35 |
import org.slf4j.LoggerFactory; |
|
36 |
|
|
34 |
import org.gvsig.andami.IconThemeHelper; |
|
37 | 35 |
import org.gvsig.andami.Launcher; |
38 | 36 |
import org.gvsig.andami.Launcher.TerminationProcess; |
39 | 37 |
import org.gvsig.andami.PluginServices; |
... | ... | |
59 | 57 |
import org.gvsig.utils.save.BeforeSavingListener; |
60 | 58 |
import org.gvsig.utils.save.SaveEvent; |
61 | 59 |
import org.gvsig.utils.swing.threads.IMonitorableTask; |
60 |
import org.slf4j.Logger; |
|
61 |
import org.slf4j.LoggerFactory; |
|
62 | 62 |
|
63 | 63 |
/** |
64 | 64 |
* Extension que proporciona controles para crear proyectos nuevos, abrirlos y |
... | ... | |
114 | 114 |
} |
115 | 115 |
|
116 | 116 |
private void registerIcons() { |
117 |
PluginServices.getIconTheme().registerDefault("project-new", |
|
118 |
this.getClass().getClassLoader().getResource("images/new.png")); |
|
119 |
|
|
120 |
PluginServices.getIconTheme().registerDefault("project-open", |
|
121 |
this.getClass().getClassLoader().getResource("images/open.png")); |
|
122 |
|
|
123 |
PluginServices.getIconTheme().registerDefault("project-save", |
|
124 |
this.getClass().getClassLoader().getResource("images/save.png")); |
|
125 |
|
|
126 |
PluginServices.getIconTheme().registerDefault("project-save-as", |
|
127 |
this.getClass().getClassLoader().getResource("images/save.png")); |
|
128 |
|
|
129 |
PluginServices.getIconTheme().registerDefault("application-exit", |
|
130 |
this.getClass().getClassLoader().getResource("images/salir.png")); |
|
117 |
IconThemeHelper.registerIcon("action", "application-project-new", this); |
|
118 |
IconThemeHelper.registerIcon("action", "application-project-open", this); |
|
119 |
IconThemeHelper.registerIcon("action", "application-project-save", this); |
|
120 |
IconThemeHelper.registerIcon("action", "application-project-save-as", this); |
|
121 |
IconThemeHelper.registerIcon("action", "application-exit", this); |
|
131 | 122 |
} |
132 | 123 |
|
133 | 124 |
private void loadInitialProject() { |
Also available in: Unified diff