Skip to content

Commit 794cb75

Browse files
Merge pull request #27 from mathieucarbou/improvements
🐛 start all servers button should be OSS
2 parents c479906 + c37ad6d commit 794cb75

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/java/org/terracotta/tinypounder/TinyPounderMainUI.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -274,22 +274,22 @@ private void addVoltronCommandsControls() {
274274
serverControls.setWidth(50, Unit.PERCENTAGE);
275275
voltronControlLayout.addComponentsAndExpand(serverControls);
276276

277+
Button clusterStartBtn = new Button();
278+
clusterStartBtn.setCaption("Start all servers");
279+
clusterStartBtn.addStyleName("align-bottom");
280+
clusterStartBtn.addClickListener(event -> {
281+
for (Component child : serverControls) {
282+
if (child instanceof Button && "START".equals(child.getCaption()) && child.isEnabled()) {
283+
((Button) child).click();
284+
}
285+
}
286+
});
287+
277288
if (kitAwareClassLoaderDelegator.isEEKit()) {
278289
clusterNameTF = new TextField();
279290
clusterNameTF.setCaption("Cluster name");
280291
clusterNameTF.setValue("MyCluster");
281292

282-
Button clusterStartBtn = new Button();
283-
clusterStartBtn.setCaption("Start all servers");
284-
clusterStartBtn.addStyleName("align-bottom");
285-
clusterStartBtn.addClickListener(event -> {
286-
for (Component child : serverControls) {
287-
if (child instanceof Button && "START".equals(child.getCaption()) && child.isEnabled()) {
288-
((Button) child).click();
289-
}
290-
}
291-
});
292-
293293
Button clusterConfigBtn = new Button();
294294
clusterConfigBtn.addStyleName("align-bottom");
295295
clusterConfigBtn.setCaption("Configure");

0 commit comments

Comments
 (0)