提交 ae7606ba 编写于 作者: S Serge Rider

Lazy editor initialization fix

上级 d9263bb2
......@@ -142,6 +142,7 @@ public class NavigatorHandlerObjectOpen extends NavigatorHandlerObjectBase imple
return null;
}
if (!selectedNode.isPersisted()) {
log.debug("Node '" + selectedNode.getNodeName() + "' s not persisted. Open not possible.");
return null;
}
try {
......
......@@ -427,6 +427,7 @@ public abstract class NodeListControl extends ObjectListControl<DBNNode> impleme
} else {
original.setSelection(selection);
}
selectionChanged(new SelectionChangedEvent(this, selection));
}
@Override
......
......@@ -45,7 +45,13 @@ public abstract class MultiPageAbstractEditor extends MultiPageEditorPart
public void init(IEditorSite site, IEditorInput input)
throws PartInitException
{
super.init(site, input);
if (getEditorInput() == null) {
super.init(site, input);
} else {
// Pages re-initialization. Do not call init bcause it recreates selection provider
setSite(site);
setInput(input);
}
setPartName(input.getName());
setTitleImage(input.getImageDescriptor());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册