Examples of ModelUpdateException


Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

    try {
      transformations.put("appns", appConf().getRequirePrefix());
      transformations.put("appname", name);
    }
    catch(ConfigException e) {
      throw new ModelUpdateException(e);
    }
  }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

    catch (ConfigException e) {
      if(e.getCause() instanceof InvalidNameException) {
        throw (InvalidNameException) e.getCause();
      }
      else {
        throw new ModelUpdateException(e);
      }
    }
  }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

    catch (ConfigException e) {
      if(e.getCause() instanceof InvalidNameException) {
        throw (InvalidNameException) e.getCause();
      }
      else {
        throw new ModelUpdateException(e);
      }
    }
  }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

    catch (ConfigException e) {
      if(e.getCause() instanceof InvalidNameException) {
        throw (InvalidNameException) e.getCause();
      }
      else {
        throw new ModelUpdateException(e);
      }
    }
  }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

        logger.debug(Messages.NODE_CREATED_LOG_MSG, getTypeName(), dir().getPath());
       
        rootNode.getFileInfo(dir()).resetLastModified();
      }
      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
    }
    catch(Exception e) {
      logger.error(Messages.NODE_CREATION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

        FileUtils.deleteDirectory(dir);
        logger.debug(Messages.NODE_DELETED_LOG_MSG, getTypeName(), dir.getPath());
        notifyObservers(new NodeDeletedEvent(), this);
      }
      catch(IOException e) {
        throw new ModelUpdateException(e);
      }
    }
    catch(Exception e) {
      logger.error(Messages.NODE_DELETION_FAILED_LOG_MSG, getTypeName(), dir().getPath());
      throw e;
View Full Code Here

Examples of org.bladerunnerjs.model.exception.modelupdate.ModelUpdateException

      transformations.putAll( overrideTransformations );
     
      TemplateUtility.installTemplate(node, node.getTemplateName(), transformations, allowNonEmptyDirectories);
    }
    catch(TemplateInstallationException e) {
      throw new ModelUpdateException(e);
    }

    node.ready();
  }
View Full Code Here

Examples of org.eclipse.ecf.sync.ModelUpdateException

  public void applyToModel(Object model) throws ModelUpdateException {
    try {
      apply();
    } catch (CoreException e) {
      throw new ModelUpdateException(e, this, model);
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.sync.ModelUpdateException

  BatchModelChange(IModelChangeMessage[] messages) {
    this.messages = messages;
  }

  public void applyToModel(Object model) throws ModelUpdateException {
    throw new ModelUpdateException(
        "Batch changes are applied individually", this, model);
  }
View Full Code Here

Examples of org.eclipse.ecf.sync.ModelUpdateException

  /* (non-Javadoc)
   * @see org.eclipse.ecf.sync.IModelChange#applyToModel(java.lang.Object)
   */
  public void applyToModel(Object model) throws ModelUpdateException {
    if (model == null) throw new ModelUpdateException("Model cannot be null",this,null);
    if (model instanceof IDocument) {
      try {
        ((IDocument) model).replace(getOffset(), getLengthOfReplacedText(), getText());
      } catch (BadLocationException e) {
        throw new ModelUpdateException("Exception applying change to document",this,model);
      }
    } else throw new ModelUpdateException("Incorrect type of model to apply change",this,model);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.