jboss-reddeer/reddeer — pull request #778 by rhopp (2014-08-25 13:52:08+00:00)
Title: DefaultToolItem does not work with debug buttons

It affects only debug buttons (_Resume_, _Suspend_, _Terminate_, ...). DefaultToolItem on _Save_, _Run_, ... buttons work fine.

Following testcase IMHO should pass, but it fails.

```java
import org.jboss.reddeer.eclipse.ui.perspectives.JavaEEPerspective;
import org.jboss.reddeer.junit.runner.RedDeerSuite;
import org.jboss.reddeer.requirements.openperspective.OpenPerspectiveRequirement.OpenPerspective;
import org.jboss.reddeer.swt.impl.shell.WorkbenchShell;
import org.jboss.reddeer.swt.impl.toolbar.DefaultToolItem;
import org.jboss.reddeer.swt.matcher.RegexMatcher;
import org.jboss.reddeer.swt.matcher.WithTooltipTextMatcher;
import org.junit.Test;
import org.junit.runner.RunWith;

@RunWith(RedDeerSuite.class)
@OpenPerspective(JavaEEPerspective.class)
public class TestClass {

@Test
public void testDebugButtons() {

new DefaultToolItem(new WorkbenchShell(), new WithTooltipTextMatcher(new RegexMatcher("Resume.*")));
}
}
```