Eclipse 3.4 TextViewer

I am creating a plugin for Eclipse 3.4. I created a plug-in development project using the application with a view. Now I am trying to create a TextViewer the documentation says that it is located in org.eclipse.jface.text.TextViewer. But, this whole package is missing and eclipse cannot locate TextViewer class to import. I want to know why is this package/class missing? Also if it is really gone what took TextViewer's place?


Asked by: Walter975 | Posted: 23-01-2022






Answer 1

Require-Bundle: org.eclipse.ui,
 org.eclipse.core.runtime,
 org.eclipse.jface.text

Add org.eclipse.jface.text as a dependency in your plugin manifest. You can use 3rd party tools (like IBM's JAR Class Finder) to locate dependencies, or, alternatively, create a dummy plugin that imports everything from the target platform and use the Open Type dialog (CTRL+SHIFT+T).

If you don't like the manual route, have a look at the Automated Management of Dependencies feature in the manifest editor, though care should be taken with this.

Answered by: Emma492 | Posted: 24-02-2022



Answer 2

in 3.4 i have it inside

eclipse-jee-ganymede-win32\plugins\org.eclipse.jface.text_3.4.0.v20080603-2000.jar

Answered by: Kristian610 | Posted: 24-02-2022



Similar questions

java - Set caret position in JFace TextViewer

I want to create some Macro abilities in a TextViewer. So I attached a TextListener. In its textChanged-Method I check for a Macro-Hotkey. Whenever it encounters this hotkey, the TextListener analyzes the word just before and then replaces it against the macro contents (via TextViewer#getDocument().replace()). This works. Now just after replacing the macro name with its contents, I would like to place the caret to...






Still can't find your answer? Check out these amazing Java communities for help...



Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)



top