@Override protected InputStream getInitialContents() { // Cheat by creating content manually here - not really worth the trouble of creating a // model to get these empty strings // IPath path = getContainerFullPath(); String folderName = path.lastSegment(); String[] split = ModuleName.splitName(folderName); StringBuilder bld = new StringBuilder(); bld.append("name '"); if (split[0] != null) { bld.append(split[0]); bld.append('-'); bld.append(split[1]); } bld.append("'\nversion '0.1.0'\n\nauthor ''\nlicense ''\n"); return new ByteArrayInputStream(bld.toString().getBytes(UTF_8)); }