Author: vrubezhny
Date: 2008-04-08 13:20:44 -0400 (Tue, 08 Apr 2008)
New Revision: 7429
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamQueryParticipant.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2000 License header is incorrect for new seam
search features
Unused methods are removed
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamQueryParticipant.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamQueryParticipant.java 2008-04-08
16:48:04 UTC (rev 7428)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/search/SeamQueryParticipant.java 2008-04-08
17:20:44 UTC (rev 7429)
@@ -97,37 +97,4 @@
seamRequestor);
}
}
-
-
- private IProject getProject(IJavaElement javaElement) {
- try {
- return javaElement.getPrimaryElement().getResource().getProject();
- } catch (Throwable ex) {
- return null;
- }
- }
-
-
- private String getPropertyName (IJavaElement element) {
- if (element == null || IJavaElement.METHOD != element.getElementType())
- return null;
-
- String name = element.getElementName();
- IMethod method = (IMethod)element;
-
- if (!name.startsWith("get") && !name.startsWith("set")
&& !name.startsWith("is"))
- return null;
-
-
- if (name.startsWith("get") || name.startsWith("is") ) {
- // the method is getter only if it has no parameters
- if (method.getNumberOfParameters() > 0)
- return null;
- }
-
- int nameOffset = (name.startsWith("set") || name.startsWith("get")
? 3 : 2);
- name = name.substring(nameOffset, nameOffset + 1).toLowerCase() +
- name.substring(nameOffset + 1);
- return name;
- }
}