Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 203158 | Differences between
and this patch

Collapse All | Expand All

(-)build.properties (-1 / +5 lines)
Lines 1-4 Link Here
1
source.. = src/
1
source.. = src/
2
output.. = bin/
2
output.. = bin/
3
bin.includes = META-INF/,\
3
bin.includes = META-INF/,\
4
               .
4
               .,\
5
               plugin.xml,\
6
               plugin.properties,\
7
               icons/,\
8
               about.html
(-)META-INF/MANIFEST.MF (-3 / +10 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: Oracle Plug-in
3
Bundle-Name: %pluginName
4
Bundle-SymbolicName: org.eclipse.datatools.enablement.oracle
4
Bundle-SymbolicName: org.eclipse.datatools.enablement.oracle;singleton:=true
5
Bundle-Version: 1.0.0
5
Bundle-Version: 1.0.0.200710041
6
Bundle-Localization: plugin
7
Export-Package: org.eclipse.datatools.enablement.internal.oracle
8
Require-Bundle: org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)",
9
 org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)"
10
Eclipse-LazyStart: true
11
Bundle-Vendor: %providerName
12
Bundle-RequiredExecutionEnvironment: J2SE-1.4
(-)src/org/eclipse/datatools/enablement/internal/oracle/JDBCOracleJDBCConnection.java (+21 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.internal.oracle;
12
13
import org.eclipse.datatools.connectivity.IConnectionProfile;
14
import org.eclipse.datatools.connectivity.db.generic.JDBCConnection;
15
16
public class JDBCOracleJDBCConnection extends JDBCConnection {
17
18
	public JDBCOracleJDBCConnection(IConnectionProfile profile, Class factoryClass) {
19
		super(profile, factoryClass);
20
	}
21
}
(-)plugin.properties (+35 lines)
Added Link Here
1
###############################################################################
2
# Copyright (c) 2006, 2007 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
7
# 
8
# Contributors:
9
#     IBM Corporation - initial API and implementation
10
###############################################################################
11
pluginName=Eclipse Data Tools Platform Oracle Plug-in
12
providerName=Eclipse.org
13
14
driverClass = Driver Class
15
driverVendor = Vendor
16
driverVersion = Version
17
driverDBName = Database Name
18
driverConnectionURL = Connection URL
19
driverUID = User ID
20
driverPWD = Password
21
22
ORACLE_CATEGORY_NAME = Oracle
23
10_VERSION_CATEGORY_NAME = 10
24
9_VERSION_CATEGORY_NAME = 9
25
8_VERSION_CATEGORY_NAME = 8
26
27
org.eclipse.datatools.enablement.oracle.10.driverTemplate = Oracle Thin Driver
28
org.eclipse.datatools.enablement.oracle.9.driverTemplate = Oracle Thin Driver
29
org.eclipse.datatools.enablement.oracle.8.driverTemplate = Oracle Thin Driver
30
org.eclipse.datatools.enablement.oracle.10.other.driverTemplate = Other Driver
31
org.eclipse.datatools.enablement.oracle.9.other.driverTemplate = Other Driver
32
org.eclipse.datatools.enablement.oracle.8.other.driverTemplate = Other Driver
33
34
jdbc.connection.name = JDBC Connection
35
profile.oracle.title = Oracle
(-)plugin.xml (+409 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.0"?>
3
<plugin>
4
	<extension
5
         point="org.eclipse.datatools.connectivity.connectionProfile">
6
      <connectionProfile
7
            category="org.eclipse.datatools.connectivity.db.category"
8
            configurationType="org.eclipse.datatools.connectivity.db.generic.configurationType"
9
            icon="icons/jdbc_16.gif"
10
            id="org.eclipse.datatools.enablement.oracle.connectionProfile"
11
            name="%profile.oracle.title"
12
            pingFactory="org.eclipse.datatools.enablement.internal.oracle.JDBCOracleConnectionFactory"
13
            propertiesPersistenceHook="org.eclipse.datatools.enablement.internal.oracle.OracleDBPropertiesPersistenceHook"/>
14
      <connectionFactory
15
            class="org.eclipse.datatools.enablement.internal.oracle.JDBCOracleConnectionFactory"
16
            id="java.sql.Connection"
17
            name="jdbc.connection.name"
18
            profile="org.eclipse.datatools.enablement.oracle.connectionProfile"/>
19
   </extension>
20
   
21
	<extension
22
         point="org.eclipse.datatools.connectivity.driverExtension">    
23
      	 <category
24
      		parentCategory="org.eclipse.datatools.connectivity.db.driverCategory"
25
            id="org.eclipse.datatools.enablement.oracle.driverCategory"
26
            name="%ORACLE_CATEGORY_NAME"/>
27
         <category
28
      		parentCategory="org.eclipse.datatools.enablement.oracle.driverCategory"
29
            id="org.eclipse.datatools.enablement.oracle.10.driverCategory"
30
            name="%10_VERSION_CATEGORY_NAME"/> 
31
         <category
32
      		parentCategory="org.eclipse.datatools.enablement.oracle.driverCategory"
33
            id="org.eclipse.datatools.enablement.oracle.9.driverCategory"
34
            name="%9_VERSION_CATEGORY_NAME"/> 
35
         <category
36
      		parentCategory="org.eclipse.datatools.enablement.oracle.driverCategory"
37
            id="org.eclipse.datatools.enablement.oracle.8.driverCategory"
38
            name="%8_VERSION_CATEGORY_NAME"/> 
39
    
40
    <driverTemplate 
41
          createDefault="false" 
42
          emptyJarListIsOK="false" 
43
          id="org.eclipse.datatools.enablement.oracle.10.driverTemplate" 
44
          jarList="ojdbc14.jar" 
45
          name="%org.eclipse.datatools.enablement.oracle.10.driverTemplate" 
46
          parentCategory="org.eclipse.datatools.enablement.oracle.10.driverCategory" > 
47
       <properties> 
48
          <property 
49
                generated="false" 
50
                id="org.eclipse.datatools.connectivity.db.driverClass" 
51
                name="%driverClass" 
52
                value="oracle.jdbc.OracleDriver" 
53
                required="true" 
54
                visible="true"/> 
55
          <property 
56
                generated="false" 
57
                id="org.eclipse.datatools.connectivity.db.vendor" 
58
                name="%driverVendor" 
59
                value="Oracle" 
60
                required="true" 
61
                visible="false"/> 
62
          <property 
63
                generated="false" 
64
                id="org.eclipse.datatools.connectivity.db.version" 
65
                name="%driverVersion" 
66
                value="10" 
67
                required="true" 
68
                visible="false"/>   
69
          <property 
70
                generated="false" 
71
                id="org.eclipse.datatools.connectivity.db.databaseName" 
72
                name="%driverDBName" 
73
                value="db" 
74
                required="true" 
75
                visible="true"/>                             
76
          <property 
77
                generated="false" 
78
                id="org.eclipse.datatools.connectivity.db.URL" 
79
                name="%driverConnectionURL" 
80
                value="jdbc:oracle:thin:@server:1521:db" 
81
                required="true" 
82
                visible="true"/> 
83
          <property 
84
                generated="false" 
85
                id="org.eclipse.datatools.connectivity.db.username" 
86
                name="%driverUID" 
87
                value="" 
88
                required="false" 
89
                visible="true"/> 
90
          <property
91
                generated="false"
92
                id="org.eclipse.datatools.connectivity.db.password"
93
                name="%driverPWD"
94
                required="false"
95
                visible="true"/> 
96
       </properties> 
97
    </driverTemplate> 
98
   </extension>
99
   
100
   <extension
101
         point="org.eclipse.datatools.connectivity.driverExtension">    
102
    <driverTemplate 
103
          createDefault="false" 
104
          emptyJarListIsOK="false" 
105
          id="org.eclipse.datatools.enablement.oracle.9.driverTemplate" 
106
          jarList="classes12.jar" 
107
          name="%org.eclipse.datatools.enablement.oracle.9.driverTemplate" 
108
          parentCategory="org.eclipse.datatools.enablement.oracle.9.driverCategory" > 
109
       <properties> 
110
          <property 
111
                generated="false" 
112
                id="org.eclipse.datatools.connectivity.db.driverClass" 
113
                name="%driverClass" 
114
                value="oracle.jdbc.OracleDriver" 
115
                required="true" 
116
                visible="true"/> 
117
          <property 
118
                generated="false" 
119
                id="org.eclipse.datatools.connectivity.db.vendor" 
120
                name="%driverVendor" 
121
                value="Oracle" 
122
                required="true" 
123
                visible="false"/> 
124
          <property 
125
                generated="false" 
126
                id="org.eclipse.datatools.connectivity.db.version" 
127
                name="%driverVersion" 
128
                value="9" 
129
                required="true" 
130
                visible="false"/>   
131
          <property 
132
                generated="false" 
133
                id="org.eclipse.datatools.connectivity.db.databaseName" 
134
                name="%driverDBName" 
135
                value="db" 
136
                required="true" 
137
                visible="true"/>                             
138
          <property 
139
                generated="false" 
140
                id="org.eclipse.datatools.connectivity.db.URL" 
141
                name="%driverConnectionURL" 
142
                value="jdbc:oracle:thin:@server:1521:db" 
143
                required="true" 
144
                visible="true"/> 
145
          <property 
146
                generated="false" 
147
                id="org.eclipse.datatools.connectivity.db.username" 
148
                name="%driverUID" 
149
                value="" 
150
                required="false" 
151
                visible="true"/> 
152
          <property
153
                generated="false"
154
                id="org.eclipse.datatools.connectivity.db.password"
155
                name="%driverPWD"
156
                required="false"
157
                visible="true"/> 
158
       </properties> 
159
    </driverTemplate> 
160
   </extension>
161
   
162
   <extension
163
         point="org.eclipse.datatools.connectivity.driverExtension">    
164
    <driverTemplate 
165
          createDefault="false" 
166
          emptyJarListIsOK="false" 
167
          id="org.eclipse.datatools.enablement.oracle.8.driverTemplate" 
168
          jarList="classes12.jar" 
169
          name="%org.eclipse.datatools.enablement.oracle.8.driverTemplate" 
170
          parentCategory="org.eclipse.datatools.enablement.oracle.8.driverCategory" > 
171
       <properties> 
172
          <property 
173
                generated="false" 
174
                id="org.eclipse.datatools.connectivity.db.driverClass" 
175
                name="%driverClass" 
176
                value="oracle.jdbc.OracleDriver" 
177
                required="true" 
178
                visible="true"/> 
179
          <property 
180
                generated="false" 
181
                id="org.eclipse.datatools.connectivity.db.vendor" 
182
                name="%driverVendor" 
183
                value="Oracle" 
184
                required="true" 
185
                visible="false"/> 
186
          <property 
187
                generated="false" 
188
                id="org.eclipse.datatools.connectivity.db.version" 
189
                name="%driverVersion" 
190
                value="8" 
191
                required="true" 
192
                visible="false"/>   
193
          <property 
194
                generated="false" 
195
                id="org.eclipse.datatools.connectivity.db.databaseName" 
196
                name="%driverDBName" 
197
                value="db" 
198
                required="true" 
199
                visible="true"/>                             
200
          <property 
201
                generated="false" 
202
                id="org.eclipse.datatools.connectivity.db.URL" 
203
                name="%driverConnectionURL" 
204
                value="jdbc:oracle:thin:@server:1521:db" 
205
                required="true" 
206
                visible="true"/> 
207
          <property 
208
                generated="false" 
209
                id="org.eclipse.datatools.connectivity.db.username" 
210
                name="%driverUID" 
211
                value="" 
212
                required="false" 
213
                visible="true"/> 
214
          <property
215
                generated="false"
216
                id="org.eclipse.datatools.connectivity.db.password"
217
                name="%driverPWD"
218
                required="false"
219
                visible="true"/> 
220
       </properties> 
221
    </driverTemplate> 
222
   </extension>
223
   
224
   <extension
225
         point="org.eclipse.datatools.connectivity.driverExtension">    
226
    <driverTemplate 
227
          createDefault="false" 
228
          emptyJarListIsOK="false" 
229
          id="org.eclipse.datatools.enablement.oracle.10.other.driverTemplate" 
230
          jarList="" 
231
          name="%org.eclipse.datatools.enablement.oracle.10.other.driverTemplate" 
232
          parentCategory="org.eclipse.datatools.enablement.oracle.10.driverCategory" > 
233
       <properties> 
234
          <property 
235
                generated="false" 
236
                id="org.eclipse.datatools.connectivity.db.driverClass" 
237
                name="%driverClass" 
238
                value="" 
239
                required="true" 
240
                visible="true"/> 
241
          <property 
242
                generated="false" 
243
                id="org.eclipse.datatools.connectivity.db.vendor" 
244
                name="%driverVendor" 
245
                value="Oracle" 
246
                required="true" 
247
                visible="false"/> 
248
          <property 
249
                generated="false" 
250
                id="org.eclipse.datatools.connectivity.db.version" 
251
                name="%driverVersion" 
252
                value="10" 
253
                required="true" 
254
                visible="false"/>   
255
          <property 
256
                generated="false" 
257
                id="org.eclipse.datatools.connectivity.db.databaseName" 
258
                name="%driverDBName" 
259
                value="" 
260
                required="true" 
261
                visible="true"/>                             
262
          <property 
263
                generated="false" 
264
                id="org.eclipse.datatools.connectivity.db.URL" 
265
                name="%driverConnectionURL" 
266
                value="" 
267
                required="true" 
268
                visible="true"/> 
269
          <property 
270
                generated="false" 
271
                id="org.eclipse.datatools.connectivity.db.username" 
272
                name="%driverUID" 
273
                value="" 
274
                required="false" 
275
                visible="true"/> 
276
          <property
277
                generated="false"
278
                id="org.eclipse.datatools.connectivity.db.password"
279
                name="%driverPWD"
280
                required="false"
281
                visible="true"/> 
282
       </properties> 
283
    </driverTemplate> 
284
   </extension>
285
   
286
   <extension
287
         point="org.eclipse.datatools.connectivity.driverExtension">    
288
    <driverTemplate 
289
          createDefault="false" 
290
          emptyJarListIsOK="false" 
291
          id="org.eclipse.datatools.enablement.oracle.9.other.driverTemplate" 
292
          jarList="" 
293
          name="%org.eclipse.datatools.enablement.oracle.9.other.driverTemplate" 
294
          parentCategory="org.eclipse.datatools.enablement.oracle.9.driverCategory" > 
295
       <properties> 
296
          <property 
297
                generated="false" 
298
                id="org.eclipse.datatools.connectivity.db.driverClass" 
299
                name="%driverClass" 
300
                value="" 
301
                required="true" 
302
                visible="true"/> 
303
          <property 
304
                generated="false" 
305
                id="org.eclipse.datatools.connectivity.db.vendor" 
306
                name="%driverVendor" 
307
                value="Oracle" 
308
                required="true" 
309
                visible="false"/> 
310
          <property 
311
                generated="false" 
312
                id="org.eclipse.datatools.connectivity.db.version" 
313
                name="%driverVersion" 
314
                value="9" 
315
                required="true" 
316
                visible="false"/>   
317
          <property 
318
                generated="false" 
319
                id="org.eclipse.datatools.connectivity.db.databaseName" 
320
                name="%driverDBName" 
321
                value="" 
322
                required="true" 
323
                visible="true"/>                             
324
          <property 
325
                generated="false" 
326
                id="org.eclipse.datatools.connectivity.db.URL" 
327
                name="%driverConnectionURL" 
328
                value="" 
329
                required="true" 
330
                visible="true"/> 
331
          <property 
332
                generated="false" 
333
                id="org.eclipse.datatools.connectivity.db.username" 
334
                name="%driverUID" 
335
                value="" 
336
                required="false" 
337
                visible="true"/> 
338
          <property
339
                generated="false"
340
                id="org.eclipse.datatools.connectivity.db.password"
341
                name="%driverPWD"
342
                required="false"
343
                visible="true"/> 
344
       </properties> 
345
    </driverTemplate> 
346
   </extension>
347
   
348
   <extension
349
         point="org.eclipse.datatools.connectivity.driverExtension">    
350
    <driverTemplate 
351
          createDefault="false" 
352
          emptyJarListIsOK="false" 
353
          id="org.eclipse.datatools.enablement.oracle.8.other.driverTemplate" 
354
          jarList="" 
355
          name="%org.eclipse.datatools.enablement.oracle.8.other.driverTemplate" 
356
          parentCategory="org.eclipse.datatools.enablement.oracle.8.driverCategory" > 
357
       <properties> 
358
          <property 
359
                generated="false" 
360
                id="org.eclipse.datatools.connectivity.db.driverClass" 
361
                name="%driverClass" 
362
                value="" 
363
                required="true" 
364
                visible="true"/> 
365
          <property 
366
                generated="false" 
367
                id="org.eclipse.datatools.connectivity.db.vendor" 
368
                name="%driverVendor" 
369
                value="Oracle" 
370
                required="true" 
371
                visible="false"/> 
372
          <property 
373
                generated="false" 
374
                id="org.eclipse.datatools.connectivity.db.version" 
375
                name="%driverVersion" 
376
                value="8" 
377
                required="true" 
378
                visible="false"/>   
379
          <property 
380
                generated="false" 
381
                id="org.eclipse.datatools.connectivity.db.databaseName" 
382
                name="%driverDBName" 
383
                value="" 
384
                required="true" 
385
                visible="true"/>                             
386
          <property 
387
                generated="false" 
388
                id="org.eclipse.datatools.connectivity.db.URL" 
389
                name="%driverConnectionURL" 
390
                value="" 
391
                required="true" 
392
                visible="true"/> 
393
          <property 
394
                generated="false" 
395
                id="org.eclipse.datatools.connectivity.db.username" 
396
                name="%driverUID" 
397
                value="" 
398
                required="false" 
399
                visible="true"/> 
400
          <property
401
                generated="false"
402
                id="org.eclipse.datatools.connectivity.db.password"
403
                name="%driverPWD"
404
                required="false"
405
                visible="true"/> 
406
       </properties> 
407
    </driverTemplate> 
408
   </extension>
409
 </plugin>  
(-)src/org/eclipse/datatools/enablement/internal/oracle/JDBCOracleConnectionFactory.java (+35 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
12
package org.eclipse.datatools.enablement.internal.oracle;
13
14
import org.eclipse.datatools.connectivity.IConnection;
15
import org.eclipse.datatools.connectivity.IConnectionFactory;
16
import org.eclipse.datatools.connectivity.IConnectionProfile;
17
18
public class JDBCOracleConnectionFactory implements IConnectionFactory {
19
20
	public JDBCOracleConnectionFactory() {
21
		super();
22
	}
23
24
	public IConnection createConnection(IConnectionProfile profile) {
25
		JDBCOracleJDBCConnection connection = new JDBCOracleJDBCConnection(profile,
26
				getClass());
27
		connection.open();
28
		return connection;
29
	}
30
31
	public IConnection createConnection(IConnectionProfile profile, String uid,
32
			String pwd) {
33
		return createConnection(profile);
34
	}
35
}
(-)src/org/eclipse/datatools/enablement/internal/oracle/OracleDBPropertiesPersistenceHook.java (+17 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.internal.oracle;
12
13
import org.eclipse.datatools.connectivity.db.generic.GenericDBPropertiesPersistenceHook;
14
15
public class OracleDBPropertiesPersistenceHook extends
16
		GenericDBPropertiesPersistenceHook {
17
}
(-)icons/jdbc_16.gif (+3 lines)
Added Link Here
1
GIF89a³€ŸŸŸ¿ÜÛÀ¿À­®­€€¿¿¿ßß¿ÿßßîîî`_`_`_öööÑÑÑÿÿÿ!ù,sÐIֈ½?I™l ‚ƒ•HD0€‚È!Fè²$0ê
2
Â
3
?P(x?ä±($ƒÁá…gÅÓpÅ¢ÉD*‰×aA?FÁi@vÛý†Ç³ròÌD­¡RTp2<_u`'‡G‘?”•–;
(-)src/org/eclipse/datatools/enablement/internal/oracle/IOracleConnectionProfileConstants.java (+18 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.internal.oracle;
12
13
14
public interface IOracleConnectionProfileConstants {
15
16
	public static final String ORACLE_CATEGORY_ID = "org.eclipse.datatools.enablement.oracle.driverCategory"; //$NON-NLS-1$
17
18
}
(-)build.properties (-1 / +5 lines)
Lines 1-4 Link Here
1
source.. = src/
1
source.. = src/
2
output.. = bin/
2
output.. = bin/
3
bin.includes = META-INF/,\
3
bin.includes = META-INF/,\
4
               .
4
               .,\
5
               plugin.xml,\
6
               plugin.properties,\
7
               icons/,\
8
               about.html
(-)META-INF/MANIFEST.MF (-3 / +14 lines)
Lines 1-5 Link Here
1
Manifest-Version: 1.0
1
Manifest-Version: 1.0
2
Bundle-ManifestVersion: 2
2
Bundle-ManifestVersion: 2
3
Bundle-Name: Ui Plug-in
3
Bundle-Name: %pluginName
4
Bundle-SymbolicName: org.eclipse.datatools.enablement.oracle.ui
4
Bundle-SymbolicName: org.eclipse.datatools.enablement.oracle.ui;singleton:=true
5
Bundle-Version: 1.0.0
5
Bundle-Version: 1.0.0.200710041
6
Bundle-Localization: plugin
7
Export-Package: org.eclipse.datatools.enablement.oracle.internal.ui
8
Require-Bundle: org.eclipse.ui;bundle-version="[3.2.0,4.0)",
9
 org.eclipse.datatools.connectivity;bundle-version="[1.0.1,2.0.0)",
10
 org.eclipse.datatools.connectivity.ui;bundle-version="[1.0.1,2.0.0)",
11
 org.eclipse.datatools.connectivity.db.generic;bundle-version="[1.0.0,2.0.0)",
12
 org.eclipse.datatools.connectivity.db.generic.ui;bundle-version="[1.0.1,2.0.0)",
13
 org.eclipse.datatools.enablement.oracle;bundle-version="[1.0.0,2.0.0)"
14
Eclipse-LazyStart: true
15
Bundle-Vendor: %providerName
16
Bundle-RequiredExecutionEnvironment: J2SE-1.4
(-)src/org/eclipse/datatools/enablement/oracle/internal/ui/OracleDBProfileDetailsWizardPage.java (+23 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.oracle.internal.ui;
12
13
import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage;
14
import org.eclipse.datatools.enablement.internal.oracle.IOracleConnectionProfileConstants;
15
16
public class OracleDBProfileDetailsWizardPage 
17
	extends GenericDBProfileDetailsWizardPage{
18
19
	public OracleDBProfileDetailsWizardPage(String pageName) {
20
		super(pageName);
21
		setDriverCategory(IOracleConnectionProfileConstants.ORACLE_CATEGORY_ID);	
22
	}
23
}
(-)plugin.xml (+26 lines)
Added Link Here
1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.0"?>
3
<plugin>
4
	<extension
5
         point="org.eclipse.datatools.connectivity.connectionProfile">
6
      <newWizard
7
            class="org.eclipse.datatools.enablement.oracle.internal.ui.NewOracleConnectionProfileWizard"
8
            icon="icons/new_db_element.gif"
9
            id="org.eclipse.datatools.enablement.oracle.NewOracleConnectionProfileWizard"
10
            name="%profile.oracle.wizard.title"
11
            profile="org.eclipse.datatools.enablement.oracle.connectionProfile"/>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.propertyPages">
15
      <page
16
            class="org.eclipse.datatools.enablement.oracle.internal.ui.OracleDBProfilePropertyPage"
17
            id="org.eclipse.datatools.enablement.oracle.profileProperties"
18
            name="%profile.oracle.properties"
19
            objectClass="org.eclipse.datatools.connectivity.IConnectionProfile">
20
         <filter
21
               name="org.eclipse.datatools.profile.property.id"
22
               value="org.eclipse.datatools.enablement.oracle.connectionProfile"/>
23
      </page>
24
   </extension>
25
  
26
 </plugin>  
(-)src/org/eclipse/datatools/enablement/oracle/internal/ui/NewOracleConnectionProfileWizard.java (+59 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.oracle.internal.ui;
12
13
import java.util.Properties;
14
15
import org.eclipse.datatools.connectivity.ConnectionProfileConstants;
16
import org.eclipse.datatools.connectivity.db.generic.IDBConnectionProfileConstants;
17
import org.eclipse.datatools.connectivity.db.generic.IDBDriverDefinitionConstants;
18
import org.eclipse.datatools.connectivity.db.generic.ui.NewConnectionProfileWizard;
19
20
public class NewOracleConnectionProfileWizard extends NewConnectionProfileWizard {
21
22
	protected OracleDBProfileDetailsWizardPage mPropPage;
23
24
	public NewOracleConnectionProfileWizard() {
25
		super();
26
	}
27
28
	public void addCustomPages() {
29
		mPropPage = new OracleDBProfileDetailsWizardPage("detailsPage"); //$NON-NLS-1$
30
		addPage(mPropPage);
31
	}
32
	
33
	public Properties getProfileProperties() {
34
		Properties props = new Properties();
35
		props.setProperty(ConnectionProfileConstants.PROP_DRIVER_DEFINITION_ID,
36
				this.mPropPage.getDriverID());
37
		props.setProperty(
38
				IDBConnectionProfileConstants.CONNECTION_PROPERTIES_PROP_ID,
39
				this.mPropPage.getDBConnProps());
40
		props.setProperty(IDBDriverDefinitionConstants.DRIVER_CLASS_PROP_ID, this.mPropPage
41
				.getDriverClass());
42
		props.setProperty(IDBDriverDefinitionConstants.DATABASE_VENDOR_PROP_ID, this.mPropPage
43
				.getVendor());		
44
		props.setProperty(IDBDriverDefinitionConstants.DATABASE_VERSION_PROP_ID, this.mPropPage
45
				.getVersion());			
46
		props.setProperty(IDBDriverDefinitionConstants.DATABASE_NAME_PROP_ID, this.mPropPage
47
				.getDatabaseName());
48
		props.setProperty(IDBDriverDefinitionConstants.PASSWORD_PROP_ID, this.mPropPage
49
				.getDBPWD());
50
		props.setProperty(
51
				IDBConnectionProfileConstants.SAVE_PASSWORD_PROP_ID, String
52
						.valueOf(this.mPropPage.getSaveDBPWD()));
53
		props.setProperty(IDBDriverDefinitionConstants.USERNAME_PROP_ID, this.mPropPage
54
				.getDBUID());
55
		props.setProperty(IDBDriverDefinitionConstants.URL_PROP_ID,
56
				this.mPropPage.getURL());
57
		return props;
58
	}
59
}
(-)plugin.properties (+15 lines)
Added Link Here
1
###############################################################################
2
# Copyright (c) 2006, 2007 IBM Corporation and others.
3
# All rights reserved. This program and the accompanying materials
4
# are made available under the terms of the Eclipse Public License v1.0
5
# which accompanies this distribution, and is available at
6
# http://www.eclipse.org/legal/epl-v10.html
7
# 
8
# Contributors:
9
#     IBM Corporation - initial API and implementation
10
###############################################################################
11
pluginName=Eclipse Data Tools Platform Oracle UI Plug-in
12
providerName=Eclipse.org
13
14
profile.oracle.wizard.title = Oracle
15
profile.oracle.properties = Oracle Connection Properties
(-)src/org/eclipse/datatools/enablement/oracle/internal/ui/OracleDBProfilePropertyPage.java (+24 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2007 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.datatools.enablement.oracle.internal.ui;
12
13
import org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfilePropertyPage;
14
import org.eclipse.datatools.enablement.internal.oracle.IOracleConnectionProfileConstants;
15
16
public class OracleDBProfilePropertyPage extends GenericDBProfilePropertyPage {
17
18
	public OracleDBProfilePropertyPage() {
19
		super();
20
		noDefaultAndApplyButton();
21
		setDriverCategory(IOracleConnectionProfileConstants.ORACLE_CATEGORY_ID);	
22
	}
23
24
}
(-)icons/new_db_element.gif (+4 lines)
Added Link Here
1
GIF89a÷ZcZcZc{„{„{„œœœ­­­µŒ9µ”9½½½½ÞÞÆ½ÆÖÖÖÞÞ½çΌÿÿÿÞÞÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ!ù,œt° €Áƒh?@‚‡$8A!C&ˆ8‘¢‹2näh „&
2
8 #LJJP¹rÀ–rPҀ?`D€€¢Ü
3
 ÀP	ˆàg͛-u²´i5èТG¥.]ÙôiTS«åš5çÖ±„"5Š”À€´$
4
Uª¼èeIpàÈ;

Return to bug 203158