2.6 XecliP Java EditorFor the XecliP-plug-in the XecliP Java editor is the default editor to edit Java documents. If you are not in a XP-session you will not notice any difference to the ordinary Java editor of Eclipse. The editor provides all specialized features the Eclipse user knows from the Java editor, amongst others:
After initializing a pair programming session (SessionDefinitionDialog), it is important to use the XecliP Java editor. If the driver opens a new Java file, which is part of the shared project of the session, the same file is opened in the XecliP Java editor at the other XP-partners; on navigator or visitor side. The most common way to invoke the XecliP Java editor is to open a Java file from the Navigator or Package Explorer using pop-up menus or by selecting a Java file. While the opening of the editor is in process at the XP-partners side, the driver sees a progress monitor, which will disappear when the editor is open at all XP-partners. While the pair programming session is running, all changes made on the driver side will appear on the XP-partner side. If the role of the XP-partner (driver - naviagtor) changes (SwitchRole) the new driver get the control to edit the files. At the moment the following events are supported by the XecliP Java editor:
Screen example: On this screenshot you can see on the top the view of the navigator and at the bottem the view of the driver Keep in mind: If the driver choose a different editor for opening a Java file, while a session is running, the file will not be opened on the XP-partner side. At the moment the plug-in Java editor only supports Java files. So if you open a file of a different format, you can not share it within a pair programming session. Source consistence:To keep the Java sources consistent, it is not recommended to make a checkout or check in to CVS or other version management system during a session. After the session is closed either the driver or the navigator should check in the changed java documents. The other XP-partners should only update the project data if needed. |