jboss-reddeer/reddeer — pull request #306 by apodhrad (2013-09-20 13:52:02+00:00)
Title: View is sometimes not opened

Assume we have the following views:

RedDeer SWT
-> RedDeer SWT
-> RedDeer SWT Controls

At first, open RedDeer SWT > RedDeer SWT Controls - fine, it works.
Then, try to open RedDeer SWT > RedDeer SWT (without 'Controls'). The current implementation tries to look if it is opened by regex

iViewReference.getTitle().matches(title + ".*") // View.java:211

Do you see where's the problem?

"RedDeer SWT Controls" matches "RedDeer SWT" + ".*"

and RedDeer SWT > RedDeer SWT is not opened.