Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
mbe-tools
TTool
Commits
1f9def45
Commit
1f9def45
authored
6 years ago
by
Dominique Blouin
Browse files
Options
Downloads
Patches
Plain Diff
Code cleanup
parent
c767bb27
Branches
Branches containing commit
No related tags found
1 merge request
!287
Resolve "Zoom on all diagrams"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/ui/tmlsd/TMLSDToolBar.java
+4
-11
4 additions, 11 deletions
src/main/java/ui/tmlsd/TMLSDToolBar.java
with
4 additions
and
11 deletions
src/main/java/ui/tmlsd/TMLSDToolBar.java
+
4
−
11
View file @
1f9def45
...
@@ -37,21 +37,14 @@
...
@@ -37,21 +37,14 @@
* knowledge of the CeCILL license and that you accept its terms.
* knowledge of the CeCILL license and that you accept its terms.
*/
*/
package
ui.tmlsd
;
package
ui.tmlsd
;
import
myutil.TraceManager
;
import
javax.swing.JButton
;
import
ui.MainGUI
;
import
ui.MainGUI
;
import
ui.TGUIAction
;
import
ui.TGUIAction
;
import
ui.TToolBar
;
import
ui.TToolBar
;
import
javax.swing.*
;
//import java.awt.*;
//import java.awt.event.*;
/**
/**
* Class TMLSDToolBar
* Class TMLSDToolBar
* Implements the toolbar to be used in conjunction with the panel of a TML
* Implements the toolbar to be used in conjunction with the panel of a TML
...
@@ -67,6 +60,7 @@ public class TMLSDToolBar extends TToolBar {
...
@@ -67,6 +60,7 @@ public class TMLSDToolBar extends TToolBar {
super
(
_mgui
);
super
(
_mgui
);
}
}
@Override
protected
void
setActive
(
boolean
b
)
{
protected
void
setActive
(
boolean
b
)
{
mgui
.
actions
[
TGUIAction
.
TMLSD_EDIT
].
setEnabled
(
b
);
mgui
.
actions
[
TGUIAction
.
TMLSD_EDIT
].
setEnabled
(
b
);
mgui
.
actions
[
TGUIAction
.
UML_NOTE
].
setEnabled
(
b
);
mgui
.
actions
[
TGUIAction
.
UML_NOTE
].
setEnabled
(
b
);
...
@@ -88,6 +82,7 @@ public class TMLSDToolBar extends TToolBar {
...
@@ -88,6 +82,7 @@ public class TMLSDToolBar extends TToolBar {
mgui
.
updateZoomInfo
();
mgui
.
updateZoomInfo
();
}
}
@Override
protected
void
setButtons
()
{
protected
void
setButtons
()
{
JButton
button
;
JButton
button
;
...
@@ -127,7 +122,5 @@ public class TMLSDToolBar extends TToolBar {
...
@@ -127,7 +122,5 @@ public class TMLSDToolBar extends TToolBar {
button
=
this
.
add
(
mgui
.
actions
[
TGUIAction
.
SD_ALIGN_INSTANCES
]);
button
=
this
.
add
(
mgui
.
actions
[
TGUIAction
.
SD_ALIGN_INSTANCES
]);
button
.
addMouseListener
(
mgui
.
mouseHandler
);
button
.
addMouseListener
(
mgui
.
mouseHandler
);
}
}
}
// Class
}
// Class
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