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 79840 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 sqlserver refactoring
patch_sqlserver.txt (text/plain), 45.33 KB, created by
Larry Dunnell
on 2007-10-05 20:44:28 EDT
(
hide
)
Description:
Patch for sqlserver refactoring
Filename:
MIME Type:
Creator:
Larry Dunnell
Created:
2007-10-05 20:44:28 EDT
Size:
45.33 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.datatools.enablement.msft.sqlserver >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.msft.sqlserver/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 5 Oct 2007 00:11:54 -0000 1.1 >+++ META-INF/MANIFEST.MF 6 Oct 2007 00:42:44 -0000 >@@ -1,5 +1,16 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Sqlserver Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.msft.sqlserver >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.msft.sqlserver;singleton:=true >+Bundle-Version: 1.0.1.200710051 >+Bundle-Vendor: %providerName >+Bundle-Localization: plugin >+Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.2.0,4.0)", >+ org.eclipse.datatools.modelbase.sql;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)", >+ 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)" >+Eclipse-LazyStart: true >+Export-Package: org.eclipse.datatools.enablement.msft.internal.sqlserver.connection, >+ org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/SQLServerDBPropertiesPersistenceHook.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/SQLServerDBPropertiesPersistenceHook.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/SQLServerDBPropertiesPersistenceHook.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/SQLServerDBPropertiesPersistenceHook.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.msft.internal.sqlserver.connection; >+ >+import org.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook; >+ >+public class SQLServerDBPropertiesPersistenceHook extends >+ GenericDBPropertiesPersistenceHook { >+} >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005RoutineLoader.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005RoutineLoader.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005RoutineLoader.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005RoutineLoader.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,203 @@ >+package org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders; >+ >+import java.sql.ResultSet; >+import java.sql.SQLException; >+import java.sql.Statement; >+import java.util.Collection; >+import java.util.List; >+ >+import org.eclipse.datatools.connectivity.sqm.core.definition.DataModelElementFactory; >+import org.eclipse.datatools.connectivity.sqm.core.definition.DatabaseDefinition; >+import org.eclipse.datatools.connectivity.sqm.core.rte.ICatalogObject; >+import org.eclipse.datatools.connectivity.sqm.core.rte.jdbc.JDBCUserDefinedFunction; >+import org.eclipse.datatools.connectivity.sqm.internal.core.RDBCorePlugin; >+import org.eclipse.datatools.connectivity.sqm.loader.IConnectionFilterProvider; >+import org.eclipse.datatools.connectivity.sqm.loader.JDBCRoutineLoader; >+import org.eclipse.datatools.modelbase.sql.routines.Routine; >+import org.eclipse.datatools.modelbase.sql.routines.SQLRoutinesPackage; >+import org.eclipse.datatools.modelbase.sql.routines.Source; >+import org.eclipse.datatools.modelbase.sql.schema.Database; >+import org.eclipse.emf.ecore.EClass; >+ >+public class SQL2005RoutineLoader extends JDBCRoutineLoader { >+ >+ public static final String COLUMN_ROUTINE_NAME = "ROUTINE_NAME"; >+ public static final String COLUMN_ROUTINE_CATALOG = "SPECIFIC_CATALOG"; >+ public static final String COLUMN_ROUTINE_SCHEMA = "SPECIFIC_SCHEMA"; >+ public static final String COLUMN_ROUTINE_TYPE = "ROUTINE_TYPE"; >+ public static final String COLUMN_ROUTINE_DEFINITION = "ROUTINE_DEFINITION"; >+ >+ private IRoutineFactory mUserDefinedFunctionFactory; >+ private IRoutineFactory mProcedureFactory; >+ >+ public static class SQL2005ProcedureFactory extends ProcedureFactory { >+ >+ private Database database = null; >+ >+ public void setDatabase (Database db) { >+ database = db; >+ } >+ >+ public void initialize(Routine routine, ResultSet rs) >+ throws SQLException { >+ String name = rs.getString(COLUMN_ROUTINE_NAME); >+ >+ // strip out the version indicator >+ if (name.indexOf(";") > -1) >+ name = name.substring(0, name.indexOf(";") -1 ); >+ routine.setName(name); >+ >+ String source = rs.getString(COLUMN_ROUTINE_DEFINITION); >+ loadSource(routine, source, database); >+ } >+ } >+ >+ public static class SQL2005UserDefinedFunctionFactory extends SQL2005ProcedureFactory { >+ >+ public EClass getRoutineEClass() { >+ return SQLRoutinesPackage.eINSTANCE.getUserDefinedFunction(); >+ } >+ >+ protected Routine newRoutine() { >+ return new JDBCUserDefinedFunction(); >+ } >+ } >+ >+ public SQL2005RoutineLoader() { >+ super(null); >+ } >+ >+ public SQL2005RoutineLoader(ICatalogObject catalogObject) { >+ super(catalogObject); >+ } >+ >+ public SQL2005RoutineLoader(ICatalogObject catalogObject, >+ IConnectionFilterProvider connectionFilterProvider) { >+ super(catalogObject, connectionFilterProvider); >+ mUserDefinedFunctionFactory = new SQL2005UserDefinedFunctionFactory(); >+ mProcedureFactory = new SQL2005ProcedureFactory(); >+ } >+ >+ public SQL2005RoutineLoader(ICatalogObject catalogObject, >+ IConnectionFilterProvider connectionFilterProvider, >+ IRoutineFactory udfFactory, IRoutineFactory spFactory) { >+ super(catalogObject, connectionFilterProvider, udfFactory, spFactory); >+ } >+ >+ protected ResultSet createResultSet() throws SQLException { >+ String schemaName = getSchema().getName(); >+ String catalogName = getSchema().getCatalog().getName(); >+ String query = "select INFORMATION_SCHEMA.ROUTINES.SPECIFIC_CATALOG as \'" + COLUMN_ROUTINE_CATALOG + "\', " + >+ "INFORMATION_SCHEMA.ROUTINES.SPECIFIC_SCHEMA as \'" + COLUMN_ROUTINE_SCHEMA + "\', " + >+ "INFORMATION_SCHEMA.ROUTINES.ROUTINE_NAME as \'" + COLUMN_ROUTINE_NAME + "\', " + >+ "INFORMATION_SCHEMA.ROUTINES.ROUTINE_DEFINITION as \'" + COLUMN_ROUTINE_DEFINITION + "\', " + >+ "INFORMATION_SCHEMA.ROUTINES.ROUTINE_TYPE as \'" + COLUMN_ROUTINE_TYPE + "\' " + >+ "from INFORMATION_SCHEMA.ROUTINES where " + >+ "INFORMATION_SCHEMA.ROUTINES.SPECIFIC_CATALOG = \'" + catalogName + "\' and " + >+ "INFORMATION_SCHEMA.ROUTINES.SPECIFIC_SCHEMA = \'" + schemaName + "\'"; >+ if (getJDBCFilterPattern() != null >+ && getJDBCFilterPattern().length() > 0) { >+ String filter = " AND ALIAS LIKE " + getJDBCFilterPattern();//$NON-NLS-1$ >+ query = query + filter; >+ } >+ query = query + " ORDER BY " + COLUMN_ROUTINE_NAME; >+ >+ Statement s = getCatalogObject().getConnection().createStatement(); >+ ResultSet r = s.executeQuery(query); >+ return r; >+ } >+ >+ protected boolean isProcedure(ResultSet rs) throws SQLException { >+ return rs.getString(COLUMN_ROUTINE_TYPE).startsWith("P"); >+ } >+ >+ public IRoutineFactory getProcedureFactory() { >+ return this.mProcedureFactory; >+ } >+ >+ public IRoutineFactory getUserDefinedFunctionFactory() { >+ return this.mUserDefinedFunctionFactory; >+ } >+ >+ protected Routine processRow(ResultSet rs) throws SQLException { >+ ICatalogObject object = getCatalogObject(); >+ Database database = object.getCatalogDatabase(); >+ if (mProcedureFactory == null) { >+ mProcedureFactory = new SQL2005ProcedureFactory(); >+ ((SQL2005ProcedureFactory) mProcedureFactory).setDatabase(database); >+ } >+ if (mUserDefinedFunctionFactory == null) { >+ mUserDefinedFunctionFactory = new SQL2005UserDefinedFunctionFactory(); >+ ((SQL2005UserDefinedFunctionFactory) mUserDefinedFunctionFactory).setDatabase(database); >+ } >+ IRoutineFactory routineFactory = isProcedure(rs) ? mProcedureFactory >+ : mUserDefinedFunctionFactory; >+ return routineFactory.createRoutine(rs); >+ } >+ >+ public void loadRoutines(List containmentList, Collection existingRoutines) >+ throws SQLException { >+ ResultSet rs = null; >+ try { >+ initActiveFilter(); >+ ICatalogObject object = getCatalogObject(); >+ Database database = object.getCatalogDatabase(); >+ for (rs = createResultSet(); rs.next();) { >+ String routineName = rs.getString(COLUMN_ROUTINE_NAME); >+ if (routineName == null || isFiltered(routineName)) { >+ continue; >+ } >+ Routine routine = (Routine) getAndRemoveSQLObject( >+ existingRoutines, routineName); >+ if (routine == null) { >+ routine = processRow(rs); >+ if (routine != null) { >+ containmentList.add(routine); >+ } >+ } >+ else { >+ if (isProcedure(rs)) { >+ ((SQL2005ProcedureFactory) mProcedureFactory).setDatabase(database); >+ mProcedureFactory.initialize(routine, rs); >+ } >+ else { >+ ((SQL2005UserDefinedFunctionFactory) mUserDefinedFunctionFactory).setDatabase(database); >+ mUserDefinedFunctionFactory.initialize(routine, rs); >+ } >+ containmentList.add(routine); >+ if (routine instanceof ICatalogObject) { >+ ((ICatalogObject) routine).refresh(); >+ } >+ } >+ } >+ } >+ finally { >+ if (rs != null) { >+ closeResultSet(rs); >+ } >+ } >+ } >+ >+ private static void loadSource(Routine routine, String aliasInfo, >+ Database database) { >+ if (aliasInfo == null || aliasInfo.trim().length() == 0) >+ return; >+ int index = aliasInfo.indexOf("begin"); //$NON-NLS-1$ >+ >+ // if it doesn't have any source, then don't bother >+ if (index == -1) return; >+ >+ // otherwise process the source >+ String body = aliasInfo.substring(index); >+ final DatabaseDefinition definition = RDBCorePlugin.getDefault() >+ .getDatabaseDefinitionRegistry().getDefinition(database); >+ final DataModelElementFactory factory = definition >+ .getDataModelElementFactory(); >+ >+ Source s = (Source) factory.create(SQLRoutinesPackage.eINSTANCE >+ .getSource()); >+ s.setBody(body); >+ routine.setSource(s); >+ } >+ >+} >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005SchemaLoader.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005SchemaLoader.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005SchemaLoader.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/loaders/SQL2005SchemaLoader.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,36 @@ >+package org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders; >+ >+import java.sql.ResultSet; >+import java.sql.SQLException; >+import java.sql.Statement; >+ >+import org.eclipse.datatools.connectivity.sqm.core.rte.ICatalogObject; >+import org.eclipse.datatools.connectivity.sqm.loader.JDBCSchemaLoader; >+ >+public class SQL2005SchemaLoader extends JDBCSchemaLoader { >+ >+ public SQL2005SchemaLoader() { >+ super(null); >+ } >+ >+ public SQL2005SchemaLoader(ICatalogObject catalogObject) { >+ super(catalogObject); >+ } >+ >+ protected ResultSet createResultSet() throws SQLException { >+ String query = "select INFORMATION_SCHEMA.SCHEMATA.CATALOG_NAME as \'" + COLUMN_TABLE_CATALOG + "\', INFORMATION_SCHEMA.SCHEMATA.SCHEMA_NAME as \'" + COLUMN_TABLE_SCHEM + "\' from INFORMATION_SCHEMA.SCHEMATA where INFORMATION_SCHEMA.SCHEMATA.CATALOG_NAME = \'" + getCatalog().getName() + "\'"; >+// String query = "select sys.database_principals.name \'" + COLUMN_TABLE_CATALOG + "\', sys.database_principals.default_schema_name \'" + COLUMN_TABLE_SCHEM + "\' from sys.database_principals where not sid is null order by sys.database_principals.name"; >+ if (getJDBCFilterPattern() != null >+ && getJDBCFilterPattern().length() > 0) { >+ String filter = " AND ALIAS LIKE " + getJDBCFilterPattern();//$NON-NLS-1$ >+ query = query + filter; >+ } >+ query = query + " ORDER BY " + COLUMN_TABLE_SCHEM; >+ >+ Statement s = getCatalogObject().getConnection().createStatement(); >+ ResultSet r = s.executeQuery(query); >+ return r; >+ } >+ >+} >+ >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerConnectionFactory.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerConnectionFactory.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerConnectionFactory.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerConnectionFactory.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.msft.internal.sqlserver.connection; >+ >+import org.eclipse.datatools.connectivity.IConnection; >+import org.eclipse.datatools.connectivity.IConnectionFactory; >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+ >+public class JDBCSQLServerConnectionFactory implements IConnectionFactory { >+ >+ public JDBCSQLServerConnectionFactory() { >+ super(); >+ } >+ >+ public IConnection createConnection(IConnectionProfile profile) { >+ JDBCSQLServerJDBCConnection connection = new JDBCSQLServerJDBCConnection(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,32 @@ >+############################################################################### >+# 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 Microsoft SQL Server Plug-in >+providerName=Eclipse.org >+ >+driverClass = Driver Class >+driverVendor = Vendor >+driverVersion = Version >+driverDBName = Database Name >+driverConnectionURL = Connection URL >+driverUID = User ID >+driverPWD = Password >+ >+SQLSERVER_CATEGORY_NAME = SQL Server >+2005_VERSION_CATEGORY_NAME = 2005 >+2000_VERSION_CATEGORY_NAME = 2000 >+ >+org.eclipse.datatools.enablement.msft.sqlserver.2005.driverTemplate = Microsoft SQL Server 2005 JDBC Driver >+org.eclipse.datatools.enablement.msft.sqlserver.2000.driverTemplate = Microsoft SQL Server 2000 Driver for JDBC >+org.eclipse.datatools.enablement.msft.sqlserver.2005.other.driverTemplate = Other Driver >+org.eclipse.datatools.enablement.msft.sqlserver.2000.other.driverTemplate = Other Driver >+ >+jdbc.connection.name = JDBC Connection >+profile.sqlserver.title = SQL Server >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,300 @@ >+<?xml version="1.0" encoding="UTF-8"?> >+<?eclipse version="3.0"?> >+<plugin> >+ <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.msft.sqlserver.connectionProfile" >+ name="%profile.sqlserver.title" >+ pingFactory="org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.JDBCSQLServerConnectionFactory" >+ propertiesPersistenceHook="org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.SQLServerDBPropertiesPersistenceHook"/> >+ <connectionFactory >+ class="org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.JDBCSQLServerConnectionFactory" >+ id="java.sql.Connection" >+ name="jdbc.connection.name" >+ profile="org.eclipse.datatools.enablement.msft.sqlserver.connectionProfile"/> >+ </extension> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.driverExtension"> >+ <category >+ parentCategory="org.eclipse.datatools.connectivity.db.driverCategory" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.driverCategory" >+ name="%SQLSERVER_CATEGORY_NAME"/> >+ <category >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.driverCategory" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.2005.driverCategory" >+ name="%2005_VERSION_CATEGORY_NAME"/> >+ <category >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.driverCategory" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.2000.driverCategory" >+ name="%2000_VERSION_CATEGORY_NAME"/> >+ >+ <driverTemplate >+ createDefault="false" >+ emptyJarListIsOK="false" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.2005.driverTemplate" >+ jarList="sqljdbc.jar" >+ name="%org.eclipse.datatools.enablement.msft.sqlserver.2005.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.2005.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.microsoft.sqlserver.jdbc.SQLServerDriver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="SQL Server" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="2005" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="pubs" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:sqlserver://localhost:1433;databaseName=pubs" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ 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.msft.sqlserver.2000.driverTemplate" >+ jarList="msbase.jar;mssqlserver.jar;msutil.jar" >+ name="%org.eclipse.datatools.enablement.msft.sqlserver.2000.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.2000.driverCategory"> >+ <properties> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.driverClass" >+ name="%driverClass" >+ value="com.microsoft.jdbc.sqlserver.SQLServerDriver" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.vendor" >+ name="%driverVendor" >+ value="SQL Server" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="2000" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.databaseName" >+ name="%driverDBName" >+ value="pubs" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.URL" >+ name="%driverConnectionURL" >+ value="jdbc:microsoft:sqlserver://localhost:1433;databaseName=pubs" >+ required="true" >+ visible="true"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.username" >+ name="%driverUID" >+ value="" >+ required="false" >+ visible="true"/> >+ <property >+ 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.msft.sqlserver.2005.other.driverTemplate" >+ jarList="" >+ name="%org.eclipse.datatools.enablement.msft.sqlserver.2005.other.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.2005.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="SQL Server" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="2005" >+ 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 >+ 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.msft.sqlserver.2000.other.driverTemplate" >+ jarList="" >+ name="%org.eclipse.datatools.enablement.msft.sqlserver.2000.other.driverTemplate" >+ parentCategory="org.eclipse.datatools.enablement.msft.sqlserver.2000.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="SQL Server" >+ required="true" >+ visible="false"/> >+ <property >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.version" >+ name="%driverVersion" >+ value="2000" >+ 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 >+ generated="false" >+ id="org.eclipse.datatools.connectivity.db.password" >+ name="%driverPWD" >+ required="false" >+ visible="true"/> >+ </properties> >+ </driverTemplate> >+ </extension> >+ >+ <extension >+ point="org.eclipse.datatools.connectivity.sqm.core.catalog"> >+ <overrideLoader >+ provider="org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders.SQL2005SchemaLoader" >+ eclass="org.eclipse.datatools.modelbase.sql.schema.Schema" >+ product="SQL Server" >+ version="2005"/> >+ <overrideLoader >+ eclass=" org.eclipse.datatools.modelbase.sql.routines.Routine" >+ product="SQL Server" >+ provider="org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders.SQL2005RoutineLoader" >+ version="2005"/> >+ <overrideLoader >+ eclass=" org.eclipse.datatools.modelbase.sql.routines.Routine" >+ product="SQL Server" >+ provider="org.eclipse.datatools.enablement.msft.internal.sqlserver.loaders.SQL2005RoutineLoader" >+ version="2000"/> >+ </extension> >+ </plugin> >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerJDBCConnection.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerJDBCConnection.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerJDBCConnection.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/JDBCSQLServerJDBCConnection.java 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,21 @@ >+/******************************************************************************* >+ * 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.msft.internal.sqlserver.connection; >+ >+import org.eclipse.datatools.connectivity.IConnectionProfile; >+import org.eclipse.datatools.connectivity.db.generic.JDBCConnection; >+ >+public class JDBCSQLServerJDBCConnection extends JDBCConnection { >+ >+ public JDBCSQLServerJDBCConnection(IConnectionProfile profile, Class factoryClass) { >+ super(profile, factoryClass); >+ } >+} >Index: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/ISQLServerConnectionProfileConstants.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/ISQLServerConnectionProfileConstants.java >diff -N src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/ISQLServerConnectionProfileConstants.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/internal/sqlserver/connection/ISQLServerConnectionProfileConstants.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.msft.internal.sqlserver.connection; >+ >+ >+public interface ISQLServerConnectionProfileConstants { >+ >+ public static final String SQLSERVER_CATEGORY_ID = "org.eclipse.datatools.enablement.msft.sqlserver.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?; >#P org.eclipse.datatools.enablement.msft.sqlserver.ui >Index: META-INF/MANIFEST.MF >=================================================================== >RCS file: /cvsroot/datatools/org.eclipse.datatools.enablement/plugins/org.eclipse.datatools.enablement.msft.sqlserver.ui/META-INF/MANIFEST.MF,v >retrieving revision 1.1 >diff -u -r1.1 MANIFEST.MF >--- META-INF/MANIFEST.MF 5 Oct 2007 00:11:55 -0000 1.1 >+++ META-INF/MANIFEST.MF 6 Oct 2007 00:42:46 -0000 >@@ -1,5 +1,19 @@ > Manifest-Version: 1.0 > Bundle-ManifestVersion: 2 >-Bundle-Name: Ui Plug-in >-Bundle-SymbolicName: org.eclipse.datatools.enablement.msft.sqlserver.ui >-Bundle-Version: 1.0.0 >+Bundle-Name: %pluginName >+Bundle-SymbolicName: org.eclipse.datatools.enablement.msft.sqlserver.ui;singleton:=true >+Bundle-Version: 1.0.1.200710051 >+Bundle-Vendor: %providerName >+Bundle-Localization: plugin >+Require-Bundle: org.eclipse.core.runtime, >+ org.eclipse.datatools.modelbase.sql;bundle-version="[1.0.0,2.0.0)", >+ org.eclipse.datatools.connectivity.sqm.core;bundle-version="[1.0.1,2.0.0)", >+ 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.enablement.msft.sqlserver;bundle-version="[1.0.1,2.0.0)" >+Eclipse-LazyStart: true >+Export-Package: org.eclipse.datatools.enablement.msft.sqlserver.internal.ui.connection >+Bundle-RequiredExecutionEnvironment: J2SE-1.4 >Index: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfileDetailsWizardPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfileDetailsWizardPage.java >diff -N src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfileDetailsWizardPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfileDetailsWizardPage.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.msft.sqlserver.internal.ui.connection; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage; >+import org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.ISQLServerConnectionProfileConstants; >+ >+public class SQLServerDBProfileDetailsWizardPage >+ extends GenericDBProfileDetailsWizardPage{ >+ >+ public SQLServerDBProfileDetailsWizardPage(String pageName) { >+ super(pageName); >+ setDriverCategory(ISQLServerConnectionProfileConstants.SQLSERVER_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 Microsoft SQL Server UI Plug-in >+providerName=Eclipse.org >+ >+profile.sqlserver.wizard.title = SQL Server >+profile.sqlserver.properties = SQL Server Connection Properties >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: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/NewSQLServerConnectionProfileWizard.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/NewSQLServerConnectionProfileWizard.java >diff -N src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/NewSQLServerConnectionProfileWizard.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/NewSQLServerConnectionProfileWizard.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.msft.sqlserver.internal.ui.connection; >+ >+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 NewSQLServerConnectionProfileWizard extends NewConnectionProfileWizard { >+ >+ protected SQLServerDBProfileDetailsWizardPage mPropPage; >+ >+ public NewSQLServerConnectionProfileWizard() { >+ super(); >+ } >+ >+ public void addCustomPages() { >+ mPropPage = new SQLServerDBProfileDetailsWizardPage("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: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfilePropertyPage.java >=================================================================== >RCS file: src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfilePropertyPage.java >diff -N src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfilePropertyPage.java >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ src/org/eclipse/datatools/enablement/msft/sqlserver/internal/ui/connection/SQLServerDBProfilePropertyPage.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.msft.sqlserver.internal.ui.connection; >+ >+import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfilePropertyPage; >+import org.eclipse.datatools.enablement.msft.internal.sqlserver.connection.ISQLServerConnectionProfileConstants; >+ >+public class SQLServerDBProfilePropertyPage extends GenericDBProfilePropertyPage { >+ >+ public SQLServerDBProfilePropertyPage() { >+ super(); >+ noDefaultAndApplyButton(); >+ setDriverCategory(ISQLServerConnectionProfileConstants.SQLSERVER_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,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.msft.sqlserver.internal.ui.connection.NewSQLServerConnectionProfileWizard" >+ icon="icons/new_db_element.gif" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.NewSQLServerConnectionProfileWizard" >+ name="%profile.sqlserver.wizard.title" >+ profile="org.eclipse.datatools.enablement.msft.sqlserver.connectionProfile"/> >+ </extension> >+ <extension >+ point="org.eclipse.ui.propertyPages"> >+ <page >+ class="org.eclipse.datatools.enablement.msft.sqlserver.internal.ui.connection.SQLServerDBProfilePropertyPage" >+ id="org.eclipse.datatools.enablement.msft.sqlserver.profileProperties" >+ name="%profile.sqlserver.properties" >+ objectClass="org.eclipse.datatools.connectivity.IConnectionProfile"> >+ <filter >+ name="org.eclipse.datatools.profile.property.id" >+ value="org.eclipse.datatools.enablement.msft.sqlserver.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