Revision 40734 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.coreplugin.app/org.gvsig.coreplugin.app.mainplugin/src/main/java/org/gvsig/coreplugin/mdiManager/SingletonWindowSupport.java

View differences:

SingletonWindowSupport.java
66 66
	}
67 67

  
68 68
	/**
69
	 * Devuelve una referencia a la vista si ya est? mostrada o null si la
70
	 * vista no ha sido a?adida o ya fue cerrada
71 69
	 *
70
	 * If the window existed, the 'wi' parameter is updated with the
71
	 * previous window info (this allows to show the window in the previous
72
	 * place), but the title of the window is updated using the title
73
	 * from the parameter.
74
	 *  
72 75
	 * @param windowClass DOCUMENT ME!
73 76
	 * @param model DOCUMENT ME!
74 77
	 * @param wi DOCUMENT ME!
......
86 89
				throw new SingletonDialogAlreadyShownException();
87 90
			}
88 91

  
89
			wi.setWindowInfo((WindowInfo)contentWindowInfo.get(swi));
92
			String new_tit = wi.getTitle();
93
			WindowInfo previous_wi = (WindowInfo) contentWindowInfo.get(swi);
94
			previous_wi.setTitle(new_tit);
95
			wi.setWindowInfo(previous_wi);
90 96

  
91 97
			return true;
92 98
		} else {

Also available in: Unified diff