tweezy23 / anyedittools

Automatically exported from code.google.com/p/anyedittools
2 stars 0 forks source link

CCE: TreeViewer cannot be cast to TextViewer #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.ㅁ
2.ㅁ
3.ㅁ

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by lucent...@gmail.com on 19 Nov 2009 at 7:11

GoogleCodeExporter commented 9 years ago
java.lang.ClassCastException: org.eclipse.jface.viewers.TreeViewer cannot be 
cast to 
org.eclipse.jface.text.TextViewer
    at de.loskutov.anyedit.ui.editor.EditorPropertyTester.hasDocument
(EditorPropertyTester.java:76)
    at de.loskutov.anyedit.ui.editor.EditorPropertyTester.test
(EditorPropertyTester.java:39)
    at org.eclipse.core.internal.expressions.Property.test(Property.java:58)
    at org.eclipse.core.internal.expressions.TestExpression.evaluate
(TestExpression.java:99)
    at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd
(CompositeExpression.java:53)
    at org.eclipse.core.internal.expressions.AndExpression.evaluate
(AndExpression.java:29)
    at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd
(CompositeExpression.java:53)
    at org.eclipse.core.internal.expressions.WithExpression.evaluate
(WithExpression.java:72)
    at org.eclipse.ui.internal.services.EvaluationResultCache.evaluate
(EvaluationResultCache.java:74)
    at org.eclipse.ui.internal.services.ExpressionAuthority.evaluate
(ExpressionAuthority.java:164)
    at 
org.eclipse.ui.internal.services.EvaluationAuthority.refsWithSameExpression
(EvaluationAuthority.java:153)
    at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged
(EvaluationAuthority.java:129)
    at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged
(ExpressionAuthority.java:310)
    at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged
(ExpressionAuthority.java:289)
    at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged
(AbstractSourceProvider.java:99)
    at org.eclipse.ui.internal.services.ActivePartSourceProvider.checkActivePart
(ActivePartSourceProvider.java:244)
    at 
org.eclipse.ui.internal.services.ActivePartSourceProvider$1.partBroughtToTop
(ActivePartSourceProvider.java:94)
    at org.eclipse.ui.internal.PartListenerList$2.run(PartListenerList.java:87)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.PartListenerList.fireEvent
(PartListenerList.java:57)
    at org.eclipse.ui.internal.PartListenerList.firePartBroughtToTop
(PartListenerList.java:85)
    at org.eclipse.ui.internal.PartService.firePartBroughtToTop
(PartService.java:207)
    at org.eclipse.ui.internal.WWinPartService$1.partBroughtToTop
(WWinPartService.java:40)
    at org.eclipse.ui.internal.PartListenerList2$2.run(PartListenerList2.java:83)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    at org.eclipse.core.runtime.Platform.run(Platform.java:880)
    at org.eclipse.ui.internal.PartListenerList2.fireEvent
(PartListenerList2.java:53)
    at org.eclipse.ui.internal.PartListenerList2.firePartBroughtToTop
(PartListenerList2.java:81)
    at org.eclipse.ui.internal.PartService.firePartBroughtToTop
(PartService.java:211)
    at org.eclipse.ui.internal.WorkbenchPagePartList.firePartBroughtToTop
(WorkbenchPagePartList.java:75)
    at org.eclipse.ui.internal.WorkbenchPage.bringToTop(WorkbenchPage.java:854)
    at org.eclipse.ui.internal.views.log.LogView$25.run(LogView.java:1047)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:133)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:288)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:490)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:193)
    at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Original comment by lucent...@gmail.com on 19 Nov 2009 at 7:17

GoogleCodeExporter commented 9 years ago
AnyEdit 2.3.0.200910041235
@ Eclipse 3.4.2 (Build id: M20090211-1700)

Original comment by lucent...@gmail.com on 19 Nov 2009 at 7:21

GoogleCodeExporter commented 9 years ago
This exception is because some view part violates the API contract of 
getAdapter and 
returns wrong object. Closing as wont' fix.

Original comment by iloveeclipse on 10 May 2010 at 7:55