Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
YoshikoWrapper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
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
Philipp Spohr
YoshikoWrapper
Commits
d3c61407
Commit
d3c61407
authored
7 years ago
by
Philipp Spohr
Browse files
Options
Downloads
Patches
Plain Diff
finally got some c++ interaction going
parent
67a98697
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/hhu/ba/yoshikoWrapper/core/YoshikoLoader.java
+5
-5
5 additions, 5 deletions
...ain/java/de/hhu/ba/yoshikoWrapper/core/YoshikoLoader.java
src/main/java/de/hhu/ba/yoshikoWrapper/gui/MainPanel.java
+10
-2
10 additions, 2 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/gui/MainPanel.java
with
15 additions
and
7 deletions
src/main/java/de/hhu/ba/yoshikoWrapper/core/Yoshiko
Interface
.java
→
src/main/java/de/hhu/ba/yoshikoWrapper/core/Yoshiko
Loader
.java
+
5
−
5
View file @
d3c61407
package
de.hhu.ba.yoshikoWrapper.core
;
public
class
Yoshiko
Interface
{
public
class
Yoshiko
Loader
{
//SINGLETON TEMPLATE
private
static
Yoshiko
Interface
instance
;
private
static
Yoshiko
Loader
instance
;
private
static
boolean
libraryLoaded
;
public
static
Yoshiko
Interface
getInstance
()
{
public
static
Yoshiko
Loader
getInstance
()
{
if
(
instance
==
null
){
instance
=
new
Yoshiko
Interface
();
instance
=
new
Yoshiko
Loader
();
}
return
instance
;
}
private
Yoshiko
Interface
()
{
private
Yoshiko
Loader
()
{
libraryLoaded
=
false
;
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/hhu/ba/yoshikoWrapper/gui/MainPanel.java
+
10
−
2
View file @
d3c61407
...
...
@@ -7,12 +7,14 @@ import java.awt.event.ActionListener;
import
javax.swing.Icon
;
import
javax.swing.JButton
;
import
javax.swing.JFileChooser
;
import
javax.swing.JLabel
;
import
javax.swing.JOptionPane
;
import
javax.swing.JPanel
;
import
org.cytoscape.application.swing.CytoPanelComponent
;
import
org.cytoscape.application.swing.CytoPanelName
;
import
de.hhu.ba.yoshikoWrapper.core.YoshikoInterface
;
import
de.hhu.ba.yoshikoWrapper.core.YoshikoLoader
;
import
de.hhu.ba.yoshikoWrapper.swig.LibraryInterface
;
/**This class describes the Swing Panel that the user interacts with in cytoscape
* @author Philipp Spohr, Aug 6, 2017
...
...
@@ -26,12 +28,13 @@ public class MainPanel extends JPanel implements CytoPanelComponent {
private
static
final
long
serialVersionUID
=
6214827920591046457L
;
//SYMBOLIC LINKS
private
Yoshiko
Interface
yoshikoInterface
=
Yoshiko
Interface
.
getInstance
();
private
Yoshiko
Loader
yoshikoInterface
=
Yoshiko
Loader
.
getInstance
();
private
MainPanel
self
=
this
;
//for lambda function references
//SWING COMPONENTS
private
LibStatusPanel
libStatusPanel
;
private
JButton
searchLibButton
;
private
JLabel
yoshikoVersionLabel
;
/**
* Main constructor, creates a new Panel and intializes subcomponents
...
...
@@ -54,11 +57,16 @@ public class MainPanel extends JPanel implements CytoPanelComponent {
if
(
returnVal
==
JFileChooser
.
APPROVE_OPTION
)
{
yoshikoInterface
.
loadLibrary
(
c
.
getSelectedFile
().
getAbsolutePath
());
}
libStatusPanel
.
setStyle
(
yoshikoInterface
.
isLibraryLoaded
());
yoshikoVersionLabel
.
setText
(
LibraryInterface
.
getVersionString
());
}
});
this
.
add
(
searchLibButton
);
yoshikoVersionLabel
=
new
JLabel
(
"YOSHIKO VERSION"
);
this
.
add
(
yoshikoVersionLabel
);
this
.
setVisible
(
true
);
}
...
...
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