package org.simantics.district.network.ui; import javax.inject.Inject; import org.eclipse.e4.core.di.annotations.CanExecute; import org.eclipse.e4.core.di.annotations.Execute; import org.simantics.ui.workbench.e4.E4WorkbenchUtils; public class OpenDistrictEditor { @CanExecute public boolean canExecute() { return true; } @Execute @Inject public void execute() { E4WorkbenchUtils.openAndShowPart(DistrictDiagramEditor.ID); } }