Revision 10666 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/ProjectViewFactory.java
ProjectViewFactory.java | ||
---|---|---|
61 | 61 |
public ProjectDocument create(Project project) { |
62 | 62 |
String viewName = ""; |
63 | 63 |
String aux = PluginServices.getText(this, "untitled"); |
64 |
viewName = aux + " - " + ProjectView.numViews++;
|
|
65 |
|
|
64 |
int numViews=((Integer)ProjectDocument.NUMS.get(registerName)).intValue();
|
|
65 |
viewName = aux + " - " + numViews++; |
|
66 | 66 |
if (project != null) { |
67 | 67 |
// Buscamos si alguna vista ya ten?a este nombre: |
68 |
while (existViewName(project, viewName)) {
|
|
69 |
viewName = aux + " - " + ProjectView.numViews++;
|
|
68 |
while (existName(project, viewName)) { |
|
69 |
viewName = aux + " - " + numViews++; |
|
70 | 70 |
} |
71 | 71 |
} |
72 |
|
|
72 |
ProjectDocument.NUMS.put(registerName,new Integer(numViews)); |
|
73 | 73 |
ProjectView vista = createView(viewName); |
74 | 74 |
vista.setProject(project, 0); |
75 | 75 |
vista.setProjectDocumentFactory(this); |
Also available in: Unified diff