I'm new in Eclipse plugin development.So I have some problem(
I develop text editor for dot language and view wich linked with my editor. I linked editor with view, but I can not link my view with editor. I need change HighlightRange when I click in view. I have editor instance in view class, but setHighlightRange doesn't work.
I think that I should add some listeners but I don't know where((
Could anybody help me?
best regards
Lisa
Actually I am doing something similar to what you are doing. However, I still have problem of how to connect Editor to View. MyView needs a model from MyEditor in order to update the content displays in the view based on any changes done in MyEditor. Could you explain me how the ContentProvider set in View connects to a model in MyEditor and notification changes within Editor to the view ?
MyView implements ISelectionListener and at method
public void createPartControl(Composite parent) I add SelectionListener
getSite().getPage().addSelectionListener(this);
At method public void selectionChanged(IWorkbenchPart part, ISelection selection) {
if (part instanceof DOTEditor)
{//do somthing with view using information from current editor
}
}
I hope its help you)