01: package net.sourceforge.squirrel_sql.plugins.i18n;
02:
03: import net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel;
04: import net.sourceforge.squirrel_sql.client.IApplication;
05: import net.sourceforge.squirrel_sql.client.resources.SquirrelResources;
06: import net.sourceforge.squirrel_sql.client.plugin.PluginResources;
07: import net.sourceforge.squirrel_sql.fw.util.StringManager;
08: import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
09:
10: import java.awt.*;
11:
12: public class I18nPanelController implements IGlobalPreferencesPanel {
13: private static final StringManager s_stringMgr = StringManagerFactory
14: .getStringManager(I18nPanelController.class);
15:
16: private I18nPanel _panel;
17: private TranslatorsController _translatorsController;
18: private DevelopersController _developersController;
19:
20: I18nPanelController(PluginResources resources) {
21: _panel = new I18nPanel(resources);
22: _translatorsController = new TranslatorsController(
23: _panel.pnlTranslators);
24: _developersController = new DevelopersController(
25: _panel.pnlDevelopers);
26: }
27:
28: public void initialize(IApplication app) {
29: _translatorsController.initialize(app);
30: _developersController.initialize(app);
31: }
32:
33: public void uninitialize(IApplication app) {
34: _translatorsController.uninitialize();
35: _developersController.uninitialize();
36: }
37:
38: public void applyChanges() {
39: }
40:
41: public String getTitle() {
42: return s_stringMgr.getString("I18n.title");
43: }
44:
45: public String getHint() {
46: return s_stringMgr.getString("I18n.hint");
47: }
48:
49: public Component getPanelComponent() {
50: return _panel;
51: }
52:
53: }
|