Commit 7ace2613 authored by Romain Bioteau's avatar Romain Bioteau

Merge remote-tracking branch 'origin/master' into dev

Conflicts:
	community/pom.xml
parents e0f6f87b c8836a53
......@@ -46,21 +46,6 @@ public class CustomProcessDiagramEditor extends ProcessDiagramEditor {
}
}
@Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
if(part == null) {
BonitaStudioLog.error("Part is null !", Activator.PLUGIN_ID);
return;
}
if(part.getSite() == null) {
BonitaStudioLog.error(String.format("Part site is null for %s (%s)", part.getTitle(), part.toString()), Activator.PLUGIN_ID);
}
if(part.getSite().getPage() == null) {
BonitaStudioLog.error(String.format("Site page is null for %s (%s)", part.getTitle(), part.toString()), Activator.PLUGIN_ID);
}
super.selectionChanged(part, selection);
}
@Override
protected void setPartName(String partName) {
super.setPartName(partName);
......@@ -69,6 +54,15 @@ public class CustomProcessDiagramEditor extends ProcessDiagramEditor {
}
}
@Override
public void selectionChanged(IWorkbenchPart part, ISelection selection) {
if(getSite() == null || getSite().getPage() == null) {
//invalid editor
return;
}
super.selectionChanged(part, selection);
}
private void updateWebPageChangeListener(String processName) {
DiagramFileStore fileStore = RepositoryManager.getInstance()
.getRepositoryStore(DiagramRepositoryStore.class)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment