Community
Participate
Working Groups
In at least focusSelectionChanged(*) PW
It looks like we overlooked this as part of bug 156581 I'd suggest looking at this for 3.3.1 PW
Removing the 3.3.1 target
It would be helpful to have the MarkerView use the Platform.getAdapterManager() to find adapters instead of an instanceof check, as it forces us to put tooling specific interfaces into our model. Also portions of our model are read-only and cant be made to extend IAdaptable. I think it should be mentioned in IAdaptable's interface that the preferred way to get an adaptable would be to ask the platform instead of doing an instanceof check.
I'll have a look at this for 3.3.2. I agree that we should always use Util.getAdapter(), but we have to assess what the risk of a change like this is in a maintenance stream.
We should do this for 3.4, but not 3.3.2 - it is not a blocker kind of problem.
Mass update - removing 3.4 target. This was one of the bugs I marked for investigation (and potential fixing) in 3.4 but I ran out of time. Please ping on the bug if fixing it would be really important for 3.4, and does not require API changes or feature work.
The views were rewritten in 3.4, is this still a problem?
Unfortunately the org.eclipse.ui.views.tasklist.ITaskListResourceAdapter is expecting an IAdaptable in its org.eclipse.ui.views.tasklist.ITaskListResourceAdapter.getAffectedResource(IAdaptable) method so that the instanceof check and the cast of the object cannot be avoided. Furthermore the implementations of the ITaskListResourceAdapter are not using the Util.getAdapter(*) method either. Known implementations are org.eclipse.ui.views.markers.internal.DefaultMarkerResourceAdapter and org.eclipse.ui.views.tasklist.DefaultTaskListResourceAdapter Those classes should also be modified so that they also use the Util.getAdapter() functionality.
Proposed Solution: https://git.eclipse.org/r/#/c/24101/
Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d2ae11a329b694ea4a01a9193c2f0c1dbdd2686c Thanks Simon, PW
In 4.4.0.I20140428-2000 PW