Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Salsa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review 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
Software Control System
Gui
Salsa
Commits
27ed10f2
Commit
27ed10f2
authored
Jun 25, 2012
by
Katy Saintin
Browse files
Options
Downloads
Patches
Plain Diff
Launch connexion on Bean at start of Salsa
parent
5be9efd9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SalsaGUICommon/src/main/java/fr/soleil/salsa/client/view/AbstractTangoBoxView.java
+16
-15
16 additions, 15 deletions
...ava/fr/soleil/salsa/client/view/AbstractTangoBoxView.java
with
16 additions
and
15 deletions
SalsaGUICommon/src/main/java/fr/soleil/salsa/client/view/AbstractTangoBoxView.java
+
16
−
15
View file @
27ed10f2
...
...
@@ -61,30 +61,31 @@ public class AbstractTangoBoxView extends JPanel implements IView<AbstractTangoB
if
(
bean
!=
null
)
{
bean
.
setVisible
(
visible
);
if
(
visible
)
{
if
(
bean
instanceof
AbstractTangoBox
)
{
// System.out.println("SET MODEL AND START");
if
(
bean
instanceof
AbstractTangoBox
&&
beanModel
!=
null
&&
!
beanModel
.
isEmpty
())
{
// System.out.println("START MODEL IN =" + beanModel +
// System.currentTimeMillis());
((
AbstractTangoBox
)
bean
).
setModel
(
beanModel
);
((
AbstractTangoBox
)
bean
).
start
();
}
}
}
else
{
if
(
bean
instanceof
AbstractTangoBox
)
{
// System.out.println("STOP MODEL
AND CLEAN");
((
AbstractTangoBox
)
bean
).
stop
(
);
// System.out.println("STOP MODEL
IN" + beanModel +
// System.currentTimeMillis()
);
((
AbstractTangoBox
)
bean
).
setModel
(
null
);
((
AbstractTangoBox
)
bean
).
stop
();
// System.out.println("STOP MODEL OUT" + beanModel +
// System.currentTimeMillis());
}
}
}
}
public
void
setBeanModel
(
String
model
)
{
beanModel
=
model
;
if
(
bean
!=
null
)
{
if
(
bean
.
isVisible
())
{
if
(
bean
instanceof
AbstractTangoBox
)
{
((
AbstractTangoBox
)
bean
).
setModel
(
beanModel
);
}
}
if
(
model
==
null
||
!
model
.
trim
().
isEmpty
())
{
beanModel
=
model
.
trim
();
updateBeanVisibility
(
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