package org.simantics.district.selection.ui.handlers; 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 OpenElementSelectorTable { private static final String VIEW_ID = "org.simantics.diagram.selection.ui.elementSelectionView"; @CanExecute public boolean canExecute(ESelectionService selectionService) { return true; } @Execute public void openPropertyTable(ESelectionService selectionService) { E4WorkbenchUtils.openAndShowPart(VIEW_ID); } }