Beispiel #1
0
 /**
  * @param n the new project name
  * @param p the project that receives the name
  * @throws URISyntaxException if the URI is malformed
  */
 public void setProjectName(final String n, Project p) throws URISyntaxException {
   String s = "";
   if (p.getURI() != null) {
     s = p.getURI().toString();
   }
   s = s.substring(0, s.lastIndexOf("/") + 1) + n;
   setProjectURI(new URI(s), p);
 }