import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.CanExecute;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.CanExecute;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.workbench.IWorkbench;
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.e4.ui.workbench.IWorkbench;
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.widgets.Shell;
import org.simantics.db.exception.DatabaseException;
import org.simantics.district.selection.ui.parts.EditSelectorDialog;
import org.simantics.db.exception.DatabaseException;
import org.simantics.district.selection.ui.parts.EditSelectorDialog;
LOGGER.debug("Opening dialog");
int result = dialog.open();
LOGGER.debug("Dialog closed with result code " + result);
LOGGER.debug("Opening dialog");
int result = dialog.open();
LOGGER.debug("Dialog closed with result code " + result);