diff options
| author | Pierre-Charles David | 2017-10-23 12:57:48 +0000 |
|---|---|---|
| committer | Pierre-Charles David | 2017-12-22 13:49:52 +0000 |
| commit | 6d06707b28d31a84125d5544ee66e7a3741a4523 (patch) | |
| tree | 93b41ed5d21dbb939bdbd653d740f8c992b44366 | |
| parent | a7c70cfcc31a8ae1d15a719046359258b27555e9 (diff) | |
| download | org.eclipse.sirius-6d06707b28d31a84125d5544ee66e7a3741a4523.tar.gz org.eclipse.sirius-6d06707b28d31a84125d5544ee66e7a3741a4523.tar.xz org.eclipse.sirius-6d06707b28d31a84125d5544ee66e7a3741a4523.zip | |
[526258] Fix analysis detection on aird files with no active viewpoint
Make sure the exception used to signal that the SAX parser has
gathered all required informations is always thrown, even in the
absence of an ownedViews element in the XMI, as the client code in
RepresentationsFileSaxParser.analyze() expects it.
Bug: 526258
Change-Id: I99a2b20aa6b56e6fe5d87d91325498b8bc380e56
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
| -rw-r--r-- | plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/parser/RepresentationsFileHandler.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/parser/RepresentationsFileHandler.java b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/parser/RepresentationsFileHandler.java index e436d8dce2..f020fbefea 100644 --- a/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/parser/RepresentationsFileHandler.java +++ b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/session/parser/RepresentationsFileHandler.java @@ -77,6 +77,11 @@ public class RepresentationsFileHandler extends DefaultHandler { throw new SiriusSaxParserNormalAbortException(Messages.XMIModelFileHandler_parsingStopedMsg); } } + + @Override + public void endDocument() throws SAXException { + throw new SiriusSaxParserNormalAbortException(Messages.XMIModelFileHandler_parsingStopedMsg); + } /** * Get the semantic models used by this analysis. |
