IFolder folder = getPlanFolderFromPEX(this.file);
IFile conFile = folder.getFile(constant.toolName + ".CON");
if (!conFile.exists()){
InputStream source = new ByteArrayInputStream(constant.toSource().getBytes());
conFile.create(source, false, null);
conFile.refreshLocal(IResource.DEPTH_ZERO, null);
}
} catch (CoreException e) {
ToolModelActivator.log(IStatus.ERROR, "Cannot create constant file", e);
}
}