Revision 46769 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
AbstractDocumentManager.java | ||
---|---|---|
186 | 186 |
} |
187 | 187 |
|
188 | 188 |
@Override |
189 |
public boolean hasMainWindow(Document doc) { |
|
190 |
SimpleIdentityManager identityManager = ToolsLocator.getIdentityManager(); |
|
191 |
if( ! identityManager.getCurrentIdentity().isAuthorized(Document.ACCESS_DOCUMENT_AUTHORIZATION, this, this.getTypeName()) ) { |
|
192 |
throw new UnauthorizedException(Document.ACCESS_DOCUMENT_AUTHORIZATION, this, this.getTypeName()); |
|
193 |
} |
|
194 |
IDocumentWindow win; |
|
195 |
|
|
196 |
win = (IDocumentWindow) PluginServices.getMDIManager().getSingletonWindow(getMainWindowClass(), doc); |
|
197 |
return win!=null; |
|
198 |
} |
|
199 |
|
|
200 |
@Override |
|
189 | 201 |
public IWindow getPropertiesWindow(Document doc) { |
190 | 202 |
SimpleIdentityManager identityManager = ToolsLocator.getIdentityManager(); |
191 | 203 |
if( ! identityManager.getCurrentIdentity().isAuthorized(Document.ACCESS_DOCUMENT_AUTHORIZATION, this, this.getTypeName()) ) { |
Also available in: Unified diff