2012/4/18 Matthias Sohn <[email protected]>

> 2012/4/10 Paul Webster <[email protected]>
>
>> On Thu, Apr 5, 2012 at 7:32 PM, Matthias Sohn <
>> [email protected]> wrote:
>>
>>> I am trying to make the EGit UI tests run on Eclipse 4.2, I can't get
>>> over the following
>>> problem which seems to be caused by SWTBot using the following method of
>>> an
>>> internal class org.eclipse.ui.internal.PartPane.getToolBar()
>>> which is no longer available in 4.2. This affects quite a number of EGit
>>> UI tests.
>>>
>>> I tried both the Helios and Indigo nightly build versions of SWTBot.
>>> I couldn't find any Juno / 4.2 based SWTBot version.
>>>
>>> Any hints how to fix this ?
>>>
>>> testCreateCheckoutDeleteLocalBranch(org.eclipse.egit.ui.view.repositories.GitRepositoriesViewBranchHandlingTest)
>>>  Time elapsed: 3.965 sec  <<< ERROR!
>>> org.eclipse.swt.SWTException: Failed to execute runnable
>>> (java.lang.NoSuchMethodError:
>>> org.eclipse.ui.internal.PartPane.getToolBar()Lorg/eclipse/swt/widgets/Control;)
>>>
>>
>>
>> They'd need to replace that code with something like:
>>
>> ToolBar toolbar = null;
>> IToolBarManager t =
>> ((IViewSite)part.getSite()).getActionBars().getToolBarManager();
>> if (t instanceof ToolBarManager) {
>>     toolbar = ((ToolBarManager)t).getControl();
>> }
>>
>>
> thanks Paul for your hints :-)
>
> I posted 2 patches to Bugzilla [1] hoping that some SWTBot wizard
> finds time to review them. The patches provide build configuration
> for 4.2M6 and fix the compile errors. Though running the SWTBot tests
> on Mac OSX reveal around 30 errors, looks like there are more problems
> on 4.2. Hence I need help from somebody who knows more about
> SWTBot in order to get an idea what these errors mean.
>
> [1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=375598
>

ping ...

This prevents us from running EGit UI tests on Eclipse 4.2.
Could please some SWTBot committer have a look ?

-- 
Matthias
_______________________________________________
swtbot-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/swtbot-dev

Reply via email to