Revision 47036
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/AbstractDocumentManager.java | ||
---|---|---|
211 | 211 |
@Override |
212 | 212 |
public JComponent getMainComponent(Document doc) { |
213 | 213 |
ApplicationManager application = ApplicationLocator.getManager(); |
214 |
Document activeDoc = application.getActiveDocument(); |
|
214 |
Document activeDoc = application.getActiveDocument(this.getDocumentClass());
|
|
215 | 215 |
if( activeDoc == doc ) { // Ojo, hay que cerciorarse de que esta comparacion funciona. |
216 | 216 |
IWindow win = this.getMainWindow(doc); |
217 | 217 |
if( win instanceof Component ) { |
Also available in: Unified diff