Skip to content
Snippets Groups Projects
Commit 64b60659 authored by tcarver's avatar tcarver
Browse files

ensure unique project names

parent 859d8e02
Branches
Tags
No related merge requests found
...@@ -287,6 +287,14 @@ public class ProjectProperty extends JFrame ...@@ -287,6 +287,14 @@ public class ProjectProperty extends JFrame
"Project Name", "New Project", JOptionPane.QUESTION_MESSAGE); "Project Name", "New Project", JOptionPane.QUESTION_MESSAGE);
if(projName == null) if(projName == null)
return; return;
if(model.contains(projName))
{
JOptionPane.showMessageDialog(ProjectProperty.this,
projName+" is already a project. Please provide a unique project name.",
"Project Name", JOptionPane.WARNING_MESSAGE);
return;
}
final HashMap<String, String> hMap = new HashMap<String, String>(); final HashMap<String, String> hMap = new HashMap<String, String>();
hMap.put("sequence", ""); hMap.put("sequence", "");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment