Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BigDataViewer_Fiji_Plugin
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BioinformaticDataCompression
BigDataViewer_Fiji_Plugin
Commits
9fb77eb1
Commit
9fb77eb1
authored
Feb 5, 2015
by
HongKee Moon
Browse files
Options
Downloads
Patches
Plain Diff
Simplify the initial dialog
parent
0a4984c1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/bdv/ij/BigDataBrowserPlugin.java
+11
-38
11 additions, 38 deletions
src/main/java/bdv/ij/BigDataBrowserPlugin.java
with
11 additions
and
38 deletions
src/main/java/bdv/ij/BigDataBrowserPlugin.java
+
11
−
38
View file @
9fb77eb1
...
@@ -42,47 +42,20 @@ public class BigDataBrowserPlugin implements PlugIn
...
@@ -42,47 +42,20 @@ public class BigDataBrowserPlugin implements PlugIn
}
}
String
serverUrl
=
"http://scicomp-pc-1-10gb:8070"
;
String
serverUrl
=
"http://scicomp-pc-1-10gb:8070"
;
// Clipboard access for getting bigdataserver url
// Clipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();
// Transferable t = c.getContents( this );
// if ( t != null )
// {
// try
// {
// serverUrl = ( String ) t.getTransferData( DataFlavor.stringFlavor );
// }
// catch ( Exception e )
// {
// e.printStackTrace();
// }
//
// if ( !serverUrl.startsWith( "http://" ) )
// {
// serverUrl = "http://" + serverUrl;
// }
// }
boolean
ret
;
do
{
Object
remoteUrl
=
JOptionPane
.
showInputDialog
(
null
,
"Enter BigDataServer Remote URL:"
,
"BigDataServer"
,
Object
remoteUrl
=
JOptionPane
.
showInputDialog
(
null
,
"Enter BigDataServer Remote URL:"
,
"BigDataServer"
,
JOptionPane
.
QUESTION_MESSAGE
,
new
ImageIcon
(
image
),
null
,
serverUrl
);
JOptionPane
.
QUESTION_MESSAGE
,
new
ImageIcon
(
image
),
null
,
serverUrl
);
if
(
remoteUrl
==
null
)
if
(
remoteUrl
==
null
)
{
return
;
IJ
.
showMessage
(
"The given URL is null. Please, check it again."
);
break
;
}
ArrayList
<
String
>
nameList
=
new
ArrayList
<
String
>();
ArrayList
<
String
>
nameList
=
new
ArrayList
<
String
>();
ret
=
getDatasetList
(
remoteUrl
.
toString
(),
nameList
);
boolean
ret
=
getDatasetList
(
remoteUrl
.
toString
(),
nameList
);
if
(
!
ret
)
if
(
!
ret
)
IJ
.
showMessage
(
"The server is not available."
);
IJ
.
showMessage
(
"The server is not available."
);
else
else
createDatasetListUI
(
nameList
.
toArray
()
);
createDatasetListUI
(
nameList
.
toArray
()
);
}
while
(
!
ret
);
}
}
private
boolean
getDatasetList
(
String
remoteUrl
,
ArrayList
<
String
>
nameList
)
private
boolean
getDatasetList
(
String
remoteUrl
,
ArrayList
<
String
>
nameList
)
...
@@ -189,7 +162,7 @@ public class BigDataBrowserPlugin implements PlugIn
...
@@ -189,7 +162,7 @@ public class BigDataBrowserPlugin implements PlugIn
public
class
ThumbnailListRenderer
extends
DefaultListCellRenderer
public
class
ThumbnailListRenderer
extends
DefaultListCellRenderer
{
{
Font
font
=
new
Font
(
"helv
i
tica"
,
Font
.
BOLD
,
12
);
Font
font
=
new
Font
(
"helv
e
tica"
,
Font
.
BOLD
,
12
);
@Override
@Override
public
Component
getListCellRendererComponent
(
public
Component
getListCellRendererComponent
(
...
...
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
sign in
to comment