Skip to content

Commit

Permalink
Allows to create a separator without a "width"
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Feb 28, 2022
1 parent dfbb06b commit 29fd57e
Showing 1 changed file with 14 additions and 5 deletions.
@@ -1,12 +1,12 @@
/*******************************************************************************************************
*
* GamaToolbar2.java, in ummisco.gama.ui.shared, is part of the source code of the
* GAMA modeling and simulation platform (v.1.8.2).
* GamaToolbar2.java, in ummisco.gama.ui.shared, is part of the source code of the GAMA modeling and simulation platform
* (v.1.8.2).
*
* (c) 2007-2022 UMI 209 UMMISCO IRD/SU & Partners (IRIT, MIAT, TLU, CTU)
*
* Visit https://github.com/gama-platform/gama for license information and contacts.
*
*
********************************************************************************************************/
package ummisco.gama.ui.views.toolbar;

Expand Down Expand Up @@ -144,7 +144,7 @@ public void createToolbars() {
protected void checkSubclass() {}

/**
* Sep.
* Sep. Width is not used anymore
*
* @param width
* the n
Expand All @@ -153,8 +153,17 @@ protected void checkSubclass() {}
* @return the tool item
*/
public ToolItem sep(final int width, final int side /* SWT.LEFT or SWT.RIGHT */) {
return sep(side);
}

// item.setWidth(width);
/**
* Sep.
*
* @param side
* the side
* @return the tool item
*/
public ToolItem sep(final int side /* SWT.LEFT or SWT.RIGHT */) {
return new ToolItem(side == SWT.LEFT ? left : right, SWT.SEPARATOR);
}

Expand Down

0 comments on commit 29fd57e

Please sign in to comment.