Skip to content

Commit

Permalink
JBIDE-17897: Fixed update of part's controls
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Jul 23, 2014
1 parent c8ad417 commit 9f9275a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,7 @@ public ForgeRuntimeType getType() {

@Override
public ForgeRuntimeState getState() {
if (FurnaceService.INSTANCE.getContainerStatus().isStarted()) {
return ForgeRuntimeState.RUNNING;
} else if (FurnaceService.INSTANCE.getContainerStatus().isStarting()) {
return ForgeRuntimeState.STARTING;
} else if (FurnaceService.INSTANCE.getContainerStatus().isStopped()) {
return ForgeRuntimeState.STOPPED;
}
return null;
return state;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ public List<AddonRepository> getRepositories() {
}

public void stop() {
furnace.stop();
furnace = null;
if (furnace != null) {
furnace.stop();
furnace = null;
}
}

public void waitUntilContainerIsStarted() throws InterruptedException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private void updateActionBars() {
public void run() {
// without calls to deactivate and activate the actionBars
// do not update properly
actionBars.deactivate();;
actionBars.deactivate();
actionBars.updateActionBars();
actionBars.activate();
actionBars.updateActionBars();
Expand Down

0 comments on commit 9f9275a

Please sign in to comment.