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.oracle.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"
095: + File.separator
096: + "oracle"
097: + File.separator;
098: System.out.println("filename=" + filename);
099: return new File(filename);
100: }
101:
102: /* (non-Javadoc)
103: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getPluginUserSettingsFolder()
104: */
105: public File getPluginUserSettingsFolder()
106: throws IllegalStateException, IOException {
107: // TODO Auto-generated method stub
108: return null;
109: }
110:
111: /* (non-Javadoc)
112: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getWebSite()
113: */
114: public String getWebSite() {
115: // TODO Auto-generated method stub
116: return null;
117: }
118:
119: /* (non-Javadoc)
120: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#initialize()
121: */
122: public void initialize() throws PluginException {
123: // TODO Auto-generated method stub
124:
125: }
126:
127: /* (non-Javadoc)
128: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#load(net.sourceforge.squirrel_sql.client.IApplication)
129: */
130: public void load(IApplication app) throws PluginException {
131: // TODO Auto-generated method stub
132:
133: }
134:
135: /* (non-Javadoc)
136: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#unload()
137: */
138: public void unload() {
139: // TODO Auto-generated method stub
140:
141: }
142:
143: /* (non-Javadoc)
144: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getInternalName()
145: */
146: public String getInternalName() {
147: return "dbcopy";
148: }
149:
150: /* (non-Javadoc)
151: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getDescriptiveName()
152: */
153: public String getDescriptiveName() {
154: return "DBCopy Plugin";
155: }
156:
157: /* (non-Javadoc)
158: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getAuthor()
159: */
160: public String getAuthor() {
161: return "Rob Manning";
162: }
163:
164: /* (non-Javadoc)
165: * @see net.sourceforge.squirrel_sql.client.plugin.IPlugin#getVersion()
166: */
167: public String getVersion() {
168: return "0.13";
169: }
170:
171: public void aliasCopied(SQLAlias source, SQLAlias target) {
172: // TODO Auto-generated method stub
173:
174: }
175:
176: public void aliasRemoved(SQLAlias alias) {
177: // TODO Auto-generated method stub
178:
179: }
180:
181: public IAliasPropertiesPanelController[] getAliasPropertiesPanelControllers(
182: SQLAlias alias) {
183: // TODO Auto-generated method stub
184: return null;
185: }
186:
187: }
|