Community
Participate
Working Groups
Build Identifier: M20090917-0800 If somebody wants to extend the ltk refactoring functionality by providing a compare view of models, then the own Change extension needs only to implement IModelCompareInputProvider and the preview page of the refactoring displays a ModelContentPreviewViewer. As input a IModelCompareInputProvider will be expected. But when the preview is open and one presses the back button, a NullChange object will be created. This object is not implementing IModelCompareInputProvider and that's why the setInput(ChangePreviewViewerInput in) method in the ModelContentPreviewViewer cannot cast the NullChange object to IModelCompareInputProvider. This exception is swallowed anyhow and the user only wonders about why the previous page is being displayed but with the control of the compare viewer. An instanceof check is needed at this place. Reproducible: Always
Created attachment 164081 [details] patch containing an instanceof check here is a patch with an instanceof check
Thanks for the feedback ; the ModelContentPreviewViewer was a contribution from Moritz Eysholdt and I admit it hasn't been tested thoroughly. You patch has been contributed as is on CVS HEAD and will be available in M7