Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Core_Extension
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Core_Extension
Commits
4deb3a3f
Commit
4deb3a3f
authored
5 years ago
by
Vojtech Moravec
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned the main function.
parent
2c50d8e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/BigDataViewer.java
+12
-14
12 additions, 14 deletions
src/main/java/bdv/BigDataViewer.java
with
12 additions
and
14 deletions
src/main/java/bdv/BigDataViewer.java
+
12
−
14
View file @
4deb3a3f
...
...
@@ -35,6 +35,7 @@ import java.io.FileWriter;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.function.BiFunction
;
import
javax.swing.ActionMap
;
import
javax.swing.JFileChooser
;
...
...
@@ -680,27 +681,24 @@ public class BigDataViewer
viewer
.
requestRepaint
();
}
public
static
void
main
(
final
String
[]
args
)
{
if
(
args
.
length
<
1
)
{
public
static
void
main
(
final
String
[]
args
)
{
if
(
args
.
length
<
1
)
{
System
.
err
.
println
(
"Error: pass XML dataset file."
);
return
;
}
final
String
fn
=
args
[
0
];
System
.
out
.
println
(
"Loading dataset from: "
+
fn
);
//TODO(Moravec): Handle loading from server.
try
{
System
.
setProperty
(
"apple.laf.useScreenMenuBar"
,
"true"
);
final
boolean
serverResource
=
fn
.
startsWith
(
"http"
);
final
BigDataViewer
bdv
=
open
(
fn
,
new
File
(
fn
).
getName
(),
new
ProgressWriterConsole
(),
ViewerOptions
.
options
()
);
System
.
out
.
println
(
String
.
format
(
"Loading dataset from %s resource: %s"
,
serverResource
?
"online"
:
"local"
,
fn
)
);
// DumpInputConfig.writeToYaml( System.getProperty( "user.home" ) + "/.bdv/bdvkeyconfig.yaml", bdv.getViewerFrame() );
}
catch
(
final
Exception
e
)
{
try
{
System
.
setProperty
(
"apple.laf.useScreenMenuBar"
,
"true"
);
final
String
title
=
new
File
(
fn
).
getName
();
final
BigDataViewer
bdv
=
open
(
fn
,
title
,
new
ProgressWriterConsole
(),
ViewerOptions
.
options
());
}
catch
(
final
Exception
e
)
{
e
.
printStackTrace
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment