Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 79782 Details for
Bug 203158
Need strict separation between UI and non-UI enablement plug-ins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for DB2 enablement refactoring
patch_db2.txt (text/plain), 111.31 KB, created by
Larry Dunnell
on 2007-10-04 19:42:36 EDT
(
hide
)
Description:
Patch for DB2 enablement refactoring
Filename:
MIME Type:
Creator:
Larry Dunnell
Created:
2007-10-04 19:42:36 EDT
Size:
111.31 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.datatools.enablement.ibm.db2.zseries >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.zseries/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:27 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:24 -0000 >@@ -1,5 +1,12 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Zseries Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.zseries >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.zseries;singleton:=true >+Bundle-Version: 1.0.0.200709132 >+Bundle-Localization: plugin >+Bundle-Vendor: %providerName >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.internal.zseries >+Require-Bundle: org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)" >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.zseries/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:27 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:24 -0000 >@@ -1,4 +1,8 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ plugin.xml,\ >+ plugin.properties,\ >+ icons/,\ >+ about.html >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,155 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ <extension >+ point="org.eclipse.datatools.connectivity.sqm.core.databaseRecognition"> >+ <recognizer >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.zseries.ZSeriesDatabaseRecognizer"> >+ </recognizer> >+ </extension> >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <connectionProfile >+ category="org.eclipse.datatools.connectivity.db.category" >+ configurationType="org.eclipse.datatools.connectivity.db.generic.configurationType" >+ icon="icons/jdbc_16.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.connectionProfile" >+ name="%profile.db2.zseries.title" >+ pingFactory="org.eclipse.datatools.enablement.ibm.db2.internal.zseries.JDBCZSeriesConnectionFactory" >+ propertiesPersistenceHook="org.eclipse.datatools.enablement.ibm.db2.internal.zseries.ZSeriesDBPropertiesPersistenceHook"/> >+ <connectionFactory >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.zseries.JDBCZSeriesConnectionFactory" >+ id="java.sql.Connection" >+ name="%jdbc.connection.name" >+ profile="org.eclipse.datatools.enablement.ibm.db2.zseries.connectionProfile"/> >+ </extension> >+ >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.driverExtension"> >+ <category >+ parentCategory="org.eclipse.datatools.connectivity.db.driverCategory" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.driverCategory" >+ name="%DB2_UDB_ZSERIES_CATEGORY_NAME"/> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.driverTemplate" >+ jarList="C:\Program Files\IBM\SQLLIB\java\db2jcc.jar,C:\Program Files\IBM\SQLLIB\java\db2jcc_license_cisuz.jar" >+ name="%org.eclipse.datatools.enablement.ibm.db2.zseries.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.zseries.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.ibm.db2.jcc.DB2Driver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB zSeries" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V9 (New-Function Mode)" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="location" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:db2://host:446/location:retrieveMessagesFromServerOnGetMessage=true;" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.other.driverTemplate" >+ jarList="" >+ name="%org.eclipse.datatools.enablement.ibm.db2.zseries.other.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.zseries.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB zSeries" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V9 (New-Function Mode)" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ </extension> >+ </plugin> >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB zSeries Plug-in >+providerName=Eclipse.org >+ >+driverClass = Driver Class >+driverVendor = Vendor >+driverVersion = Version >+driverDBName = Database Name >+driverConnectionURL = Connection URL >+driverUID = User ID >+driverPWD = Password >+ >+DB2_UDB_ZSERIES_CATEGORY_NAME = DB2 for z/OS >+ >+org.eclipse.datatools.enablement.ibm.db2.zseries.driverTemplate = IBM Data Server Driver for JDBC and SQLJ >+org.eclipse.datatools.enablement.ibm.db2.zseries.other.driverTemplate = Other Driver >+ >+jdbc.connection.name = JDBC Connection >+profile.db2.zseries.title = DB2 for z/OS >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesJDBCConnection.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesJDBCConnection.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesJDBCConnection.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesJDBCConnection.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,69 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.zseries; >+ >+import java.sql.Connection; >+import java.sql.DatabaseMetaData; >+import java.sql.SQLException; >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+import org.eclipse.datatools.connectivity.Version; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.JDBCConnection; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinitionRegistry; >+import org.eclipse.datatools.connectivity.sqm.internal.core.RDBCorePlugin; >+ >+public class JDBCZSeriesJDBCConnection extends JDBCConnection { >+ >+ private Version techVersion = Version.NULL_VERSION; >+ private Version serverVersion = Version.NULL_VERSION; >+ private String serverName; >+ >+ public JDBCZSeriesJDBCConnection(IConnectionProfile profile, Class factoryClass) { >+ super(profile, factoryClass); >+ } >+ >+ public String getProviderName() { >+ return serverName; >+ } >+ >+ public Version getProviderVersion() { >+ return serverVersion; >+ } >+ >+ public Version getTechnologyVersion() { >+ return techVersion; >+ } >+ >+ protected void initVersions() { >+ try { >+ DatabaseMetaData dbmd = ((Connection) this.getRawConnection()) >+ .getMetaData(); >+ try { >+ Properties props = getConnectionProfile().getBaseProperties(); >+ String vendor = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID); >+ String version = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID); >+ DatabaseDefinitionRegistry dbDefRegistry = RDBCorePlugin.getDefault().getDatabaseDefinitionRegistry(); >+ DatabaseDefinition dbDef = dbDefRegistry.getDefinition(vendor, version); >+ serverName = dbDef.getProductDisplayString() + " " + dbDef.getVersionDisplayString(); >+ } catch (Exception e) { >+ } >+ try { >+ techVersion = new Version(dbmd.getJDBCMajorVersion(), dbmd >+ .getJDBCMinorVersion(), 0, new String()); >+ } catch (Exception e) { >+ } >+ } catch (SQLException e) { >+ } >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/IZSeriesConnectionProfileConstants.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/IZSeriesConnectionProfileConstants.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/IZSeriesConnectionProfileConstants.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/IZSeriesConnectionProfileConstants.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,18 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.zseries; >+ >+ >+public interface IZSeriesConnectionProfileConstants { >+ >+ public static final String DB2_ZSERIES_CATEGORY_ID = "org.eclipse.datatools.enablement.ibm.db2.zseries.driverCategory"; //$NON-NLS-1$ >+ >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDatabaseRecognizer.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDatabaseRecognizer.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDatabaseRecognizer.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDatabaseRecognizer.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,59 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.zseries; >+ >+import java.sql.Connection; >+ >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.DatabaseDefinitionRegistryImpl; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.IDatabaseRecognizer; >+ >+public class ZSeriesDatabaseRecognizer implements IDatabaseRecognizer { >+ public static final String PRODUCT = "DB2 UDB zSeries"; //$NON-NLS-1$ >+ public static final String VERSION7 = "V7"; //$NON-NLS-1$ >+ public static final String VERSION8_NewFunctionMode = "V8 (New-Function Mode)"; //$NON-NLS-1$ >+ public static final String VERSION8_CompatMode = "V8 (Compatibility Mode)"; //$NON-NLS-1$ >+ public static final String VERSION9_NewFunctionMode = "V9 (New-Function Mode)"; //$NON-NLS-1$ >+ public static final String VERSION9_CompatMode = "V9 (Compatibility Mode)"; //$NON-NLS-1$ >+ >+ >+ public DatabaseDefinition recognize(Connection connection) { >+ try { >+ String version = connection.getMetaData().getDatabaseProductVersion(); >+ if(version.startsWith("DSN07")) { //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V7"); //$NON-NLS-1$ >+ } >+ else if(version.startsWith("DSN08")) { //$NON-NLS-1$ >+ char m = version.charAt(7); >+ if(m > '4') { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V8 (New-Function Mode)"); //$NON-NLS-1$ >+ } >+ else { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V8 (Compatibility Mode)"); //$NON-NLS-1$ >+ } >+ } >+ else if(version.startsWith("DSN09")) >+ { >+ char m = version.charAt(7); >+ if(m > '4') { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V9 (New-Function Mode)"); //$NON-NLS-1$ >+ } >+ else { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V9 (Compatibility Mode)"); //$NON-NLS-1$ >+ } >+ } >+ } >+ catch (Exception e) { >+ } >+ >+ return null; >+ } >+} >Index: icons/jdbc_16.gif >=================================================================== >RCS file: icons/jdbc_16.gif >diff -N icons/jdbc_16.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/jdbc_16.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+GIF89a³¿ÜÛÀ¿À®¿¿¿ßß¿ÿßßîîî`_`_`_öööÑÑÑÿÿÿ!ù,sÐIÖ½?Il HD0È!Fè²$0ê >+ >+?P(x?ä±($Áá gÅÓpÅ¢ÉD*×aA?FÁi@vÛýdzròÌD¡RTp2<_u`'G?; >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDBPropertiesPersistenceHook.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDBPropertiesPersistenceHook.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDBPropertiesPersistenceHook.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/ZSeriesDBPropertiesPersistenceHook.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,17 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.zseries; >+ >+import org.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook; >+ >+public class ZSeriesDBPropertiesPersistenceHook extends >+ GenericDBPropertiesPersistenceHook { >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesConnectionFactory.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesConnectionFactory.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesConnectionFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/zseries/JDBCZSeriesConnectionFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,35 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.datatools.enablement.ibm.db2.internal.zseries; >+ >+import org.eclipse.datatools.connectivity.IConnection; >+import org.eclipse.datatools.connectivity.IConnectionFactory; >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+ >+public class JDBCZSeriesConnectionFactory implements IConnectionFactory { >+ >+ public JDBCZSeriesConnectionFactory() { >+ super(); >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile) { >+ JDBCZSeriesJDBCConnection connection = new JDBCZSeriesJDBCConnection(profile, >+ getClass()); >+ connection.open(); >+ return connection; >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile, String uid, >+ String pwd) { >+ return createConnection(profile); >+ } >+} >#P org.eclipse.datatools.enablement.ibm.db2.luw >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.luw/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:28 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:25 -0000 >@@ -1,4 +1,8 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ about.html,\ >+ icons/,\ >+ plugin.properties,\ >+ plugin.xml >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.luw/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:27 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:25 -0000 >@@ -1,7 +1,13 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Luw Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.luw >-Bundle-Version: 1.0.0 >-Require-Bundle: org.eclipse.core.runtime >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.luw;singleton:=true >+Bundle-Version: 1.0.0.200710041 >+Bundle-Localization: plugin >+Require-Bundle: org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)" > Eclipse-LazyStart: true >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.internal.luw >+Bundle-Vendor: %providerName >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDBPropertiesPersistenceHook.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDBPropertiesPersistenceHook.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDBPropertiesPersistenceHook.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDBPropertiesPersistenceHook.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,17 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.luw; >+ >+import org.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook; >+ >+public class LUWDBPropertiesPersistenceHook extends >+ GenericDBPropertiesPersistenceHook { >+} >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,28 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB LUW Plug-in >+providerName=Eclipse.org >+ >+driverClass = Driver Class >+driverVendor = Vendor >+driverVersion = Version >+driverDBName = Database Name >+driverConnectionURL = Connection URL >+driverUID = User ID >+driverPWD = Password >+ >+DB2_UDB_CATEGORY_NAME = DB2 for Linux, UNIX, and Windows >+ >+org.eclipse.datatools.enablement.ibm.db2.luw.driverTemplate = IBM Data Server Driver for JDBC and SQLJ >+org.eclipse.datatools.enablement.ibm.db2.luw.other.driverTemplate = Other Driver >+ >+jdbc.connection.name = JDBC Connection >+profile.db2.luw.title = DB2 for Linux, UNIX, and Windows >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWConnectionFactory.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWConnectionFactory.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWConnectionFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWConnectionFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,35 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.datatools.enablement.ibm.db2.internal.luw; >+ >+import org.eclipse.datatools.connectivity.IConnection; >+import org.eclipse.datatools.connectivity.IConnectionFactory; >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+ >+public class JDBCLUWConnectionFactory implements IConnectionFactory { >+ >+ public JDBCLUWConnectionFactory() { >+ super(); >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile) { >+ JDBCLUWJDBCConnection connection = new JDBCLUWJDBCConnection(profile, >+ getClass()); >+ connection.open(); >+ return connection; >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile, String uid, >+ String pwd) { >+ return createConnection(profile); >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/ILUWConnectionProfileConstants.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/ILUWConnectionProfileConstants.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/ILUWConnectionProfileConstants.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/ILUWConnectionProfileConstants.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,18 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.luw; >+ >+ >+public interface ILUWConnectionProfileConstants { >+ >+ public static final String DB2_LUW_CATEGORY_ID = "org.eclipse.datatools.enablement.ibm.db2.driverCategory"; //$NON-NLS-1$ >+ >+} >Index: icons/jdbc_16.gif >=================================================================== >RCS file: icons/jdbc_16.gif >diff -N icons/jdbc_16.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/jdbc_16.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+GIF89a³¿ÜÛÀ¿À®¿¿¿ßß¿ÿßßîîî`_`_`_öööÑÑÑÿÿÿ!ù,sÐIÖ½?Il HD0È!Fè²$0ê >+ >+?P(x?ä±($Áá gÅÓpÅ¢ÉD*×aA?FÁi@vÛýdzròÌD¡RTp2<_u`'G?; >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWJDBCConnection.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWJDBCConnection.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWJDBCConnection.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/JDBCLUWJDBCConnection.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,69 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.luw; >+ >+import java.sql.Connection; >+import java.sql.DatabaseMetaData; >+import java.sql.SQLException; >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+import org.eclipse.datatools.connectivity.Version; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.JDBCConnection; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinitionRegistry; >+import org.eclipse.datatools.connectivity.sqm.internal.core.RDBCorePlugin; >+ >+public class JDBCLUWJDBCConnection extends JDBCConnection { >+ >+ private Version techVersion = Version.NULL_VERSION; >+ private Version serverVersion = Version.NULL_VERSION; >+ private String serverName; >+ >+ public JDBCLUWJDBCConnection(IConnectionProfile profile, Class factoryClass) { >+ super(profile, factoryClass); >+ } >+ >+ public String getProviderName() { >+ return serverName; >+ } >+ >+ public Version getProviderVersion() { >+ return serverVersion; >+ } >+ >+ public Version getTechnologyVersion() { >+ return techVersion; >+ } >+ >+ protected void initVersions() { >+ try { >+ DatabaseMetaData dbmd = ((Connection) this.getRawConnection()) >+ .getMetaData(); >+ try { >+ Properties props = getConnectionProfile().getBaseProperties(); >+ String vendor = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID); >+ String version = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID); >+ DatabaseDefinitionRegistry dbDefRegistry = RDBCorePlugin.getDefault().getDatabaseDefinitionRegistry(); >+ DatabaseDefinition dbDef = dbDefRegistry.getDefinition(vendor, version); >+ serverName = dbDef.getProductDisplayString() + " " + dbDef.getVersionDisplayString(); >+ } catch (Exception e) { >+ } >+ try { >+ techVersion = new Version(dbmd.getJDBCMajorVersion(), dbmd >+ .getJDBCMinorVersion(), 0, new String()); >+ } catch (Exception e) { >+ } >+ } catch (SQLException e) { >+ } >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDatabaseRecognizer.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDatabaseRecognizer.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDatabaseRecognizer.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/luw/LUWDatabaseRecognizer.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,43 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.luw; >+ >+import java.sql.Connection; >+ >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.DatabaseDefinitionRegistryImpl; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.IDatabaseRecognizer; >+ >+public class LUWDatabaseRecognizer implements IDatabaseRecognizer { >+ public static final String VERSION81 = "V8.1"; //$NON-NLS-1$ >+ public static final String VERSION82 = "V8.2"; //$NON-NLS-1$ >+ public static final String VERSION9 = "V9.1"; //$NON-NLS-1$ >+ private static final String PRODUCT = "DB2 UDB"; //$NON-NLS-1$ >+ >+ public DatabaseDefinition recognize(Connection connection) { >+ try { >+ String version = connection.getMetaData().getDatabaseProductVersion(); >+ if(version.startsWith("SQL0801")) { //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, VERSION81); >+ } >+ else if(version.startsWith("SQL0802")) { //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, VERSION82); >+ } >+ else if(version.startsWith("SQL0901")) { //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, VERSION9); >+ } >+ } >+ catch (Exception e) { >+ } >+ >+ return null; >+ } >+} >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,157 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ <extension >+ point="org.eclipse.datatools.connectivity.sqm.core.databaseRecognition"> >+ <recognizer >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.luw.LUWDatabaseRecognizer"> >+ </recognizer> >+ </extension> >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <connectionProfile >+ category="org.eclipse.datatools.connectivity.db.category" >+ configurationType="org.eclipse.datatools.connectivity.db.generic.configurationType" >+ icon="icons/jdbc_16.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.luw.connectionProfile" >+ name="%profile.db2.luw.title" >+ pingFactory="org.eclipse.datatools.enablement.ibm.db2.internal.luw.JDBCLUWConnectionFactory" >+ propertiesPersistenceHook="org.eclipse.datatools.enablement.ibm.db2.internal.luw.LUWDBPropertiesPersistenceHook"/> >+ <connectionFactory >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.luw.JDBCLUWConnectionFactory" >+ id="java.sql.Connection" >+ name="%jdbc.connection.name" >+ profile="org.eclipse.datatools.enablement.ibm.db2.luw.connectionProfile"/> >+ </extension> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.driverExtension"> >+ <category >+ parentCategory="org.eclipse.datatools.connectivity.db.driverCategory" >+ id="org.eclipse.datatools.enablement.ibm.db2.driverCategory" >+ name="%DB2_UDB_CATEGORY_NAME"/> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.luw.driverTemplate" >+ jarList="C:\Program Files\IBM\SQLLIB\java\db2jcc.jar,C:\Program Files\IBM\SQLLIB\java\db2jcc_license_cisuz.jar" >+ name="%org.eclipse.datatools.enablement.ibm.db2.luw.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.ibm.db2.jcc.DB2Driver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V9.1" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="SAMPLE" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:db2://localhost:50000/SAMPLE" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ </extension> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.driverExtension"> >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.luw.other.driverTemplate" >+ jarList="" >+ name="%org.eclipse.datatools.enablement.ibm.db2.luw.other.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V9.1" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ </extension> >+ </plugin> >#P org.eclipse.datatools.enablement.ibm.db2.iseries.ui >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.iseries.ui/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:27 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:26 -0000 >@@ -1,4 +1,7 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ icons/,\ >+ plugin.properties,\ >+ plugin.xml >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.iseries.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:28 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:26 -0000 >@@ -1,5 +1,16 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Ui Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.iseries.ui >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.iseries.ui;singleton:=true >+Bundle-Version: 1.0.0.200710041 >+Bundle-Localization: plugin >+Bundle-Vendor: %providerName >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui >+Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0)", >+ org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.enablement.ibm.db2.iseries;bundle-version="[1.0.0,2.0.0)" >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: icons/new_db_element.gif >=================================================================== >RCS file: icons/new_db_element.gif >diff -N icons/new_db_element.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/new_db_element.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+GIF89a÷ZcZcZc{{{µ9µ9½½½½ÞÞÆ½ÆÖÖÖÞÞ½çÎÿÿÿÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!ù,t° Áh?@$8A!C&8¢2näh & >+8 #ÇJP¹rÀrPÒ?`D¢Ü >+ ÀP àgÍ-u²´i5èТG¥.]ÙôiTS«å5çÖ±"5À´$ >+Uª¼èeIpàÃ; >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfilePropertyPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfilePropertyPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfilePropertyPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfilePropertyPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,24 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfilePropertyPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.iseries.IISeriesConnectionProfileConstants; >+ >+public class ISeriesDBProfilePropertyPage extends GenericDBProfilePropertyPage { >+ >+ public ISeriesDBProfilePropertyPage() { >+ super(); >+ noDefaultAndApplyButton(); >+ setDriverCategory(IISeriesConnectionProfileConstants.DB2_ISERIES_CATEGORY_ID); >+ } >+ >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfileDetailsWizardPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfileDetailsWizardPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfileDetailsWizardPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/ISeriesDBProfileDetailsWizardPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,23 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.iseries.IISeriesConnectionProfileConstants; >+ >+public class ISeriesDBProfileDetailsWizardPage >+ extends GenericDBProfileDetailsWizardPage{ >+ >+ public ISeriesDBProfileDetailsWizardPage(String pageName) { >+ super(pageName); >+ setDriverCategory(IISeriesConnectionProfileConstants.DB2_ISERIES_CATEGORY_ID); >+ } >+} >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB UI iSeries Plug-in >+providerName=Eclipse.org >+ >+profile.db2.iseries.wizard.title = DB2 for i5/OS >+profile.db2.iseries.properties = DB2 for i5/OS Connection Properties >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,26 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <newWizard >+ class="org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui.NewISeriesConnectionProfileWizard" >+ icon="icons/new_db_element.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.NewISeriesConnectionProfileWizard" >+ name="%profile.db2.iseries.wizard.title" >+ profile="org.eclipse.datatools.enablement.ibm.db2.iseries.connectionProfile"/> >+ </extension> >+ <extension >+ point="org.eclipse.ui.propertyPages"> >+ <page >+ class="org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui.ISeriesDBProfilePropertyPage" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.profileProperties" >+ name="%profile.db2.iseries.properties" >+ objectClass="org.eclipse.datatools.connectivity.IConnectionProfile"> >+ <filter >+ name="org.eclipse.datatools.profile.property.id" >+ value="org.eclipse.datatools.enablement.ibm.db2.iseries.connectionProfile"/> >+ </page> >+ </extension> >+ </plugin> >Index: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/NewISeriesConnectionProfileWizard.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/NewISeriesConnectionProfileWizard.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/NewISeriesConnectionProfileWizard.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/iseries/internal/ui/NewISeriesConnectionProfileWizard.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,59 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.iseries.internal.ui; >+ >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.ConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.ui.NewConnectionProfileWizard; >+ >+public class NewISeriesConnectionProfileWizard extends NewConnectionProfileWizard { >+ >+ protected ISeriesDBProfileDetailsWizardPage mPropPage; >+ >+ public NewISeriesConnectionProfileWizard() { >+ super(); >+ } >+ >+ public void addCustomPages() { >+ mPropPage = new ISeriesDBProfileDetailsWizardPage("detailsPage"); //$NON-NLS-1$ >+ addPage(mPropPage); >+ } >+ >+ public Properties getProfileProperties() { >+ Properties props = new Properties(); >+ props.setProperty(ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID, >+ this.mPropPage.getDriverID()); >+ props.setProperty( >+ IDBConnectionProfileConstants.CONNECTION_PROPERTIES_PROP_ID, >+ this.mPropPage.getDBConnProps()); >+ props.setProperty(IDBDriverDefinitionConstants.DRIVER_CLASS_PROP_ID, this.mPropPage >+ .getDriverClass()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID, this.mPropPage >+ .getVendor()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID, this.mPropPage >+ .getVersion()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_NAME_PROP_ID, this.mPropPage >+ .getDatabaseName()); >+ props.setProperty(IDBDriverDefinitionConstants.PASSWORD_PROP_ID, this.mPropPage >+ .getDBPWD()); >+ props.setProperty( >+ IDBConnectionProfileConstants.SAVE_PASSWORD_PROP_ID, String >+ .valueOf(this.mPropPage.getSaveDBPWD())); >+ props.setProperty(IDBDriverDefinitionConstants.USERNAME_PROP_ID, this.mPropPage >+ .getDBUID()); >+ props.setProperty(IDBDriverDefinitionConstants.URL_PROP_ID, >+ this.mPropPage.getURL()); >+ return props; >+ } >+} >#P org.eclipse.datatools.enablement.ibm.db2.zseries.ui >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.zseries.ui/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:27 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:27 -0000 >@@ -1,4 +1,8 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ plugin.xml,\ >+ plugin.properties,\ >+ icons/,\ >+ about.html >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.zseries.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:27 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:27 -0000 >@@ -1,5 +1,16 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Ui Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.zseries.ui >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.zseries.ui;singleton:=true >+Bundle-Version: 1.0.0.200709132 >+Bundle-Localization: plugin >+Bundle-Vendor: %providerName >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui >+Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0)", >+ org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.enablement.ibm.db2.zseries;bundle-version="[1.0.0,2.0.0)" >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: icons/new_db_element.gif >=================================================================== >RCS file: icons/new_db_element.gif >diff -N icons/new_db_element.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/new_db_element.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+GIF89a÷ZcZcZc{{{µ9µ9½½½½ÞÞÆ½ÆÖÖÖÞÞ½çÎÿÿÿÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!ù,t° Áh?@$8A!C&8¢2näh & >+8 #ÇJP¹rÀrPÒ?`D¢Ü >+ ÀP àgÍ-u²´i5èТG¥.]ÙôiTS«å5çÖ±"5À´$ >+Uª¼èeIpàÃ; >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfilePropertyPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfilePropertyPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfilePropertyPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfilePropertyPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,24 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfilePropertyPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.zseries.IZSeriesConnectionProfileConstants; >+ >+public class ZSeriesDBProfilePropertyPage extends GenericDBProfilePropertyPage { >+ >+ public ZSeriesDBProfilePropertyPage() { >+ super(); >+ noDefaultAndApplyButton(); >+ setDriverCategory(IZSeriesConnectionProfileConstants.DB2_ZSERIES_CATEGORY_ID); >+ } >+ >+} >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,27 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <newWizard >+ class="org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui.NewZSeriesConnectionProfileWizard" >+ icon="icons/new_db_element.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.NewZSeriesConnectionProfileWizard" >+ name="%profile.db2.zseries.wizard.title" >+ profile="org.eclipse.datatools.enablement.ibm.db2.zseries.connectionProfile"/> >+ </extension> >+ <extension >+ point="org.eclipse.ui.propertyPages"> >+ <page >+ class="org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui.ZSeriesDBProfilePropertyPage" >+ id="org.eclipse.datatools.enablement.ibm.db2.zseries.profileProperties" >+ name="%profile.db2.zseries.properties" >+ objectClass="org.eclipse.datatools.connectivity.IConnectionProfile"> >+ <filter >+ name="org.eclipse.datatools.profile.property.id" >+ value="org.eclipse.datatools.enablement.ibm.db2.zseries.connectionProfile"/> >+ </page> >+ </extension> >+ >+ </plugin> >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB zSeries UI Plug-in >+providerName=Eclipse.org >+ >+profile.db2.zseries.wizard.title = DB2 for z/OS >+profile.db2.zseries.properties = DB2 for z/OS Connection Properties >Index: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfileDetailsWizardPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfileDetailsWizardPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfileDetailsWizardPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/ZSeriesDBProfileDetailsWizardPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,23 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.zseries.IZSeriesConnectionProfileConstants; >+ >+public class ZSeriesDBProfileDetailsWizardPage >+ extends GenericDBProfileDetailsWizardPage{ >+ >+ public ZSeriesDBProfileDetailsWizardPage(String pageName) { >+ super(pageName); >+ setDriverCategory(IZSeriesConnectionProfileConstants.DB2_ZSERIES_CATEGORY_ID); >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/NewZSeriesConnectionProfileWizard.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/NewZSeriesConnectionProfileWizard.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/NewZSeriesConnectionProfileWizard.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/zseries/internal/ui/NewZSeriesConnectionProfileWizard.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,59 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.zseries.internal.ui; >+ >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.ConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.ui.NewConnectionProfileWizard; >+ >+public class NewZSeriesConnectionProfileWizard extends NewConnectionProfileWizard { >+ >+ protected ZSeriesDBProfileDetailsWizardPage mPropPage; >+ >+ public NewZSeriesConnectionProfileWizard() { >+ super(); >+ } >+ >+ public void addCustomPages() { >+ mPropPage = new ZSeriesDBProfileDetailsWizardPage("detailsPage"); //$NON-NLS-1$ >+ addPage(mPropPage); >+ } >+ >+ public Properties getProfileProperties() { >+ Properties props = new Properties(); >+ props.setProperty(ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID, >+ this.mPropPage.getDriverID()); >+ props.setProperty( >+ IDBConnectionProfileConstants.CONNECTION_PROPERTIES_PROP_ID, >+ this.mPropPage.getDBConnProps()); >+ props.setProperty(IDBDriverDefinitionConstants.DRIVER_CLASS_PROP_ID, this.mPropPage >+ .getDriverClass()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID, this.mPropPage >+ .getVendor()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID, this.mPropPage >+ .getVersion()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_NAME_PROP_ID, this.mPropPage >+ .getDatabaseName()); >+ props.setProperty(IDBDriverDefinitionConstants.PASSWORD_PROP_ID, this.mPropPage >+ .getDBPWD()); >+ props.setProperty( >+ IDBConnectionProfileConstants.SAVE_PASSWORD_PROP_ID, String >+ .valueOf(this.mPropPage.getSaveDBPWD())); >+ props.setProperty(IDBDriverDefinitionConstants.USERNAME_PROP_ID, this.mPropPage >+ .getDBUID()); >+ props.setProperty(IDBDriverDefinitionConstants.URL_PROP_ID, >+ this.mPropPage.getURL()); >+ return props; >+ } >+} >#P org.eclipse.datatools.enablement.ibm.db2.iseries >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.iseries/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:28 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:27 -0000 >@@ -1,5 +1,12 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Iseries Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.iseries >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.iseries;singleton:=true >+Bundle-Version: 1.0.0.200710041 >+Bundle-Localization: plugin >+Bundle-Vendor: %providerName >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.internal.iseries >+Require-Bundle: org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)" >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.iseries/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:27 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:27 -0000 >@@ -1,4 +1,8 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ plugin.xml,\ >+ plugin.properties,\ >+ icons/,\ >+ about.html >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,214 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ <extension >+ point="org.eclipse.datatools.connectivity.sqm.core.databaseRecognition"> >+ <recognizer >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.iseries.ISeriesDatabaseRecognizer"> >+ </recognizer> >+ </extension> >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <connectionProfile >+ category="org.eclipse.datatools.connectivity.db.category" >+ configurationType="org.eclipse.datatools.connectivity.db.generic.configurationType" >+ icon="icons/jdbc_16.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.connectionProfile" >+ name="%profile.db2.iseries.title" >+ pingFactory="org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JDBCISeriesConnectionFactory" >+ propertiesPersistenceHook="org.eclipse.datatools.enablement.ibm.db2.internal.iseries.ISeriesDBPropertiesPersistenceHook"/> >+ <connectionFactory >+ class="org.eclipse.datatools.enablement.ibm.db2.internal.iseries.JDBCISeriesConnectionFactory" >+ id="java.sql.Connection" >+ name="%jdbc.connection.name" >+ profile="org.eclipse.datatools.enablement.ibm.db2.iseries.connectionProfile"/> >+ </extension> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.driverExtension"> >+ <category >+ parentCategory="org.eclipse.datatools.connectivity.db.driverCategory" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.driverCategory" >+ name="%DB2_UDB_ISERIES_CATEGORY_NAME"/> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.toolbox.driverTemplate" >+ jarList="jt400.jar" >+ name="%org.eclipse.datatools.enablement.ibm.db2.iseries.toolbox.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.iseries.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.ibm.as400.access.AS400JDBCDriver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB iSeries" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V5R3" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="host" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:as400:host;prompt=false" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.driverTemplate" >+ jarList="C:\Program Files\IBM\SQLLIB\java\db2jcc.jar,C:\Program Files\IBM\SQLLIB\java\db2jcc_license_cisuz.jar" >+ name="%org.eclipse.datatools.enablement.ibm.db2.iseries.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.iseries.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.ibm.db2.jcc.DB2Driver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB iSeries" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V5R3" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="database" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:db2://host:446/database:retrieveMessagesFromServerOnGetMessage=true;" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.ibm.db2.iseries.other.driverTemplate" >+ jarList="" >+ name="%org.eclipse.datatools.enablement.ibm.db2.iseries.other.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.ibm.db2.iseries.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="DB2 UDB iSeries" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="V5R3" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ customPropertyDescriptor="org.eclipse.datatools.connectivity.ui.PasswordTextPropertyDescriptor" >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ </extension> >+ </plugin> >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesJDBCConnection.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesJDBCConnection.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesJDBCConnection.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesJDBCConnection.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,69 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.iseries; >+ >+import java.sql.Connection; >+import java.sql.DatabaseMetaData; >+import java.sql.SQLException; >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+import org.eclipse.datatools.connectivity.Version; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.JDBCConnection; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinitionRegistry; >+import org.eclipse.datatools.connectivity.sqm.internal.core.RDBCorePlugin; >+ >+public class JDBCISeriesJDBCConnection extends JDBCConnection { >+ >+ private Version techVersion = Version.NULL_VERSION; >+ private Version serverVersion = Version.NULL_VERSION; >+ private String serverName; >+ >+ public JDBCISeriesJDBCConnection(IConnectionProfile profile, Class factoryClass) { >+ super(profile, factoryClass); >+ } >+ >+ public String getProviderName() { >+ return serverName; >+ } >+ >+ public Version getProviderVersion() { >+ return serverVersion; >+ } >+ >+ public Version getTechnologyVersion() { >+ return techVersion; >+ } >+ >+ protected void initVersions() { >+ try { >+ DatabaseMetaData dbmd = ((Connection) this.getRawConnection()) >+ .getMetaData(); >+ try { >+ Properties props = getConnectionProfile().getBaseProperties(); >+ String vendor = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID); >+ String version = (String)props.get(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID); >+ DatabaseDefinitionRegistry dbDefRegistry = RDBCorePlugin.getDefault().getDatabaseDefinitionRegistry(); >+ DatabaseDefinition dbDef = dbDefRegistry.getDefinition(vendor, version); >+ serverName = dbDef.getProductDisplayString() + " " + dbDef.getVersionDisplayString(); >+ } catch (Exception e) { >+ } >+ try { >+ techVersion = new Version(dbmd.getJDBCMajorVersion(), dbmd >+ .getJDBCMinorVersion(), 0, new String()); >+ } catch (Exception e) { >+ } >+ } catch (SQLException e) { >+ } >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDatabaseRecognizer.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDatabaseRecognizer.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDatabaseRecognizer.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDatabaseRecognizer.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,67 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.iseries; >+ >+import java.sql.Connection; >+ >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.DatabaseDefinitionRegistryImpl; >+import org.eclipse.datatools.connectivity.sqm.internal.core.definition.IDatabaseRecognizer; >+ >+public class ISeriesDatabaseRecognizer implements IDatabaseRecognizer { >+ private static final String PRODUCT = "DB2 UDB iSeries"; //$NON-NLS-1$ >+ >+ public DatabaseDefinition recognize(Connection connection) { >+ try { >+ String version = connection.getMetaData().getDatabaseProductVersion(); >+ // Support for the version string returned by the Toolbox for Java driver >+ if (version.indexOf("V5R1") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R1"); //$NON-NLS-1$ >+ } >+ else if (version.indexOf("V5R2") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R2"); //$NON-NLS-1$ >+ } >+ else if (version.indexOf("V5R3") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R3"); //$NON-NLS-1$ >+ } >+ // Support for the version string returned by the Universal driver >+ else if (version.indexOf("V05R01") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R1"); //$NON-NLS-1$ >+ } >+ else if (version.indexOf("V05R02") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R2"); //$NON-NLS-1$ >+ } >+ else if (version.indexOf("V05R03") > -1){ //$NON-NLS-1$ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R3"); //$NON-NLS-1$ >+ } >+ // Not sure what driver this code is supporting >+ else if(version.startsWith("QSQ050")) { //$NON-NLS-1$ >+ char r = version.charAt(6); >+ if(r == '1') { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R1"); //$NON-NLS-1$ >+ } >+ else if(r == '2') { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R2"); //$NON-NLS-1$ >+ } >+ else if (r == '3'){ >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R3"); //$NON-NLS-1$ >+ } >+ else if(r == '4') { >+ return DatabaseDefinitionRegistryImpl.INSTANCE.getDefinition(PRODUCT, "V5R4"); //$NON-NLS-1$ >+ } >+ } >+ } >+ catch (Exception e) { >+ } >+ >+ return null; >+ } >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesConnectionFactory.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesConnectionFactory.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesConnectionFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/JDBCISeriesConnectionFactory.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,35 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+ >+package org.eclipse.datatools.enablement.ibm.db2.internal.iseries; >+ >+import org.eclipse.datatools.connectivity.IConnection; >+import org.eclipse.datatools.connectivity.IConnectionFactory; >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+ >+public class JDBCISeriesConnectionFactory implements IConnectionFactory { >+ >+ public JDBCISeriesConnectionFactory() { >+ super(); >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile) { >+ JDBCISeriesJDBCConnection connection = new JDBCISeriesJDBCConnection(profile, >+ getClass()); >+ connection.open(); >+ return connection; >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile, String uid, >+ String pwd) { >+ return createConnection(profile); >+ } >+} >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,29 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB iSeries Plug-in >+providerName=Eclipse.org >+ >+driverClass = Driver Class >+driverVendor = Vendor >+driverVersion = Version >+driverDBName = Database Name >+driverConnectionURL = Connection URL >+driverUID = User ID >+driverPWD = Password >+ >+DB2_UDB_ISERIES_CATEGORY_NAME = DB2 for i5/OS >+ >+org.eclipse.datatools.enablement.ibm.db2.iseries.driverTemplate = IBM Data Server Driver for JDBC and SQLJ >+org.eclipse.datatools.enablement.ibm.db2.iseries.other.driverTemplate = Other Driver >+org.eclipse.datatools.enablement.ibm.db2.iseries.toolbox.driverTemplate = AS/400 Toolbox for Java >+ >+jdbc.connection.name = JDBC Connection >+profile.db2.iseries.title = DB2 for i5/OS >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/IISeriesConnectionProfileConstants.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/IISeriesConnectionProfileConstants.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/IISeriesConnectionProfileConstants.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/IISeriesConnectionProfileConstants.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,18 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.iseries; >+ >+ >+public interface IISeriesConnectionProfileConstants { >+ >+ public static final String DB2_ISERIES_CATEGORY_ID = "org.eclipse.datatools.enablement.ibm.db2.iseries.driverCategory"; //$NON-NLS-1$ >+ >+} >Index: icons/jdbc_16.gif >=================================================================== >RCS file: icons/jdbc_16.gif >diff -N icons/jdbc_16.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/jdbc_16.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,3 @@ >+GIF89a³¿ÜÛÀ¿À®¿¿¿ßß¿ÿßßîîî`_`_`_öööÑÑÑÿÿÿ!ù,sÐIÖ½?Il HD0È!Fè²$0ê >+ >+?P(x?ä±($Áá gÅÓpÅ¢ÉD*×aA?FÁi@vÛýdzròÌD¡RTp2<_u`'G?; >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDBPropertiesPersistenceHook.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDBPropertiesPersistenceHook.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDBPropertiesPersistenceHook.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/internal/iseries/ISeriesDBPropertiesPersistenceHook.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,17 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.internal.iseries; >+ >+import org.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook; >+ >+public class ISeriesDBPropertiesPersistenceHook extends >+ GenericDBPropertiesPersistenceHook { >+} >#P org.eclipse.datatools.enablement.ibm.db2.luw.ui >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.luw.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 4 Oct 2007 20:50:28 -0000 1.1 >+++ META-INF/MANIFEST.MF 4 Oct 2007 23:41:28 -0000 >@@ -1,5 +1,17 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Ui Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.luw.ui >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.ibm.db2.luw.ui;singleton:=true >+Bundle-Version: 1.0.0.200710041 >+Bundle-Localization: plugin >+Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0)", >+ org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.db.generic.ui;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)", >+ org.eclipse.datatools.enablement.ibm.db2.luw;bundle-version="[1.0.0,2.0.0)" >+Eclipse-LazyStart: true >+Export-Package: org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui >+Bundle-Vendor: %providerName >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: build.properties >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.ibm.db2.luw.ui/build.properties,v >retrieving revision 1.1 >diff -u -r1.1 build.properties >--- build.properties 4 Oct 2007 20:50:27 -0000 1.1 >+++ build.properties 4 Oct 2007 23:41:28 -0000 >@@ -1,4 +1,8 @@ > source.. = src/ > output.. = bin/ > bin.includes = META-INF/,\ >- . >+ .,\ >+ plugin.xml,\ >+ plugin.properties,\ >+ icons/,\ >+ about.html >Index: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfileDetailsWizardPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfileDetailsWizardPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfileDetailsWizardPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfileDetailsWizardPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,23 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.luw.ILUWConnectionProfileConstants; >+ >+public class LUWDBProfileDetailsWizardPage >+ extends GenericDBProfileDetailsWizardPage{ >+ >+ public LUWDBProfileDetailsWizardPage(String pageName) { >+ super(pageName); >+ setDriverCategory(ILUWConnectionProfileConstants.DB2_LUW_CATEGORY_ID); >+ } >+} >Index: icons/new_db_element.gif >=================================================================== >RCS file: icons/new_db_element.gif >diff -N icons/new_db_element.gif >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ icons/new_db_element.gif 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,4 @@ >+GIF89a÷ZcZcZc{{{µ9µ9½½½½ÞÞÆ½ÆÖÖÖÞÞ½çÎÿÿÿÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!ù,t° Áh?@$8A!C&8¢2näh & >+8 #ÇJP¹rÀrPÒ?`D¢Ü >+ ÀP àgÍ-u²´i5èТG¥.]ÙôiTS«å5çÖ±"5À´$ >+Uª¼èeIpàÃ; >Index: .settings/org.eclipse.jdt.core.prefs >=================================================================== >RCS file: .settings/org.eclipse.jdt.core.prefs >diff -N .settings/org.eclipse.jdt.core.prefs >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ .settings/org.eclipse.jdt.core.prefs 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+#Fri Apr 13 14:14:14 PDT 2007 >+eclipse.preferences.version=1 >+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled >+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4 >+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve >+org.eclipse.jdt.core.compiler.compliance=1.4 >+org.eclipse.jdt.core.compiler.debug.lineNumber=generate >+org.eclipse.jdt.core.compiler.debug.localVariable=generate >+org.eclipse.jdt.core.compiler.debug.sourceFile=generate >+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error >+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning >+org.eclipse.jdt.core.compiler.source=1.4 >Index: plugin.properties >=================================================================== >RCS file: plugin.properties >diff -N plugin.properties >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.properties 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+############################################################################### >+# Copyright (c) 2006, 2007 IBM Corporation and others. >+# All rights reserved. This program and the accompanying materials >+# are made available under the terms of the Eclipse Public License v1.0 >+# which accompanies this distribution, and is available at >+# http://www.eclipse.org/legal/epl-v10.html >+# >+# Contributors: >+# IBM Corporation - initial API and implementation >+############################################################################### >+pluginName=Eclipse Data Tools Platform IBM DB2 UDB LUW UI Plug-in >+providerName=Eclipse.org >+ >+profile.db2.luw.wizard.title = DB2 for Linux, UNIX, and Windows >+profile.db2.luw.properties = DB2 for Linux, UNIX, and Windows Connection Properties >Index: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfilePropertyPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfilePropertyPage.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfilePropertyPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/LUWDBProfilePropertyPage.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,24 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfilePropertyPage; >+import org.eclipse.datatools.enablement.ibm.db2.internal.luw.ILUWConnectionProfileConstants; >+ >+public class LUWDBProfilePropertyPage extends GenericDBProfilePropertyPage { >+ >+ public LUWDBProfilePropertyPage() { >+ super(); >+ noDefaultAndApplyButton(); >+ setDriverCategory(ILUWConnectionProfileConstants.DB2_LUW_CATEGORY_ID); >+ } >+ >+} >Index: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/NewLUWConnectionProfileWizard.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/NewLUWConnectionProfileWizard.java >diff -N src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/NewLUWConnectionProfileWizard.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/ibm/db2/luw/internal/ui/NewLUWConnectionProfileWizard.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,59 @@ >+/******************************************************************************* >+ * Copyright (c) 2007 IBM Corporation and others. >+ * All rights reserved. This program and the accompanying materials >+ * are made available under the terms of the Eclipse Public License v1.0 >+ * which accompanies this distribution, and is available at >+ * http://www.eclipse.org/legal/epl-v10.html >+ * >+ * Contributors: >+ * IBM Corporation - initial API and implementation >+ *******************************************************************************/ >+package org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui; >+ >+import java.util.Properties; >+ >+import org.eclipse.datatools.connectivity.ConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBConnectionProfileConstants; >+import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants; >+import org.eclipse.datatools.connectivity.db.generic.ui.NewConnectionProfileWizard; >+ >+public class NewLUWConnectionProfileWizard extends NewConnectionProfileWizard { >+ >+ protected LUWDBProfileDetailsWizardPage mPropPage; >+ >+ public NewLUWConnectionProfileWizard() { >+ super(); >+ } >+ >+ public void addCustomPages() { >+ mPropPage = new LUWDBProfileDetailsWizardPage("detailsPage"); //$NON-NLS-1$ >+ addPage(mPropPage); >+ } >+ >+ public Properties getProfileProperties() { >+ Properties props = new Properties(); >+ props.setProperty(ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID, >+ this.mPropPage.getDriverID()); >+ props.setProperty( >+ IDBConnectionProfileConstants.CONNECTION_PROPERTIES_PROP_ID, >+ this.mPropPage.getDBConnProps()); >+ props.setProperty(IDBDriverDefinitionConstants.DRIVER_CLASS_PROP_ID, this.mPropPage >+ .getDriverClass()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID, this.mPropPage >+ .getVendor()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID, this.mPropPage >+ .getVersion()); >+ props.setProperty(IDBDriverDefinitionConstants.DATABASE_NAME_PROP_ID, this.mPropPage >+ .getDatabaseName()); >+ props.setProperty(IDBDriverDefinitionConstants.PASSWORD_PROP_ID, this.mPropPage >+ .getDBPWD()); >+ props.setProperty( >+ IDBConnectionProfileConstants.SAVE_PASSWORD_PROP_ID, String >+ .valueOf(this.mPropPage.getSaveDBPWD())); >+ props.setProperty(IDBDriverDefinitionConstants.USERNAME_PROP_ID, this.mPropPage >+ .getDBUID()); >+ props.setProperty(IDBDriverDefinitionConstants.URL_PROP_ID, >+ this.mPropPage.getURL()); >+ return props; >+ } >+} >Index: plugin.xml >=================================================================== >RCS file: plugin.xml >diff -N plugin.xml >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ plugin.xml 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,26 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ <extension >+ point="org.eclipse.datatools.connectivity.connectionProfile"> >+ <newWizard >+ class="org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui.NewLUWConnectionProfileWizard" >+ icon="icons/new_db_element.gif" >+ id="org.eclipse.datatools.enablement.ibm.db2.luw.NewLUWConnectionProfileWizard" >+ name="%profile.db2.luw.wizard.title" >+ profile="org.eclipse.datatools.enablement.ibm.db2.luw.connectionProfile"/> >+ </extension> >+ <extension >+ point="org.eclipse.ui.propertyPages"> >+ <page >+ class="org.eclipse.datatools.enablement.ibm.db2.luw.internal.ui.LUWDBProfilePropertyPage" >+ id="org.eclipse.datatools.enablement.ibm.db2.luw.profileProperties" >+ name="%profile.db2.luw.properties" >+ objectClass="org.eclipse.datatools.connectivity.IConnectionProfile"> >+ <filter >+ name="org.eclipse.datatools.profile.property.id" >+ value="org.eclipse.datatools.enablement.ibm.db2.luw.connectionProfile"/> >+ </page> >+ </extension> >+ >+ </plugin>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 203158
:
78235
|
79770
|
79771
| 79782 |
79783
|
79784
|
79840
|
80178
|
80254
|
80269
|
80612
|
80613
|
87290