Skip to content

Commit

Permalink
Fix for API change in JCP
Browse files Browse the repository at this point in the history
Replace IBond.Stereo with IChemModelRelay.Direction

Solves bug 3254
  • Loading branch information
goglepox committed Aug 14, 2012
1 parent 98d07b8 commit 3f1a5d3
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -117,7 +117,7 @@ public Object execute( ExecutionEvent event ) throws ExecutionException {

} catch(NoSuchMethodException z) {
ct = cls.getConstructor(new Class<?>[]{ IChemModelRelay.class
,IBond.Stereo.class});
,IChemModelRelay.Direction.class});
hub.setActiveDrawModule( newInstance( ct,
params.getArray( hub,
Params.DIRECTION_PARAM )) );
Expand Down Expand Up @@ -215,7 +215,7 @@ public Parameters(Map commandParams) {
case INT_PARAM: result = Integer.valueOf( par );break;
case BOOLEAN_PARAM: result = Boolean.valueOf( par );break;
case DIRECTION_PARAM:
result = IBond.Stereo.valueOf( par.toUpperCase());break;
result = IChemModelRelay.Direction.valueOf( par.toUpperCase());break;
}
if(result !=null)
parameters.put( p, result );
Expand Down

0 comments on commit 3f1a5d3

Please sign in to comment.