Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mbe-tools
TTool
Commits
77cf1903
Commit
77cf1903
authored
Sep 12, 2017
by
Dominique Blouin
Browse files
Code format
parent
23b03e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/ui/tmldd/TMLArchiDiagramToolBar.java
View file @
77cf1903
...
...
@@ -37,9 +37,6 @@
* knowledge of the CeCILL license and that you accept its terms.
*/
package
ui.tmldd
;
import
myutil.TraceManager
;
...
...
@@ -173,7 +170,7 @@ public class TMLArchiDiagramToolBar extends TToolBar implements ActionListener
button
=
this
.
add
(
mgui
.
actions
[
TGUIAction
.
ACT_TOGGLE_DIPLO_ID
]);
button
.
addMouseListener
(
mgui
.
mouseHandler
);
setPluginButtons
(
"TMLArchiDiagramPanel"
);
setPluginButtons
(
"TMLArchiDiagramPanel"
);
this
.
addSeparator
();
if
(
viewInfos
==
null
)
{
...
...
@@ -182,22 +179,20 @@ public class TMLArchiDiagramToolBar extends TToolBar implements ActionListener
box
=
new
JComboBox
<>(
viewInfos
);
this
.
add
(
box
);
box
.
addActionListener
(
this
);
}
public
void
setPanel
(
TMLArchiDiagramPanel
_panel
)
{
panel
=
_panel
;
}
@Override
public
void
actionPerformed
(
ActionEvent
e
)
{
super
.
actionPerformed
(
e
);
if
(
e
.
getSource
()
==
box
)
{
super
.
actionPerformed
(
e
);
if
(
e
.
getSource
()
==
box
)
{
if
(
panel
!=
null
)
{
panel
.
setCurrentView
(
box
.
getSelectedIndex
());
}
}
}
}
// Class
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment