Author: max.andersen(a)jboss.com
Date: 2007-11-02 14:37:39 -0400 (Fri, 02 Nov 2007)
New Revision: 4671
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/CompletionHelper.java
Log:
3.2 comment.
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/CompletionHelper.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/CompletionHelper.java 2007-11-02
17:26:28 UTC (rev 4670)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/CompletionHelper.java 2007-11-02
18:37:39 UTC (rev 4671)
@@ -83,6 +83,7 @@
}
proposal.setReplacementOffset(wanted);
} else {
+ // Workaround for Eclipse 3.x changes.
Class c = results[i].getClass();
try {
Method setMethod = c.getMethod("setReplacementOffset", new Class[] {
int.class });
@@ -93,19 +94,19 @@
setMethod.invoke(results[i], new Object[] { new Integer(wanted) });
} catch (SecurityException e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ //e.printStackTrace();
} catch (NoSuchMethodException e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ //e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ //e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ //e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
- e.printStackTrace();
+ //e.printStackTrace();
}
// M7
// LazyJavaCompletionProposal proposal = (LazyJavaCompletionProposal) results[i]; //
TODO: eclipse bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=84998