Example #1
0
 public ISourceUnitModelInfo getModelInfo(
     final String type, final int syncLevel, final IProgressMonitor monitor) {
   if (type == null || type.equals(RModel.TYPE_ID)) {
     if (syncLevel > IModelManager.NONE) {
       RCore.getRModelManager().reconcile(this, syncLevel, false, monitor);
     }
     return fModelInfo;
   }
   return null;
 }
Example #2
0
 public AstInfo<? extends IAstNode> getAstInfo(
     final String type, final boolean ensureSync, final IProgressMonitor monitor) {
   if (type == null || type.equals(RModel.TYPE_ID)) {
     if (ensureSync) {
       RCore.getRModelManager().reconcile(this, IModelManager.AST, false, monitor);
     }
     return fAst;
   }
   return null;
 }
Example #3
0
 @Override
 protected IModelManager getModelManager() {
   return RCore.getRModelManager();
 }
Example #4
0
 public void reconcileRModel(final int reconcileLevel, final IProgressMonitor monitor) {
   RCore.getRModelManager().reconcile(this, reconcileLevel, true, monitor);
 }
Example #5
0
 @Override
 protected void unregister() {
   super.unregister();
   RCore.getRModelManager().deregisterDependentUnit(this);
 }