1 | public class RefactoringPreferencesTab implements IGlobalPreferencesPanel {↵ | | 1 | public class SQLScriptPreferencesTab implements IGlobalPreferencesPanel {↵
|
|
2 | RefactoringPreferencesPanel prefsPanel = null;↵ | | 2 | SQLScriptPreferencesPanel prefsPanel = null;↵
|
3 | private JScrollPane _myscrolledPanel;↵ | | 3 | private JScrollPane _myscrolledPanel;↵
|
4 | ↵ | | 4 | ↵
|
5 | private static final StringManager s_stringMgr =↵ | | 5 | private static final StringManager s_stringMgr =↵
|
6 | StringManagerFactory.getStringManager(RefactoringPreferencesTab.class); ↵ | | 6 | StringManagerFactory.getStringManager(SQLScriptPreferencesTab.class); ↵
|
7 | ↵ | | 7 | ↵
|
8 | ↵ | | 8 | ↵
|
9 | PluginResources _resources = null;↵ | | 9 | PluginResources _resources = null;↵
|
10 | ↵ | | 10 | ↵
|
11 | public RefactoringPreferencesTab() {↵ | | 11 | public SQLScriptPreferencesTab() {↵
|
12 | ↵ | | 12 | ↵
|
13 | RefactoringPreferenceBean bean = ↵ | | 13 | SQLScriptPreferenceBean bean = ↵
|
14 | RefactoringPreferencesManager.getPreferences();↵ | | 14 | SQLScriptPreferencesManager.getPreferences();↵
|
15 | prefsPanel = new RefactoringPreferencesPanel(bean);↵ | | 15 | prefsPanel = new SQLScriptPreferencesPanel(bean);↵
|
16 | _myscrolledPanel = new JScrollPane(prefsPanel);↵ | | 16 | _myscrolledPanel = new JScrollPane(prefsPanel);↵
|
17 | ↵ | | 17 | ↵
|
18 | }↵ | | 18 | }↵
|
19 | ↵ | | 19 | ↵
|
20 | public void initialize(IApplication app) {↵ | | 20 | public void initialize(IApplication app) {↵
|
21 | /* Do Nothing */↵ | | 21 | /* Do Nothing */↵
|
22 | }↵ | | 22 | }↵
|
|
23 | public void uninitialize(IApplication app) {↵ | | 23 | public void uninitialize(IApplication app) {↵
|
24 | /* Do Nothing */↵ | | 24 | /* Do Nothing */↵
|
25 | } ↵ | | 25 | } ↵
|
26 | ↵ | | 26 | ↵
|
27 | public void applyChanges() {↵ | | 27 | public void applyChanges() {↵
|
28 | if (prefsPanel != null) {↵ | | 28 | if (prefsPanel != null) {↵
|
29 | prefsPanel.applyChanges();↵ | | 29 | prefsPanel.applyChanges();↵
|
30 | }↵ | | 30 | }↵
|
31 | }↵ | | 31 | }↵
|
|
32 | /* (non-Javadoc)↵ | | 32 | /* (non-Javadoc)↵
|
33 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getTitle()↵ | | 33 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getTitle()↵
|
34 | */↵ | | 34 | */↵
|
35 | public String getTitle() {↵ | | 35 | public String getTitle() {↵
|
36 | //i18n[RefactoringPreferencesTab.title=Refactoring]↵ | | 36 | //i18n[SQLScriptPreferencesTab.title=SQL Scripts]↵
|
37 | return s_stringMgr.getString("RefactoringPreferencesTab.title");↵ | | 37 | return s_stringMgr.getString("SQLScriptPreferencesTab.title");↵
|
38 | }↵ | | 38 | }↵
|
|
39 | /* (non-Javadoc)↵ | | 39 | /* (non-Javadoc)↵
|
40 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getHint()↵ | | 40 | * @see net.sourceforge.squirrel_sql.client.util.IOptionPanel#getHint()↵
|
41 | */↵ | | 41 | */↵
|
42 | public String getHint() {↵ | | 42 | public String getHint() {↵
|
43 | // i18n[RefactoringPreferencesTab.hint=Settings for the Refactoring plugin]↵ | | 43 | // i18n[SQLScriptPreferencesTab.hint=Settings for the SQL Script plugin]↵
|
44 | return s_stringMgr.getString("RefactoringPreferencesTab.hint"); ↵ | | 44 | return s_stringMgr.getString("SQLScriptPreferencesTab.hint"); ↵
|
45 | }↵ | | 45 | }↵
|
|
46 | public Component getPanelComponent() {↵ | | 46 | public Component getPanelComponent() {↵
|
47 | return _myscrolledPanel | | 47 | return _myscrolledPanel
|