Skip to content
Snippets Groups Projects
Commit 1f9def45 authored by Dominique Blouin's avatar Dominique Blouin
Browse files

Code cleanup

parent c767bb27
Branches
No related tags found
1 merge request!287Resolve "Zoom on all diagrams"
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment