Changes between Version 11 and Version 12 of Entry_MS_Migration


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Entry_MS_Migration

    v11 v12  
    6969The 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
    71 Another 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:
     71Another 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 (i.e. a different category). 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:
    7272
    7373{{{