From: Tuukka Lehtonen Date: Thu, 28 Sep 2017 13:56:03 +0000 (+0300) Subject: Removed useless OpenDistrictEditor E4 handler. X-Git-Tag: v1.31.0~1 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2d25106af4cf84d9895537bbe4e9ce6300703f5a;p=simantics%2Fdistrict.git Removed useless OpenDistrictEditor E4 handler. refs #6958 Change-Id: I945e956116e5f474de3b54432bfa98705180d154 --- diff --git a/org.simantics.district.network.ui/fragment.e4xmi b/org.simantics.district.network.ui/fragment.e4xmi index 6271c820..c879a4f9 100644 --- a/org.simantics.district.network.ui/fragment.e4xmi +++ b/org.simantics.district.network.ui/fragment.e4xmi @@ -5,15 +5,11 @@ - - - - diff --git a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/OpenDistrictEditor.java b/org.simantics.district.network.ui/src/org/simantics/district/network/ui/OpenDistrictEditor.java deleted file mode 100644 index 9abb9a03..00000000 --- a/org.simantics.district.network.ui/src/org/simantics/district/network/ui/OpenDistrictEditor.java +++ /dev/null @@ -1,21 +0,0 @@ -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); - } -}