osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

Graphical editor uses inefficient property tester #2499

Closed lwrage closed 3 years ago

lwrage commented 3 years ago

Summary

Plugin org.osate.ge has a property tester (class org.osate.ge.internal.expressions.ResourcePropertyTester) to test if a file is an AADL package by loading the file into a resource set. This is horribly inefficient.

Expected and Current Behavior

The plugin should use org.osate.ui.handlers.AadlFileTypePropertyTester, instead. (We should put this one in a different package!)

Environment

philip-alldredge commented 3 years ago

org.osate.ge.internal.expressions.ResourcePropertyTester also provides an additional name property that is no longer used. ResourcePropertyTester should be removed completely after switching to the property provided by aadlFileTypePropertyTester.