description.setName() necessary to create a new project? [message #291023] |
Tue, 06 September 2005 14:01 |
NiS Messages: 58 Registered: July 2009 |
Member |
|
|
Bonjour,
How should i create a new project? I use the folliwing code that works well
(3.2M1)
BUT:
I wonder why description.setName() should absolutely be called (a
checkDescription() method throws an exception if name is left null).
It is unused since the name which is taken later is the last segment of the
resource...
Nicolas.
final private void doFinish(IProgressMonitor monitor, IProject
projectHandle, IPath location) throws CoreException {
IProject project;
project = projectHandle.getProject();
IProjectDescription description = new ProjectDescription();
description.setName("Unused but necessary");
description.setLocation(location);
projectHandle.create(description, null);
|
|
|
Powered by
FUDForum. Page generated in 0.03329 seconds