001: /*
002: * Copyright (C) 2006 Rob Manning
003: * manningr@users.sourceforge.net
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2.1 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
018: */
019: package net.sourceforge.squirrel_sql.client.plugin;
020:
021: import java.io.File;
022: import java.io.IOException;
023:
024: import net.sourceforge.squirrel_sql.client.IApplication;
025: import net.sourceforge.squirrel_sql.client.gui.db.SQLAlias;
026: import net.sourceforge.squirrel_sql.client.gui.db.aliasproperties.IAliasPropertiesPanelController;
027: import net.sourceforge.squirrel_sql.client.plugin.IPlugin;
028: import net.sourceforge.squirrel_sql.client.plugin.PluginException;
029: import net.sourceforge.squirrel_sql.client.preferences.IGlobalPreferencesPanel;
030: import net.sourceforge.squirrel_sql.client.preferences.INewSessionPropertiesPanel;
031:
032: public class MockPlugin implements IPlugin {
033:
034: private File pluginAppSettingsFolder = null;
035:
036: public MockPlugin(String settingsFolder) {
037: pluginAppSettingsFolder = new File(settingsFolder);
038: }
039:
040: public void load(IApplication app) throws PluginException {
041: // TODO Auto-generated method stub
042:
043: }
044:
045: public void initialize() throws PluginException {
046: // TODO Auto-generated method stub
047:
048: }
049:
050: public void unload() {
051: // TODO Auto-generated method stub
052:
053: }
054:
055: public String getInternalName() {
056: // TODO Auto-generated method stub
057: return null;
058: }
059:
060: public String getDescriptiveName() {
061: // TODO Auto-generated method stub
062: return null;
063: }
064:
065: public String getAuthor() {
066: // TODO Auto-generated method stub
067: return null;
068: }
069:
070: public String getContributors() {
071: // TODO Auto-generated method stub
072: return null;
073: }
074:
075: public String getWebSite() {
076: // TODO Auto-generated method stub
077: return null;
078: }
079:
080: public String getVersion() {
081: // TODO Auto-generated method stub
082: return null;
083: }
084:
085: public String getHelpFileName() {
086: // TODO Auto-generated method stub
087: return null;
088: }
089:
090: public String getChangeLogFileName() {
091: // TODO Auto-generated method stub
092: return null;
093: }
094:
095: public String getLicenceFileName() {
096: // TODO Auto-generated method stub
097: return null;
098: }
099:
100: public IGlobalPreferencesPanel[] getGlobalPreferencePanels() {
101: // TODO Auto-generated method stub
102: return null;
103: }
104:
105: public INewSessionPropertiesPanel[] getNewSessionPropertiesPanels() {
106: // TODO Auto-generated method stub
107: return null;
108: }
109:
110: public File getPluginAppSettingsFolder() throws IOException,
111: IllegalStateException {
112: return pluginAppSettingsFolder;
113: }
114:
115: public File getPluginUserSettingsFolder()
116: throws IllegalStateException, IOException {
117: return pluginAppSettingsFolder;
118: }
119:
120: public Object getExternalService() {
121: // TODO Auto-generated method stub
122: return null;
123: }
124:
125: public void aliasCopied(SQLAlias source, SQLAlias target) {
126: // TODO Auto-generated method stub
127:
128: }
129:
130: public void aliasRemoved(SQLAlias alias) {
131: // TODO Auto-generated method stub
132:
133: }
134:
135: public IAliasPropertiesPanelController[] getAliasPropertiesPanelControllers(
136: SQLAlias alias) {
137: // TODO Auto-generated method stub
138: return null;
139: }
140:
141: }
|