コード例 #1
0
 /** Execute the command. */
 public void execute() {
   ServerWorkingCopy swc = (ServerWorkingCopy) server;
   oldTime = swc.getAutoPublishTime();
   swc.setAutoPublishTime(time);
 }
コード例 #2
0
 /** 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);
 }