Summary
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
Summary
When right clicking on an AADL in the AADL navigator method
setEnabled()of classesorg.osate.ge.internal.ui.handlers.OpenDiagramHandlerand...CreateDiagramHandleris 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