Commit 77cf1903 authored by Dominique Blouin's avatar Dominique Blouin
Browse files

Code format

parent 23b03e79
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment