[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] How to navigate from StyledText to IEditorPart ?

Hi,

When a drop is performed on a text editor, the target is a StyledText. The behaviour of the drop could depend on the editor which contains the StyledText. For example, the drop on a JavaEditor would be performed in a different manner from the drop on a CDT editor.

By the content, I could have an algorithm to try to find the appropriate editor, but I think there should be an easier way.

I have looked at ProjectionDocument and related classes, but nothin strikes me as evident.

Any idea ?