Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rest-api-examples
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
snac
rest-api-examples
Commits
52a2d550
Commit
52a2d550
authored
Apr 25, 2017
by
Robbie Hott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Save dialog now works, updated for different stages in reconciliation engine
parent
6c1f3154
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
CBWReconcileUI.java
reconciliation/cbw_java_example/src/CBWReconcileUI.java
+3
-1
CBWReconcileWorker.java
reconciliation/cbw_java_example/src/CBWReconcileWorker.java
+2
-2
No files found.
reconciliation/cbw_java_example/src/CBWReconcileUI.java
View file @
52a2d550
...
@@ -159,6 +159,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
...
@@ -159,6 +159,7 @@ public class CBWReconcileUI extends javax.swing.JFrame {
public
void
actionPerformed
(
ActionEvent
evt
)
{
public
void
actionPerformed
(
ActionEvent
evt
)
{
// Pop up a file chooser for the user to pick a CSV file
// Pop up a file chooser for the user to pick a CSV file
JFileChooser
chooser2
=
new
JFileChooser
();
JFileChooser
chooser2
=
new
JFileChooser
();
chooser2
.
setDialogType
(
JFileChooser
.
OPEN_DIALOG
);
chooser2
.
setDialogTitle
(
"Choose a CSV File."
);
chooser2
.
setDialogTitle
(
"Choose a CSV File."
);
chooser2
.
setFileFilter
(
new
FileNameExtensionFilter
(
"CSV Files"
,
"csv"
));
chooser2
.
setFileFilter
(
new
FileNameExtensionFilter
(
"CSV Files"
,
"csv"
));
int
returnVal
=
chooser2
.
showOpenDialog
(
null
);
int
returnVal
=
chooser2
.
showOpenDialog
(
null
);
...
@@ -195,8 +196,9 @@ public class CBWReconcileUI extends javax.swing.JFrame {
...
@@ -195,8 +196,9 @@ public class CBWReconcileUI extends javax.swing.JFrame {
// enter a filename for the destination CSV.
// enter a filename for the destination CSV.
JFileChooser
chooser2
=
new
JFileChooser
();
JFileChooser
chooser2
=
new
JFileChooser
();
chooser2
.
setDialogTitle
(
"Choose a Destination CSV File."
);
chooser2
.
setDialogTitle
(
"Choose a Destination CSV File."
);
chooser2
.
setDialogType
(
JFileChooser
.
SAVE_DIALOG
);
chooser2
.
setFileFilter
(
new
FileNameExtensionFilter
(
"CSV Files"
,
"csv"
));
chooser2
.
setFileFilter
(
new
FileNameExtensionFilter
(
"CSV Files"
,
"csv"
));
int
returnVal
=
chooser2
.
show
Open
Dialog
(
null
);
int
returnVal
=
chooser2
.
show
Save
Dialog
(
null
);
if
(
returnVal
==
JFileChooser
.
APPROVE_OPTION
)
{
if
(
returnVal
==
JFileChooser
.
APPROVE_OPTION
)
{
toCSVFile
=
chooser2
.
getSelectedFile
().
getAbsolutePath
();
toCSVFile
=
chooser2
.
getSelectedFile
().
getAbsolutePath
();
toCSVFileLocationLabel
.
setText
(
toCSVFile
);
toCSVFileLocationLabel
.
setText
(
toCSVFile
);
...
...
reconciliation/cbw_java_example/src/CBWReconcileWorker.java
View file @
52a2d550
...
@@ -243,8 +243,8 @@ public class CBWReconcileWorker extends SwingWorker<Void, Void> {
...
@@ -243,8 +243,8 @@ public class CBWReconcileWorker extends SwingWorker<Void, Void> {
vector
.
has
(
"ElasticNameOnly"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"ElasticNameOnly"
))
:
"0"
,
vector
.
has
(
"ElasticNameOnly"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"ElasticNameOnly"
))
:
"0"
,
vector
.
has
(
"ElasticSeventyFive"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"ElasticSeventyFive"
))
:
"0"
,
vector
.
has
(
"ElasticSeventyFive"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"ElasticSeventyFive"
))
:
"0"
,
vector
.
has
(
"OriginalLength"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"OriginalLength"
))
:
"0"
,
vector
.
has
(
"OriginalLength"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"OriginalLength"
))
:
"0"
,
vector
.
has
(
"
MultiStage:ElasticNameOnly:OriginalLengthDifference"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"MultiStage:ElasticNameOnly:
OriginalLengthDifference"
))
:
"0"
,
vector
.
has
(
"
OriginalLengthDifference"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"
OriginalLengthDifference"
))
:
"0"
,
vector
.
has
(
"
MultiStage:ElasticNameOnly:EntityTypeFilter"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"MultiStage:ElasticNameOnly:
EntityTypeFilter"
))
:
"0"
,
vector
.
has
(
"
EntityTypeFilter"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"
EntityTypeFilter"
))
:
"0"
,
vector
.
has
(
"MultiStage:ElasticNameOnly:SNACDegree"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"MultiStage:ElasticNameOnly:SNACDegree"
))
:
"0"
vector
.
has
(
"MultiStage:ElasticNameOnly:SNACDegree"
)
?
JSONObject
.
doubleToString
(
vector
.
getDouble
(
"MultiStage:ElasticNameOnly:SNACDegree"
))
:
"0"
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment