Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » description.setName() necessary to create a new project?
description.setName() necessary to create a new project? [message #291023] Tue, 06 September 2005 14:01
NiS is currently offline NiSFriend
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);
Previous Topic:Eclipse default encoding of files
Next Topic:who and where edit org.eclipse.swt.widgets.Display 's value eventQueue attributes?
Goto Forum:
  


Current Time: Thu May 09 23:56:38 GMT 2024

Powered by FUDForum. Page generated in 0.03329 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top