/** Execute the command. */ public void execute() { ServerWorkingCopy swc = (ServerWorkingCopy) server; oldTime = swc.getAutoPublishTime(); swc.setAutoPublishTime(time); }
/** Undo the command. */ public void undo() { ServerWorkingCopy swc = (ServerWorkingCopy) server; swc.setAutoPublishTime(oldTime); }
private void initServer() { ServerWorkingCopy server = (ServerWorkingCopy) getTaskModel().getObject(TaskModel.TASK_SERVER); cfServer = (CloudFoundryServer) server.loadAdapter(CloudFoundryServer.class, null); }