Skip to content

Commit 5150f8c

Browse files
andreasprlicjosemduarte
authored andcommitted
cherry-picking: #459 removing javaws dependency
1 parent f24019f commit 5150f8c

File tree

4 files changed

+2
-271
lines changed

4 files changed

+2
-271
lines changed

biojava-structure-gui/pom.xml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,12 @@
1616
<distribution>repo</distribution>
1717
</license>
1818
</licenses>
19-
<repositories>
20-
<!-- Used for javaws:javaws -->
21-
<repository>
22-
<id>biojava-maven-repo</id>
23-
<name>BioJava repository</name>
24-
<url>http://www.biojava.org/download/maven/</url>
25-
<snapshots>
26-
<enabled>true</enabled>
27-
</snapshots>
28-
<releases>
29-
<enabled>true</enabled>
30-
<updatePolicy>always</updatePolicy>
31-
</releases>
32-
</repository>
33-
</repositories>
3419
<dependencies>
3520
<dependency>
3621
<groupId>junit</groupId>
3722
<artifactId>junit</artifactId>
3823
<scope>test</scope>
3924
</dependency>
40-
<dependency>
41-
<groupId>javaws</groupId>
42-
<artifactId>javaws</artifactId>
43-
<version>1.0</version>
44-
</dependency>
4525
<dependency>
4626
<groupId>org.biojava</groupId>
4727
<artifactId>biojava-structure</artifactId>
@@ -94,7 +74,7 @@
9474
<build>
9575
<plugins>
9676

97-
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
77+
<!-- Excluding demo package is required for avoiding namespace clashes (demo package is in all modules) for signing the jar. See issue #387 -->
9878
<plugin>
9979
<groupId>org.apache.maven.plugins</groupId>
10080
<artifactId>maven-jar-plugin</artifactId>
@@ -108,4 +88,5 @@
10888
</plugins>
10989
</build>
11090

91+
11192
</project>

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,7 @@ public void actionPerformed(ActionEvent evt) {
6262
if ( txt != null){
6363
chooser.setCurrentDirectory(new java.io.File(txt));
6464
config.setPdbFilePath(txt);
65-
try {
66-
PersistentConfig webstartConfig = new PersistentConfig();
6765

68-
webstartConfig.save(config);
69-
70-
} catch (Exception e){
71-
e.printStackTrace();
72-
}
7366
}
7467
chooser.setDialogTitle("Choose directory that contains your PDB files");
7568
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

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

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

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

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -229,29 +229,10 @@ private static JProgressBar showProgressBar(JFrame frame, String title, String d
229229

230230
public static UserConfiguration getWebStartConfig(){
231231

232-
if ( userConfig == null) {
233-
try {
234-
PersistentConfig webstartConfig = new PersistentConfig();
235-
236-
userConfig = webstartConfig.load();
237-
238-
} catch (Exception e){
239-
System.err.println(e.getMessage());
240-
}
241-
}
242-
243232
// check if we could load it (i.e. we are running in web start mode)
244233
if ( userConfig == null ) {
245234
userConfig = WebStartMain.getDefaultConfig();
246235

247-
try {
248-
PersistentConfig webstartConfig = new PersistentConfig();
249-
250-
webstartConfig.save(userConfig);
251-
252-
} catch (UnavailableServiceException e){
253-
System.err.println(e.getMessage());
254-
}
255236
}
256237

257238
return userConfig;
@@ -270,18 +251,6 @@ public static UserConfiguration getDefaultConfig(){
270251
return userConfig;
271252
}
272253

273-
public static void persistConfig(UserConfiguration config){
274-
275-
try {
276-
PersistentConfig webstartConfig = new PersistentConfig();
277-
278-
webstartConfig.save(config);
279-
280-
} catch (UnavailableServiceException e){
281-
e.printStackTrace();
282-
}
283-
284-
}
285254

286255
public static UserConfiguration requestUserConfig(){
287256

0 commit comments

Comments
 (0)