Bugs item #3540379, was opened at 2012-07-05 00:00
Message generated for change (Settings changed) made by starroli
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=843359&aid=3540379&group_id=167540

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Synchronisation / Invitation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sebastian Starroske (starroli)
>Assigned to: Nobody/Anonymous (nobody)
Summary: Rework the method projectNameIsUnique(..) 

Initial Comment:
The method EnterPageNameUtils.projectNameIsUnique(..)  is used at different 
places with different intentions:
1) test if the given name is included in a list of reserved project names
2) test if a project already exists in the current workspace
3) test if file with the given name exists in the current directory of the 
workspace

Intention 2) is not implemented correctly:
The Eclipse API should be used to determine, if a project exists already in the 
workspace. Projects which are not physically located in the workspace are not 
included in the check.

Intention 3) is implemented to uses Java.IO.File to check this. Maybe ther is a 
way to do this using the eclipse API


----------------------------------------------------------------------

Comment By: Franz Zieris (franzzieris)
Date: 2012-09-04 08:14

Message:
@Sebastian: Are you still working on this, or do you want to set this
tracker item free?

----------------------------------------------------------------------

Comment By: Stefan Rossbach (kargor)
Date: 2012-07-05 17:03

Message:
Analyse issue 3. I think this requirement is not needed,

so the code is


Set<IProject> currentProjects = new HashSet<IProject>

currentProjects.addAll(Arrays.asList(ResourcePlugin.getWorkspace().getRoot().getProjects())

for (String reservedProject : reservedProjects)
 
currentProjects.add(ResourcePlugin.getWorkspace().getRoot().getProject(reseverdProject)

return ! currentProjects.contains(newProject)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=843359&aid=3540379&group_id=167540

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Dpp-robot mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dpp-robot

Reply via email to