-2

I am trying to create a console in Eclipse that includes some additional feature on top of the normal MessageConsole. To include those extra actions I created a class that extends TextConsolePage and I override the createActions() method much like the IOConsolePage.

The setup above works great, however the console that is created does not autoscroll when content is added. I've tried to add autoscrolling ability by adding my own viewer and mimicking IOConsoleViewer, but when I do that I get a

NoClassDefFoundError: org/eclipse/jface/text/IDocumentListener

I have org.eclipse.text and org.eclipse.jface.text both as require plug-ins in my dependencies, so I am not quite sure why I'd get this error. Anyone know what I can do to get past it?

Danny
  • 7,368
  • 8
  • 46
  • 70
  • `NoClassDefFoundError` can mean a number of things, show us more of the exception. – greg-449 Jan 22 '16 at 14:31
  • @greg-449 [Dependencies](http://imgur.com/MjPa8F0), [Exception](http://pastebin.com/jDEdnG6M), [Viewer Class](http://pastebin.com/SGS5wQHu) – Danny Jan 22 '16 at 14:40
  • @greg-449 I'm developing on one system and using the plugin on another. They both are using Eclipse Luna 4.4.1. It looks as the machine that I am trying to run the plugin on has a slightly different version of jface text `3.9.2` vs `3.9.1`. Would that make a difference, even though the manifest.mf doesn't have required versions on it.... – Danny Jan 22 '16 at 14:53
  • @greg-449 when I created a feature and update site, as opposed to what I used to be doing (copying to dropins folder) it worked. Guess I need to understand what happens differently this way. – Danny Jan 22 '16 at 15:19

1 Answers1

0

Confusingly IDocumentListener is in the org.eclipse.text plugin not org.eclipse.jface.text as you might expect. Add org.eclipse.text to the plugin dependencies.

greg-449
  • 109,219
  • 232
  • 102
  • 145
  • I already have it there. I have both added. But if I click the "Find unused dependencies", it will remove `org.eclipse.text` – Danny Jan 22 '16 at 14:29