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
e8a065bb
Commit
e8a065bb
authored
10 years ago
by
Tobias Pietzsch
Browse files
Options
Downloads
Patches
Plain Diff
display name of open dataset as BDV window title
parent
196e9921
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
core/src/main/java/bdv/BigDataViewer.java
+6
-3
6 additions, 3 deletions
core/src/main/java/bdv/BigDataViewer.java
with
6 additions
and
3 deletions
core/src/main/java/bdv/BigDataViewer.java
+
6
−
3
View file @
e8a065bb
...
...
@@ -222,7 +222,7 @@ public class BigDataViewer
else
throw
new
IllegalArgumentException
(
"ImgLoader of type "
+
type
.
getClass
()
+
" not supported."
);
}
protected
BigDataViewer
(
final
String
xmlFilename
,
final
ProgressWriter
progressWriter
)
throws
SpimDataException
protected
BigDataViewer
(
final
String
xmlFilename
,
final
String
windowTitle
,
final
ProgressWriter
progressWriter
)
throws
SpimDataException
{
final
int
width
=
800
;
final
int
height
=
600
;
...
...
@@ -241,6 +241,8 @@ public class BigDataViewer
final
List
<
TimePoint
>
timepoints
=
seq
.
getTimePoints
().
getTimePointsOrdered
();
viewerFrame
=
new
ViewerFrame
(
width
,
height
,
sources
,
timepoints
.
size
(),
(
(
ViewerImgLoader
<
?,
?
>
)
seq
.
getImgLoader
()
).
getCache
()
);
if
(
windowTitle
!=
null
)
viewerFrame
.
setTitle
(
windowTitle
);
viewer
=
viewerFrame
.
getViewerPanel
();
for
(
final
ConverterSetup
cs
:
converterSetups
)
...
...
@@ -442,7 +444,7 @@ public class BigDataViewer
public
static
void
view
(
final
String
filename
,
final
ProgressWriter
progressWriter
)
throws
SpimDataException
{
new
BigDataViewer
(
filename
,
progressWriter
);
new
BigDataViewer
(
filename
,
new
File
(
filename
).
getName
(),
progressWriter
);
}
public
static
void
main
(
final
String
[]
args
)
...
...
@@ -466,7 +468,8 @@ public class BigDataViewer
try
{
System
.
setProperty
(
"apple.laf.useScreenMenuBar"
,
"true"
);
new
BigDataViewer
(
fn
,
new
ProgressWriterConsole
()
);
view
(
fn
,
new
ProgressWriterConsole
()
);
// new BigDataViewer( fn, "BigDataViewer", new ProgressWriterConsole() );
}
catch
(
final
Exception
e
)
{
...
...
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