Author: snjeza
Date: 2008-05-09 11:33:47 -0400 (Fri, 09 May 2008)
New Revision: 8032
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java
Log:
JBIDE-2201 The visibility of the org.eclipse.jface.viewers.ColumnViewer.isBusy() method is
changed from a package to public
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java 2008-05-09
07:04:08 UTC (rev 8031)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/viewers/xpl/MTreeViewer.java 2008-05-09
15:33:47 UTC (rev 8032)
@@ -47,34 +47,6 @@
super(parent, style);
}
- // some little hack - cause TreeViewer has lack design for extensions
- public boolean isBusy() {
-
- Object obj = null;
- Class clazz = org.eclipse.jface.viewers.ColumnViewer.class;
- try {
- Method hiddenMethod = clazz.getDeclaredMethod("isBusy", new Class[0]);
- if (null != hiddenMethod) {
- hiddenMethod.setAccessible(true);
- obj = hiddenMethod.invoke(this, new Object[0]);
- }
- } catch (IllegalArgumentException e) {
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- e.printStackTrace();
- } catch (SecurityException e) {
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
- e.printStackTrace();
- }
- if (obj instanceof Boolean) {
- return ((Boolean)obj).booleanValue();
- }
- return false;
- }
-
/**
* Adds the given child elements to this viewer as children of the given
* parent element. If this viewer does not have a sorter, the elements are
Show replies by date