Skip to content

Commit 31d29b5

Browse files
committed
Some more removals
1 parent 2474aa9 commit 31d29b5

File tree

6 files changed

+18
-300
lines changed

6 files changed

+18
-300
lines changed

biojava-structure-gui/src/main/java/org/biojava/nbio/structure/align/webstart/WebStartMain.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import org.biojava.nbio.structure.align.StructureAlignmentFactory;
2626
import org.biojava.nbio.structure.align.ce.CeCPMain;
2727
import org.biojava.nbio.structure.align.ce.CeMain;
28-
import org.biojava.nbio.structure.align.client.FarmJobParameters;
2928
import org.biojava.nbio.structure.align.client.JFatCatClient;
3029
import org.biojava.nbio.structure.align.client.PdbPair;
3130
import org.biojava.nbio.structure.align.fatcat.FatCatFlexible;
@@ -38,6 +37,7 @@
3837
import org.biojava.nbio.structure.align.model.AFPChain;
3938
import org.biojava.nbio.structure.align.seq.SmithWaterman3Daligner;
4039
import org.biojava.nbio.structure.align.util.AtomCache;
40+
import org.biojava.nbio.structure.align.util.ResourceManager;
4141
import org.biojava.nbio.structure.align.util.UserConfiguration;
4242

4343
import javax.swing.*;
@@ -47,6 +47,13 @@
4747
public class WebStartMain
4848
{
4949

50+
private static final ResourceManager resourceManager;
51+
private static final String DEFAULT_SERVER_URL;
52+
static {
53+
resourceManager = ResourceManager.getResourceManager("jfatcat");
54+
DEFAULT_SERVER_URL = resourceManager.getString("server.url");
55+
}
56+
5057
static UserConfiguration userConfig;
5158

5259
/**
@@ -113,7 +120,7 @@ public void run() {
113120
return;
114121
}
115122

116-
String serverLocation = FarmJobParameters.DEFAULT_SERVER_URL;
123+
String serverLocation = DEFAULT_SERVER_URL;
117124

118125
if ( args.length > 3 ) {
119126
// we have 4 arguments.

biojava-structure/src/main/java/org/biojava/nbio/structure/align/client/CountProgressListener.java

Lines changed: 0 additions & 83 deletions
This file was deleted.

biojava-structure/src/main/java/org/biojava/nbio/structure/align/client/FarmJobParameters.java

Lines changed: 0 additions & 209 deletions
This file was deleted.

biojava-structure/src/main/java/org/biojava/nbio/structure/align/client/PdbPair.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
import org.biojava.nbio.structure.StructureException;
2424

25-
/** A pair for structure alignment
25+
/**
26+
* A pair for structure alignment
2627
*
2728
* @author Andreas Prlic
2829
*
@@ -31,11 +32,13 @@
3132
*/
3233
public class PdbPair implements Comparable<PdbPair> {
3334

34-
StructureName name1;
35-
StructureName name2;
35+
private StructureName name1;
36+
private StructureName name2;
37+
3638
public PdbPair(String name1, String name2) {
3739
this(new StructureName(name1),new StructureName(name2));
3840
}
41+
3942
public PdbPair(StructureName name1, StructureName name2) {
4043
super();
4144
this.name1 = name1;

biojava-structure/src/main/java/org/biojava/nbio/structure/align/client/StructureName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
* information may be loaded from one of the factory classes:
6868
* {@link CathFactory},{@link ScopFactory}, etc.
6969
*
70-
* @see #getName the name. e.g. 4hhb, 4hhb.A, d4hhba_, PDP:4HHBAa etc.
70+
* @see #getIdentifier() the name. e.g. 4hhb, 4hhb.A, d4hhba_, PDP:4HHBAa etc.
7171
*/
7272

7373
public class StructureName implements Comparable<StructureName>, Serializable, StructureIdentifier {

biojava-structure/src/main/java/org/biojava/nbio/structure/align/util/ResourceManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@
2727

2828

2929

30-
/** A class that manages the Strings that are defined in the spice.properties file.
30+
/**
31+
* A class that manages the Strings that are defined in the spice.properties file.
3132
* This will be usefull for internationalisation.
3233
*
3334
* TODO: provide .properties files for other locales.
3435
* e.g. jfatcat_de_DE.properties, etc.
3536
*
3637
* @author Andreas Prlic
37-
* @since 1:43:04 PM
3838
* @version %I% %G%
3939
*/
4040
public class ResourceManager {

0 commit comments

Comments
 (0)