Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 565405

Summary: Compatibility problem with Canary target platform concerning FilteredTree
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: CoreAssignee: Laurent Redor <laurent.redor>
Status: CLOSED FIXED QA Contact: Julien Dupont <julien.dupont>
Severity: normal    
Priority: P3 CC: julien.dupont
Version: unspecified   
Target Milestone: 6.4.0   
Hardware: PC   
OS: Windows 10   
See Also: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/166611
https://bugs.eclipse.org/bugs/show_bug.cgi?id=548085
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f31dfb47a057740c32b9127b7f3c3f49e6c5c190
https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168070
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=7da398ada072966ed0b74b27477e90a713b8ef21
Whiteboard:
Attachments:
Description Flags
samples.zip none

Description Laurent Redor CLA 2020-07-21 12:49:36 EDT
The copied classes from FilteredTree (org.eclipse.sirius.ext.e3.ui.dialogs.FilteredTree and org.eclipse.sirius.ui.tools.internal.views.common.navigator.filter.FilteredCommonTree) have compilation problem on Canary target platform: "FilteredTree_AccessibleListenerClearButton cannot be resolved or is not a field.
Indeed this message has been removed by
one of the commit for "bug 564975 - Unused keys in message classes" [1].

[1] https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=74edd4631dfba9619393e79b1dd594f7e532525c
Comment 1 Laurent Redor CLA 2020-07-21 12:52:05 EDT
Several changes have been done in Eclipse FilteredTree class. The changes in FilteredTree are here since long time but not detected
before.

To be compatible from Eclipse Photon to Eclipse 202009 (canary) we can
not simply duplicate classes from current Eclipse 202009 (as it was done
before for Eclipse Juno to benefit in QuickOutlineControl, of new
features not available in Juno (bugzilla 460712 and commit 302d195d
[1]). Indeed, the delete button of the search field depends on specific
OS implementation, especially Text class for Windows that has been
adapted for that recently ("Bug 293230 - Support SWT.ICON_SEARCH and
SWT.ICON_CANCEL for native find/filter/search box for Windows 7 /
Windows 10").

In a first time, we simply copy the deleted message and uses it in our own
copies of FilteredTree.

We can switch to the new "implementation" as soon as the lower
supported version will be 201909.

[1] https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=302d195dac44967e5875fc174d43a331ad1f16fe
Comment 2 Laurent Redor CLA 2020-07-21 12:52:23 EDT
Steps to validate:
* Activate the "Modeling" perspective
* Import projects from "samples.zip"
* In the "Model Explorer" view:
    * Expand "Sample1" project
    * Expand "Sample2" project
* In the search field of the "Model Explorer" view:
    * Write "Class"
	* Expected: 4 classes are visible (in their respective tree)
	* Complete with "C1"
	* Expected: 2 classes are visible (in their respective tree): ClassC1 and ClassC11
* Click on the erase button of the search field of the "Model Explorer" view.
* Expected: The label "ClassC1" is delected and all the elements are visible.
* Open "/Sample1/My.odesign" file
* Click on "Crtl+O"
* In the search field of the popup:
    * Write "*Diag"
	* Expected: 2 diagram descriptions are visible
	* Complete with "2"
	* Expected: 1 diagram description is visible
* Click on the erase button of the search field of the popup.
* Expected: The label "*Diag2" is delected and all the elements are visible.
* Double click on "/Sample1/representations.aird"
* Expected: The aird editor is opened.
* Under the "Models" section
* In the search field of the "Model Explorer" view:
    * Write "Class"
	* Expected: 2 classes are visible
	* Complete with "C1"
	* Expected: 1 class is visible: ClassC1
Comment 3 Laurent Redor CLA 2020-07-21 12:52:44 EDT
Created attachment 283667 [details]
samples.zip
Comment 4 Eclipse Genie CLA 2020-07-21 12:55:19 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/166611
Comment 5 Laurent Redor CLA 2020-07-21 12:56:02 EDT
The above gerrit must be reviewed/validated with both "Photon" and "Canary" target platforms.
Comment 7 Eclipse Genie CLA 2020-08-21 09:39:03 EDT
New Gerrit change created: https://git.eclipse.org/r/c/sirius/org.eclipse.sirius/+/168070
Comment 9 Julien Dupont CLA 2020-10-08 10:57:01 EDT
Validated with version Sirius 6.4.0.202010071648
Comment 10 Pierre-Charles David CLA 2020-12-04 04:23:18 EST
Available in Sirius 6.4.0, see https://download.eclipse.org/sirius/updates/releases/6.4.0/ for details.