コード例 #1
0
ファイル: Object2Reachable.java プロジェクト: ranass/ReqCycle
 @Override
 public Reachable apply(Object arg0) {
   if (arg0 instanceof Reachable) {
     return (Reachable) arg0;
   }
   try {
     IObjectHandler handler = manager.getHandlerFromObject(arg0);
     ReachableObject obj = handler.getFromObject(arg0);
     if (obj != null) {
       return obj.getReachable(arg0);
     }
   } catch (IReachableHandlerException e) {
     e.printStackTrace();
   }
   return null;
 }
コード例 #2
0
 @Override
 public void startBuild(IBuilderCallBack callBack, Reachable reachable) {
   defaultConfiguration = provider.getDefaultConfiguration();
   if (defaultConfiguration == null) {
     return;
   }
   ReachableObject object;
   try {
     object = manager.getHandlerFromReachable(reachable).getFromReachable(reachable);
     if (object != null) {
       IFile adapted = (IFile) object.getAdapter(IFile.class);
       if (adapted != null && adapted.exists()) {
         IProject p = adapted.getProject();
         currentStorage = getStorage(p);
         // currentStorage.get
       }
     }
   } catch (IReachableHandlerException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }