osate / osate2

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

AADL Properties View Issues #254

Closed philip-alldredge closed 11 years ago

philip-alldredge commented 11 years ago

I am working with integrating the AADL Properties view into my plugin and I encountered a few issues.

I have created a patch for your consideration that resolves these issues. Detailed changes are below.

Patch: https://gist.github.com/philip-alldredge/42bb37619f8399452a05

Changes: Added IAadlPropertySource to org.osate.xtext.aadl2.ui.propertyview to provide a mechanism for external plugins to provide the AADL Property Value view with the selected AADL element and other related objects.

Export the org.osate.xtext.aadl2.ui.propertyview package to allow plugin developers to access IAadlPropertySource.

Updated AadlPropertyView to check if the current selection is adaptable to IAadlPropertySource.

Updates to ProeprtyAssociationWizard: Code path that uses command stack will now check if it is null and create a temporary editing domain if necessary instead of triggering a null pointer exception.

XtextDocument code path now retrieves the property holder from the resource provided by the Xtext modify() method and no longer saves the resource. This allows the property editor to work with an Xtext editor that has changes without prompting the user for a refresh when changes are made.

AadlUti::isImportedPropertySet returns true if two property sets have the same qualified name instead of being the same instance. This allows the comparison between property sets to pass when they are different instances. For example when one property set is from an Xtext controlled dirty resource set and one is from the persistent resource set.

juli1 commented 11 years ago

Assigning the bug to Joe because he is the developer of this part of OSATE.

philip-alldredge commented 11 years ago

@joeseibel Do you have any thoughts? Will you merge this?