001: /*
002: * Copyright (C) 2005 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.plugins.mssql.gui;
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: import net.sourceforge.squirrel_sql.fw.util.IJavaPropertyNames;
032:
033: public class DummyPlugin implements IPlugin {
034:
035: public String getChangeLogFileName() {
036: return null;
037: }
038:
039: public String getContributors() {
040: return null;
041: }
042:
043: /* (non-Javadoc)
044: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getExternalService()
045: */
046: public Object getExternalService() {
047: // TODO Auto-generated method stub
048: return null;
049: }
050:
051: /* (non-Javadoc)
052: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getGlobalPreferencePanels()
053: */
054: public IGlobalPreferencesPanel[] getGlobalPreferencePanels() {
055: // TODO Auto-generated method stub
056: return null;
057: }
058:
059: /* (non-Javadoc)
060: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getHelpFileName()
061: */
062: public String getHelpFileName() {
063: // TODO Auto-generated method stub
064: return null;
065: }
066:
067: /* (non-Javadoc)
068: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getLicenceFileName()
069: */
070: public String getLicenceFileName() {
071: // TODO Auto-generated method stub
072: return null;
073: }
074:
075: /* (non-Javadoc)
076: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getNewSessionPropertiesPanels()
077: */
078: public INewSessionPropertiesPanel[] getNewSessionPropertiesPanels() {
079: // TODO Auto-generated method stub
080: return null;
081: }
082:
083: /* (non-Javadoc)
084: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getPluginAppSettingsFolder()
085: */
086: public File getPluginAppSettingsFolder() throws IOException,
087: IllegalStateException {
088: // TODO Auto-generated method stub
089: String filename = System
090: .getProperty(IJavaPropertyNames.USER_HOME)
091: + File.separator
092: + ".squirrel-sql"
093: + File.separator
094: + "plugins" + File.separator + "mssql" + File.separator;
095: System.out.println("filename=" + filename);
096: return new File(filename);
097: }
098:
099: /* (non-Javadoc)
100: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getPluginUserSettingsFolder()
101: */
102: public File getPluginUserSettingsFolder()
103: throws IllegalStateException, IOException {
104: // TODO Auto-generated method stub
105: return null;
106: }
107:
108: /* (non-Javadoc)
109: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getWebSite()
110: */
111: public String getWebSite() {
112: // TODO Auto-generated method stub
113: return null;
114: }
115:
116: /* (non-Javadoc)
117: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#initialize()
118: */
119: public void initialize() throws PluginException {
120: // TODO Auto-generated method stub
121:
122: }
123:
124: /* (non-Javadoc)
125: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#load(net.sourceforge.squirrel_sql.client.IApplication)
126: */
127: public void load(IApplication app) throws PluginException {
128: // TODO Auto-generated method stub
129:
130: }
131:
132: /* (non-Javadoc)
133: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#unload()
134: */
135: public void unload() {
136: // TODO Auto-generated method stub
137:
138: }
139:
140: /* (non-Javadoc)
141: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getInternalName()
142: */
143: public String getInternalName() {
144: return "dbcopy";
145: }
146:
147: /* (non-Javadoc)
148: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getDescriptiveName()
149: */
150: public String getDescriptiveName() {
151: return "DBCopy Plugin";
152: }
153:
154: /* (non-Javadoc)
155: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getAuthor()
156: */
157: public String getAuthor() {
158: return "Rob Manning";
159: }
160:
161: /* (non-Javadoc)
162: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getVersion()
163: */
164: public String getVersion() {
165: return "0.13";
166: }
167:
168: public void aliasCopied(SQLAlias source, SQLAlias target) {
169: // TODO Auto-generated method stub
170:
171: }
172:
173: public void aliasRemoved(SQLAlias alias) {
174: // TODO Auto-generated method stub
175:
176: }
177:
178: public IAliasPropertiesPanelController[] getAliasPropertiesPanelControllers(
179: SQLAlias alias) {
180: // TODO Auto-generated method stub
181: return null;
182: }
183:
184: }
|