package org.simantics.district.region.ui; import org.eclipse.e4.core.di.annotations.CanExecute; import org.eclipse.e4.core.di.annotations.Execute; import org.eclipse.e4.ui.workbench.modeling.ESelectionService; import org.simantics.ui.workbench.e4.E4WorkbenchUtils; public class OpenDiagramRegionsTable { @CanExecute public boolean canExecute(ESelectionService selectionService) { return true; } @Execute public void openPropertyTable(ESelectionService selectionService) { E4WorkbenchUtils.openAndShowPart("org.simantics.diagram.regions.diagramRegionsTable"); } }