Fix unexpected CoreException
commitdde9bbaf73075825611601f2f741ec16e68cf08e
authorStefan Lay <stefan.lay@sap.com>
Fri, 25 Sep 2009 15:23:57 +0000 (25 17:23 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 1 Oct 2009 22:50:25 +0000 (1 15:50 -0700)
treecbc4e9666f0a1b53df5e0c5a51c1b6945a5b2750
parent025d26216af17edb60c40e2046d30d4d9cc6571c
Fix unexpected CoreException

  "org.eclipse.core.runtime.CoreException: No property tester contributes
  a property projectPersistentProperty org.eclipse.team.core.repository to
  type class org.eclipse.core.internal.resources.Project"

which was logged whenever the context menu was opened on a project.

The cause of the Exception was that the value of the "property"
attribute of the test element was wrong. The method "testProperty"
of org.eclipse.core.internal.propertytester.ResourcePropertyTester
takes both the property name and the property value from the "args"
argument.  The value of the attribute "property" is used to determine
the type of the property.

The EGit UI behaviour is the same as before, but without the
exception in the Error log and with a cleaner plugin.xml.

Signed-off-by: Stefan Lay <stefan.lay@sap.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.egit.ui/plugin.xml