01: package net.sourceforge.squirrel_sql.plugins.hibernate.configuration;
02:
03: import net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel;
04: import net.sourceforge.squirrel_sql.client.IApplication;
05: import net.sourceforge.squirrel_sql.fw.util.StringManager;
06: import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
07: import net.sourceforge.squirrel_sql.plugins.hibernate.configuration.HibernateConfigController;
08:
09: import java.awt.*;
10:
11: public class HibernatePrefsTab implements IGlobalPreferencesPanel {
12: private static final StringManager s_stringMgr = StringManagerFactory
13: .getStringManager(HibernatePrefsTab.class);
14:
15: private HibernateConfigController _ctrl;
16:
17: public HibernatePrefsTab(HibernateConfigController ctrl) {
18: _ctrl = ctrl;
19: }
20:
21: public void initialize(IApplication app) {
22: _ctrl.initialize();
23: }
24:
25: public void uninitialize(IApplication app) {
26: }
27:
28: public void applyChanges() {
29: _ctrl.applyChanges();
30: }
31:
32: public String getTitle() {
33: //i18n[HibernatePrefsTab.title=Hibernate]
34: return s_stringMgr.getString("HibernatePrefsTab.title");
35: }
36:
37: public String getHint() {
38: //i18n[HibernatePrefsTab.hint=Hibernate configurations]
39: return s_stringMgr.getString("HibernatePrefsTab.hint");
40: }
41:
42: public Component getPanelComponent() {
43: return _ctrl.getPanel();
44: }
45: }
|