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
f43a03f7
Commit
f43a03f7
authored
4 years ago
by
Stephane Dallongeville
Browse files
Options
Downloads
Patches
Plain Diff
Fixed exposed variables restoration when embedding or copy / pasting workflow
parent
2547dad9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/plugins/adufour/protocols/gui/block/WorkFlowContainer.java
+24
-3
24 additions, 3 deletions
...lugins/adufour/protocols/gui/block/WorkFlowContainer.java
with
24 additions
and
3 deletions
src/main/java/plugins/adufour/protocols/gui/block/WorkFlowContainer.java
+
24
−
3
View file @
f43a03f7
...
...
@@ -335,7 +335,7 @@ public class WorkFlowContainer extends JLayeredPane implements WorkFlowListener,
}
else
dstBlockPanel
.
refreshNow
();
repaint
();
}
}
...
...
@@ -368,8 +368,29 @@ public class WorkFlowContainer extends JLayeredPane implements WorkFlowListener,
}
panel
.
drawPanel
();
blockPanels
.
put
(
blockDesc
,
panel
);
add
(
panel
);
// FIX: get exposed links correctly restored on copy/paste as setVisibility isn't called in that case (Stephane)
// this is really an ugly fix but the whole stuff is a complete mess honestly :-/
if
(
blockDesc
.
isWorkFlow
())
{
synchronized
(
blockDesc
.
inputVars
)
{
// update exposed links
for
(
Var
<?>
var
:
blockDesc
.
inputVars
)
((
WorkFlowPanel
)
panel
).
updateExposedLink
(
var
,
blockDesc
.
inputVars
.
isVisible
(
var
));
}
synchronized
(
blockDesc
.
outputVars
)
{
// update exposed links
for
(
Var
<?>
var
:
blockDesc
.
outputVars
)
((
WorkFlowPanel
)
panel
).
updateExposedLink
(
var
,
blockDesc
.
outputVars
.
isVisible
(
var
));
}
}
// Layer 0 for blocks
// Layer 1 for work flows
setLayer
(
panel
,
blockDesc
.
isWorkFlow
()
?
1
:
0
,
0
);
...
...
@@ -531,9 +552,9 @@ public class WorkFlowContainer extends JLayeredPane implements WorkFlowListener,
workFlow
.
removeBlock
(
workFlow
.
getBlock
(
i
),
true
);
}
workFlow
.
addBlock
(
embed
.
getBlockDescriptor
());
MainFrame
.
pasteSelection
(
embed
,
true
);
workFlow
.
addBlock
(
embed
.
getBlockDescriptor
());
}
/**
...
...
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