Skip to content

Commit aed0953

Browse files
Change state on console exit
1 parent 051a7f0 commit aed0953

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

yatb-plugin/src/com/github/eclipse/yatb/ConsoleActions.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,22 +159,22 @@ public Object getAdapter(Class adapter) {
159159

160160
@Override
161161
public void activated() {
162-
updateVis();
162+
updateVis(true);
163163
}
164164

165165
@Override
166166
public void deactivated() {
167-
updateVis();
167+
updateVis(false);
168168
}
169169

170-
private void updateVis() {
170+
private void updateVis(boolean state) {
171171
if (page == null)
172172
return;
173-
terminateHardAction.setEnabled(true);
174-
terminateAllHardAction.setEnabled(true);
175-
terminateSoftAction.setEnabled(true);
176-
terminateAllSoftAction.setEnabled(true);
173+
terminateHardAction.setEnabled(state);
174+
terminateAllHardAction.setEnabled(state);
175+
terminateSoftAction.setEnabled(state);
176+
terminateAllSoftAction.setEnabled(state);
177177
bars.updateActionBars();
178178
}
179179

180-
}
180+
}

0 commit comments

Comments
 (0)