1 | public class DataImportGlobalPreferencesTab implements IGlobalPreferencesPanel {↵ | | 1 | public class DBCopyGlobalPreferencesTab implements IGlobalPreferencesPanel {↵
|
|
2 | PreferencesPanel prefs = null;↵ | | 2 | PreferencesPanel prefs = null;↵
|
3 | private JScrollPane myscrolledPanel;↵ | | 3 | private JScrollPane _myscrolledPanel;↵
|
| | | 4 | ↵
|
4 | private static final StringManager stringMgr =↵ | | 5 | private static final StringManager s_stringMgr =↵
|
5 | StringManagerFactory.getStringManager(DataImportGlobalPreferencesTab.class); ↵ | | 6 | StringManagerFactory.getStringManager(DBCopyGlobalPreferencesTab.class); ↵
|
6 | ↵ | | 7 | ↵
|
7 | /**↵ | | |
|
8 | * Standard constructor↵ | | |
|
9 | */↵ | | 8 | ↵
|
10 | public DataImportGlobalPreferencesTab() {↵ | | 9 | public DBCopyGlobalPreferencesTab() {↵
|
11 | prefs = new PreferencesPanel(PreferencesManager.getPreferences());↵ | | 10 | prefs = new PreferencesPanel(PreferencesManager.getPreferences());↵
|
12 | myscrolledPanel = new JScrollPane(prefs); ↵ | | 11 | _myscrolledPanel = new JScrollPane(prefs); ↵
|
13 | myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);↵ | | 12 | _myscrolledPanel.getVerticalScrollBar().setUnitIncrement(10);↵
|
14 | }↵ | | 13 | }↵
|
15 | ↵ | | 14 | ↵
|
16 | /* (non-Javadoc)↵ | | |
|
17 | * @see net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel#initialize(net.sourceforge.squirrel_sql.client.IApplication)↵ | | |
|
18 | */↵ | | |
|
19 | public void initialize(IApplication app) {↵ | | |
|
20 | /* Do Nothing */↵ | | |
|
21 | }↵ | | |
|
|
22 | /* (non-Javadoc)↵ | | |
|
23 | * @see net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel#uninitialize(net.sourceforge.squirrel_sql.client.IApplication)↵ | | |
|
24 | */↵ | | |
|
25 | public void uninitialize(IApplication app) {↵ | | |
|
26 | /* Do Nothing */↵ | | |
|
27 | }↵ | | |
|
|
28 | /* (non-Javadoc)↵ | | |
|
29 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#applyChanges()↵ | | |
|
30 | */↵ | | |
|
31 | ↵ | | 15 | public void initialize(IApplication app) {↵
|
| | | 16 | /* Do Nothing */↵
|
| | | 17 | }↵
|
|
| | | 18 | public void uninitialize(IApplication app) {↵
|
| | | 19 | /* Do Nothing */↵
|
| | | 20 | } ↵
|
| | | 21 | ↵
|
32 | public void applyChanges() {↵ | | 22 | public void applyChanges() {↵
|
33 | if (prefs != null) {↵ | | 23 | if (prefs != null) {↵
|
34 | prefs.applyChanges();↵ | | 24 | prefs.applyChanges();↵
|
35 | }↵ | | 25 | }↵
|
36 | }↵ | | |
|
|
37 | ↵ | | 26 | }↵
|
|
38 | /* (non-Javadoc)↵ | | 27 | /* (non-Javadoc)↵
|
39 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getHint()↵ | | 28 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#get↵
|
40 | */↵ | | |
|
41 | ↵ | | 29 | Title()↵
|
| | | 30 | */↵
|
42 | public String getHint() {↵ | | 31 | public String getTitle() {↵
|
43 | // i18n[DataImportGlobalPreferencesTab.hint=Preferences for data import]↵ | | 32 | //i18n[DBCopyGlobalPreferencesTab.title=DB Copy]↵
|
44 | return stringMgr.getString("DataImportGlobalPreferencesTab.hint"); ↵ | | 33 | return s_stringMgr.getString("DBCopyGlobalPreferencesTab.↵
|
45 | }↵ | | |
|
|
46 | ↵ | | 34 | title");↵
|
| | | 35 | }↵
|
|
47 | /* (non-Javadoc)↵ | | 36 | /* (non-Javadoc)↵
|
48 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getPanelComponent()↵ | | 37 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#get↵
|
49 | */↵ | | |
|
50 | public Component getPanelComponent() {↵ | | |
|
51 | return myscrolledPanel;↵ | | |
|
52 | }↵ | | |
|
|
53 | /* (non-Javadoc)↵ | | |
|
54 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getTitle()↵ | | |
|
55 | */↵ | | |
|
56 | ↵ | | 38 | Hint()↵
|
| | | 39 | */↵
|
57 | public String getTitle() {↵ | | 40 | public String getHint() {↵
|
58 | //i18n[DataImportGlobalPreferencesTab.title=Data import]↵ | | 41 | // i18n[DBCopyGlobalPreferencesTab.hint=Preferences for DB Copy]↵
|
59 | return stringMgr.getString("DataImportGlobalPreferencesTab.title");↵ | | 42 | return s_stringMgr.getString("DBCopyGlobalPreferencesTab.↵
|
60 | | | 43 | hint"); ↵
|
| | | 44 | }↵
|
|
| | | 45 | public Component getPanelComponent() {↵
|
| | | 46 | return _myscrolledPanel;↵
|
| | | 47 |
|