Support diagram profile activity store/restore in model export/import
[simantics/platform.git] / bundles / org.simantics.diagram / src / org / simantics / diagram / profile / ProfileActivityBean.java
1 package org.simantics.diagram.profile;
2
3 import java.util.ArrayList;
4 import java.util.List;
5 import java.util.TreeMap;
6
7 import org.simantics.databoard.Bindings;
8 import org.simantics.databoard.annotations.Optional;
9 import org.simantics.databoard.binding.Binding;
10
11 /**
12  * @author Tuukka Lehtonen
13  * @since 1.32.0
14  */
15 public class ProfileActivityBean {
16
17         public static final String EXTENSION_KEY = ProfileActivityBean.class.getSimpleName();
18         public static final Binding BINDING = Bindings.getBindingUnchecked(ProfileActivityBean.class);
19
20         public static class Profile {
21                 public String relativeUri;
22                 public List<String> activeEntries = new ArrayList<>();
23         }
24
25         public TreeMap<String, Profile> topLevelProfiles = new TreeMap<>();
26
27         @Optional
28         public String activeProfile;
29
30 }