Пример #1
0
 @Override
 public IStatus undo(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
   if (oldState != null && oldState.size() > 0) {
     handler.changeTgtPropValue(oldState, "state");
     table.redraw();
   }
   return Status.OK_STATUS;
 }
Пример #2
0
 @Override
 public IStatus execute(IProgressMonitor monitor, IAdaptable info) throws ExecutionException {
   if (rowIdList != null && rowIdList.size() > 0) {
     handler.changeTgtPropValue(rowIdList, "state", state);
     if (state.equals("translated") || state.equals("new")) { // 切换到已翻译或草稿状态
       handler.deleteTuProp(rowIdList, "approved");
     }
     if (state.equals("signed-off")) {
       handler.changeTuPropValue(rowIdList, "approved", "yes");
     }
     table.redraw();
   }
   return Status.OK_STATUS;
 }