Changes between Version 10 and Version 11 of Entry_MS_Migration


Ignore:
Timestamp:
11/11/2016 05:39:05 PM (4 years ago)
Author:
sena
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Entry_MS_Migration

    v10 v11  
    6767}}}
    6868
    69 The second constructor which gets the entry from the part's transient data is necessary since we also create these editors through commands (not only with "double-click" from the project explorer). "Double-click" from the project explorer handles setting the transient data to make it possible to match the part with the given input (Entry). However, there is no notion of active Entry selection when we open the part with a double-click on the tables. In such a case, we have to get the related Entry from the part's transient data.
     69The second constructor which gets the entry from the part's transient data is necessary since we also create these editors through commands (not only with "double-click" from the project explorer). ''GritsUIService.openEntryInPart(Entry entry)'' handles setting the Entry to the part's transient data. When opening the editor with a "Double-click" from the project explorer we can access the selected entry from the context (ACTIVE_SELECTION). However, there is no notion of active Entry selection when we open the part with a double-click on the tables. In such a case, we have to get the related Entry from the part's transient data.
    7070
    7171Another special case for the ms plugins is that the multi-page viewers have a parent/child relationship. The top-level viewer is matched with an Entry with a certain property (which is defined as a "category" for the part descriptor in fragment.4xmi) and the child multi-page viewers display Entries with a child property of the parent viewer. In order to handle this case, we define the same multi-page viewer twice as a part descriptor in fragment.4xmi with a different id. For the child multi-page viewer, the "category" should list the child property's id. An example (fragment.4xmi) from "entry.ms" plugin is shown below: