Revision 38781 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/imp/DefaultAppgvSIGManager.java
DefaultAppgvSIGManager.java | ||
---|---|---|
35 | 35 |
import java.util.Iterator; |
36 | 36 |
import java.util.List; |
37 | 37 |
|
38 |
import javax.swing.JComponent; |
|
39 |
|
|
40 | 38 |
import org.cresques.cts.IProjection; |
41 | 39 |
import org.gvsig.about.AboutLocator; |
42 | 40 |
import org.gvsig.about.AboutManager; |
... | ... | |
464 | 462 |
MainFrame main = PluginServices.getMainFrame(); |
465 | 463 |
return main.createComponentWithParams(theClass, parameters); |
466 | 464 |
} |
465 |
|
|
466 |
public String translate(String message, String... args) { |
|
467 |
String msg = message; |
|
468 |
if (msg == null) { |
|
469 |
return ""; |
|
470 |
} |
|
471 |
msg = org.gvsig.i18n.Messages.getText(msg, args); |
|
472 |
if (msg == null) { |
|
473 |
msg = "_" + message.replace("_", " "); |
|
474 |
} |
|
475 |
return msg; |
|
476 |
} |
|
477 |
|
|
478 |
public Component getRootComponent() { |
|
479 |
return (Component) PluginServices.getMainFrame(); |
|
480 |
} |
|
467 | 481 |
} |
Also available in: Unified diff