Skip to content

Commit

Permalink
use new getState() method in ForgeCommandHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Feb 15, 2014
1 parent afe4226 commit 75bba8a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.handlers.HandlerUtil;
import org.jboss.tools.forge.ext.core.FurnaceService;
import org.jboss.tools.forge.core.process.ForgeRuntime;
import org.jboss.tools.forge.ext.core.runtime.FurnaceRuntime;
import org.jboss.tools.forge.ui.ext.ForgeUIPlugin;
import org.jboss.tools.forge.ui.ext.dialog.UICommandListDialog;
import org.jboss.tools.forge.ui.ext.util.FurnaceHelper;
Expand All @@ -20,7 +21,7 @@ public Object execute(ExecutionEvent event) {
try {
final IWorkbenchWindow window = HandlerUtil
.getActiveWorkbenchWindowChecked(event);
if (!FurnaceService.INSTANCE.getContainerStatus().isStarted()) {
if (!ForgeRuntime.STATE_RUNNING.equals(FurnaceRuntime.INSTANCE.getState())) {
Job job = FurnaceHelper.createStartFurnaceJob();
job.addJobChangeListener(new JobChangeAdapter() {
@Override
Expand Down

0 comments on commit 75bba8a

Please sign in to comment.