public Object execute(ExecutionEvent event) throws ExecutionException {
ArtifactsBrowser view = (ArtifactsBrowser) HandlerUtil
public Object execute(ExecutionEvent event) throws ExecutionException {
ArtifactsBrowser view = (ArtifactsBrowser) HandlerUtil
.getService(ICommandService.class);
Command command = service.getCommand(ID);
State state = command.getState(ID + ".toggleState");
.getService(ICommandService.class);
Command command = service.getCommand(ID);
State state = command.getState(ID + ".toggleState");
boolean wasVisible = (Boolean) state.getValue();
view.setSizeVisible(!wasVisible);
state.setValue(!wasVisible);
return null;
}
boolean wasVisible = (Boolean) state.getValue();
view.setSizeVisible(!wasVisible);
state.setValue(!wasVisible);
return null;
}