All your answers can be found in the code, you only have to read it. EditorAPI.getOpenEditors() can trigger partOpened events for certain EditorParts that are not loaded yet, i.e all those editor tabs in the Eclipse IDE after a restart which have not manually activated yet.
These editors are inserted into the EditorPool. As this will "miss" some editors (those that are already loaded) we will fire manually partOpened events for the remaining editors so that they will be inserted into the EditorPool. All this logic may trigger EditorActivities which will be discarded anyway in the activity handler. On 27.08.2015 21:57, David Damm wrote: > Hi, > > I'm trying to understand the functionality of the projectAdded function in > the EditorManager. > > 1. Do the openPart-events trigger EditorActivies? > > 2. What are these "editorsOpenedByRestoring" ? Does this set contains all > editors that are restored by the EditorAPI.getOpenEditors() function? > > 3. Why do we open some editors twice? > > > > Regards, > David > > > ------------------------------------------------------------------------------ > _______________________________________________ > DPP-Devel mailing list > DPP-Devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dpp-devel ------------------------------------------------------------------------------ _______________________________________________ DPP-Devel mailing list DPP-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dpp-devel