Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
BensikinArchivingGUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
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
Tango controls archiving
BensikinArchivingGUI
Commits
14fd0c91
Commit
14fd0c91
authored
3 years ago
by
Gwenaelle ABEILLE
Browse files
Options
Downloads
Plain Diff
Merge branch '
TANGOARCH-729
' into 'master'
TANGOARCH-729
See merge request
!1
parents
ba6ac644
6e193c01
Branches
Branches containing commit
No related tags found
1 merge request
!1
TANGOARCH-729
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+4
-0
4 additions, 0 deletions
.gitignore
src/main/java/fr/soleil/bensikin/components/context/detail/AttributesTree.java
+33
-36
33 additions, 36 deletions
...il/bensikin/components/context/detail/AttributesTree.java
with
37 additions
and
36 deletions
.gitignore
0 → 100644
+
4
−
0
View file @
14fd0c91
/target/
.project
.classpath
.settings
This diff is collapsed.
Click to expand it.
src/main/java/fr/soleil/bensikin/components/context/detail/AttributesTree.java
+
33
−
36
View file @
14fd0c91
...
...
@@ -59,17 +59,17 @@ public class AttributesTree extends BensikinTree {
/**
* Standard tree building from a model, plus sets the following options:
* -setExpandsSelectedPaths ( true ) -->expands selected paths
* -setScrollsOnExpand ( true ) -->scrolls if necessary on expansion
* -setShowsRootHandles ( true ) --> shows the root handle even if empty
* -setToggleClickCount ( 1 ) -->one click tree expansion/collapse
* <ul>
* <li><code>setExpandsSelectedPaths(true)</code> --> expands selected paths</li>
* <li><code>setScrollsOnExpand(true)</code> --> scrolls if necessary on expansion</li>
* <li><code>setShowsRootHandles(true)</code> --> shows the root handle even if empty</li>
* <li><code>setToggleClickCount(1)</code> --> one click tree expansion/collapse</li>
* </ul>
*
* @param newModel
* The model
* @param newModel The model
*/
protected
AttributesTree
(
TreeModel
newModel
)
{
super
(
newModel
);
this
.
setExpandsSelectedPaths
(
true
);
this
.
setScrollsOnExpand
(
true
);
this
.
setShowsRootHandles
(
true
);
...
...
@@ -78,22 +78,18 @@ public class AttributesTree extends BensikinTree {
}
/**
* Returns a list of all the tree attributes that are under a currently
* selected node. Warning, since attributes trees are only loaded up to
* member level until each member is clicked, the list will be empty if no
* member's attributes list has been loaded yet.
* Returns a list of all the tree attributes that are under a currently selected node. Warning, since attributes
* trees are only loaded up to member level until each member is clicked, the list will be empty if no member's
* attributes list has been loaded yet.
*
* @param remove
* If true, removes each of the found nodes from the tree
* @return A List containing TreePath objects, each representing the path to
* one of the attributes under one of the selected nodes.
* @param remove If true, removes each of the found nodes from the tree
* @return A List containing TreePath objects, each representing the path to one of the attributes under one of the
* selected nodes.
*/
public
List
<
TreePath
>
getListOfAttributesTreePathUnderSelectedNodes
(
boolean
remove
)
{
List
<
TreePath
>
attributes
=
new
ArrayList
<>();
TreePath
[]
selectedPath
=
this
.
getSelectionPaths
();
if
(
selectedPath
==
null
||
selectedPath
.
length
==
0
)
{
return
null
;
}
List
<
TreePath
>
attributes
=
new
ArrayList
<
TreePath
>();
if
((
selectedPath
!=
null
)
&&
(
selectedPath
.
length
>
0
))
{
// as many loops as there are selected nodes
for
(
int
i
=
0
;
i
<
selectedPath
.
length
;
i
++)
{
TreePath
currentSelectedTreePath
=
selectedPath
[
i
];
...
...
@@ -114,6 +110,7 @@ public class AttributesTree extends BensikinTree {
currentSelectedNode
.
removeFromParent
();
}
}
}
return
attributes
;
}
}
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