When right clicking on an AADL in the AADL navigator method setEnabled() of classes org.osate.ge.internal.ui.handlers.OpenDiagramHandler and ...CreateDiagramHandler is called. In both cases org.osate.ge.internal.ui.util.SelectionUtil.getDiagramContext(ISelection, IEditorPart) parses the AADL file. IIUC this is done to check if a package file is selected. This should be simplified to not parse the selected AADL file.
Similarly, right click on an aaxl2 file reads the instance file into memory. Maybe it is sufficient to just check the file extension.
Environment
OSATE Version: 2.9.0
Operating System: all
The text was updated successfully, but these errors were encountered:
Summary
When right clicking on an AADL in the AADL navigator method
setEnabled()
of classesorg.osate.ge.internal.ui.handlers.OpenDiagramHandler
and...CreateDiagramHandler
is called. In both casesorg.osate.ge.internal.ui.util.SelectionUtil.getDiagramContext(ISelection, IEditorPart)
parses the AADL file. IIUC this is done to check if a package file is selected. This should be simplified to not parse the selected AADL file.Similarly, right click on an aaxl2 file reads the instance file into memory. Maybe it is sufficient to just check the file extension.
Environment
The text was updated successfully, but these errors were encountered: