Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Protocols
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Bioimage Analysis
Icy
Extensions
Protocols
Commits
24777c59
Commit
24777c59
authored
4 years ago
by
Stephane Dallongeville
Browse files
Options
Downloads
Patches
Plain Diff
fixed possible NPE
parent
69095d0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/plugins/adufour/protocols/gui/block/WorkFlowPanel.java
+9
-5
9 additions, 5 deletions
...va/plugins/adufour/protocols/gui/block/WorkFlowPanel.java
src/main/java/plugins/adufour/protocols/gui/link/Line.java
+4
-4
4 additions, 4 deletions
src/main/java/plugins/adufour/protocols/gui/link/Line.java
with
13 additions
and
9 deletions
src/main/java/plugins/adufour/protocols/gui/block/WorkFlowPanel.java
+
9
−
5
View file @
24777c59
...
@@ -331,12 +331,16 @@ public class WorkFlowPanel extends BlockPanel implements VarVisibilityListener
...
@@ -331,12 +331,16 @@ public class WorkFlowPanel extends BlockPanel implements VarVisibilityListener
if
(
blockDesc
.
isCollapsed
())
if
(
blockDesc
.
isCollapsed
())
return
;
return
;
DragDropZone
dz
=
varDropZones
.
get
(
variable
);
DragDropZone
dz
=
getP1Zone
();
int
y
=
dz
.
getLocationOnScreen
().
y
;
int
offsetY
=
getLocationOnScreen
().
y
;
if
(
dz
!=
null
)
{
int
y
=
dz
.
getLocationOnScreen
().
y
;
int
offsetY
=
getLocationOnScreen
().
y
;
x1
=
dz
.
getWidth
();
x1
=
dz
.
getWidth
();
y1
=
y
-
offsetY
+
dz
.
getHeight
()
/
2
;
y1
=
y
-
offsetY
+
dz
.
getHeight
()
/
2
;
}
}
}
@Override
@Override
...
...
This diff is collapsed.
Click to expand it.
src/main/java/plugins/adufour/protocols/gui/link/Line.java
+
4
−
4
View file @
24777c59
...
@@ -120,12 +120,12 @@ public abstract class Line extends Line2D.Float implements ComponentListener, Mo
...
@@ -120,12 +120,12 @@ public abstract class Line extends Line2D.Float implements ComponentListener, Mo
if
(
p1z
!=
null
)
if
(
p1z
!=
null
)
p1z
.
addMouseListener
(
this
);
p1z
.
addMouseListener
(
this
);
else
//
else
System
.
err
.
print
(
"source drag zone null !"
);
//
System.err.print("source drag zone null !");
if
(
p2z
!=
null
)
if
(
p2z
!=
null
)
p2z
.
addMouseListener
(
this
);
p2z
.
addMouseListener
(
this
);
else
//
else
System
.
err
.
print
(
"destination drop zone null !"
);
//
System.err.print("destination drop zone null !");
}
}
/**
/**
...
...
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