* @param context
*/
private void openMergeView(int eventX, int eventY, MergeContext mergeContext) {
try {
MergeView view = (MergeView) ApplicationGIS.getView(true, MergeView.ID);
if (view == null) {
// crates a new merge view
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getActivePage();
view = (MergeView) page.findView(MergeView.ID);
}
assert view != null : "view is null"; //$NON-NLS-1$
// associates this the merge view with the merge context
view.setMergeContext(mergeContext);
mergeContext.activeMergeView(view);
} catch (Exception ex) {
AnimationUpdater.runTimer(getContext().getMapDisplay(), new MessageBubble(eventX,
eventY, "It cannot be merge", //$NON-NLS-1$