]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ui/src/org/simantics/district/network/ui/breakdown/DistrictNetworkBreakdownPart.java
Fixed District diagram viewer to allow moving of vertices again.
[simantics/district.git] / org.simantics.district.network.ui / src / org / simantics / district / network / ui / breakdown / DistrictNetworkBreakdownPart.java
1 package org.simantics.district.network.ui.breakdown;
2
3 import javax.annotation.PostConstruct;
4
5 import org.eclipse.e4.ui.di.Focus;
6 import org.eclipse.swt.SWT;
7 import org.eclipse.swt.widgets.Composite;
8
9 /**
10  * @author Tuukka Lehtonen
11  * @since 1.35.0
12  */
13 public class DistrictNetworkBreakdownPart {
14
15     public static final String ID = "org.simantics.district.breakdown"; //$NON-NLS-1$
16
17     private DistrictNetworkBreakdownPanel panel;
18
19     @PostConstruct
20     public void createPartControl(Composite parent) {
21         panel = new DistrictNetworkBreakdownPanel(parent, SWT.NONE);
22     }
23
24     @Focus
25     public void setFocus() {
26         panel.setFocus();
27     }
28
29 }