|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2005, 2008 IBM Corporation and others. |
2 |
* Copyright (c) 2005, 2010 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 32-38
Link Here
|
| 32 |
* interface. |
32 |
* interface. |
| 33 |
* |
33 |
* |
| 34 |
* @author marcelop |
34 |
* @author marcelop |
|
|
35 |
* @author Jerome Bozier |
| 35 |
* @since 0.0.1 |
36 |
* @since 0.0.1 |
|
|
37 |
* @version May 7, 2010 |
| 36 |
*/ |
38 |
*/ |
| 37 |
public class AssociationDescriptor |
39 |
public class AssociationDescriptor |
| 38 |
implements IAssociationDescriptor, Serializable |
40 |
implements IAssociationDescriptor, Serializable |
|
Lines 232-238
Link Here
|
| 232 |
*/ |
234 |
*/ |
| 233 |
public Object createImplementationClassInstance() |
235 |
public Object createImplementationClassInstance() |
| 234 |
{ |
236 |
{ |
| 235 |
Class cls = getImplementationClass(); |
237 |
Object instance = null; |
|
|
238 |
if((extensionClass == null) && (configurationElement != null)) |
| 239 |
{ |
| 240 |
if(getValue(configurationElement, "class") != null) |
| 241 |
{ |
| 242 |
try |
| 243 |
{ |
| 244 |
instance = configurationElement.createExecutableExtension("class"); |
| 245 |
extensionClass = instance.getClass(); |
| 246 |
} |
| 247 |
catch (Exception e) |
| 248 |
{ |
| 249 |
CommonPlugin.logError(e); |
| 250 |
} |
| 251 |
} |
| 252 |
} |
| 253 |
if (instance != null) { |
| 254 |
return instance; |
| 255 |
} |
| 256 |
Class cls = extensionClass; |
| 236 |
if(cls != null) |
257 |
if(cls != null) |
| 237 |
{ |
258 |
{ |
| 238 |
try |
259 |
try |