forked from bioclipse/bioclipse.ds
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reworked Generators for DS selections.
* Switch Generator on SelectionChanged * Contribute atoms to generators vis GeneratorParameter, not AtomContainer.Properties * ITestResult contribute GeneratorParameters * Added Visible and AtomMap parameter to Generators in DS
- Loading branch information
Showing
21 changed files
with
439 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rc/net/bioclipse/ds/ui/prefs/DSPrefs.java → ...ipse.ds/src/net/bioclipse/ds/DSPrefs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package net.bioclipse.ds.ui.prefs; | ||
package net.bioclipse.ds; | ||
|
||
/** | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
plugins/net.bioclipse.ds/src/net/bioclipse/ds/model/result/AtomResultMatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package net.bioclipse.ds.model.result; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
/** | ||
* | ||
* @author ola | ||
*/ | ||
public class AtomResultMatch extends SubStructureMatch{ | ||
|
||
//AtomNumber > Value | ||
private Map<Integer, Integer> resultMap; | ||
|
||
public AtomResultMatch(String name, int resultStatus) { | ||
super( name, resultStatus ); | ||
resultMap=new HashMap<Integer, Integer>(); | ||
} | ||
|
||
public void setResultMap( Map<Integer, Integer> resulMap ) { | ||
this.resultMap = resulMap; | ||
} | ||
|
||
public Map<Integer, Integer> getResultMap() { | ||
return resultMap; | ||
} | ||
|
||
public void putAtomResult( Integer atomToAdd, Integer result ) { | ||
if (resultMap==null) resultMap=new HashMap<Integer, Integer>(); | ||
resultMap.put( atomToAdd, result ); | ||
if (!getAtomNumbers().contains( atomToAdd )){ | ||
getAtomNumbers().add( atomToAdd ); | ||
} | ||
|
||
} | ||
|
||
} |
Oops, something went wrong.