Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [soc-dev] [GSoC] Templates weekly report

Hi,

This is the weekly report for the Templates project.

What the plan for next week is:

  • I'll start looking into bug [1] and change-set [2] and see how to integrate the Xtext editor into an Eclipse Forms Editor.

What has been accomplished:

  • I made some changes to the way the editor is marked dirty or not.
    • Each editor page now contains an AbstractPageForm that will be marked dirty when changes occur in the page.
      This will also mark the whole editor as dirty.
    • The doSave() method of the editor (which performs the save action) will now call the save method for each of the editor pages (page.doSave()).
      By doing so, it will remove the dirty state from each of the AbstractPageForms in the editor pages. After this, a call to editorDirtyStateChanged() method will tell the editor that it's dirty state changed, and remove the dirty mark (*) from it.
      This implementation is also explained in the forum discussion at [3].

Here's a screen shot of how the multipage editor looks with the Xtext editor extension. Note that the change-set is not merged yet.



What the plan is for next week

  • I will continue working on this change set, and prepare the extension page from the Templates project side [4] to be ready for merge.
    Hopefully both the change-sets will be merged this week.
  • I will start working on completion proposals for the template editor (See bug [5]) .
    For now, the list of proposals will only include the template variable keywords. i.e., if code completion is triggered in the context of a template variable like this: ${v:<ctrl-space>} the list will contain variable keywords like newName, newType, var, argType, etc.


Best Regards,

Stefan.


[1]: <https://bugs.eclipse.org/bugs/show_bug.cgi?id=436692>
[2]: <https://git.eclipse.org/r/#/c/28441/>

[3]: < http://www.eclipse.org/forums/index.php/t/96716/ >

[4]: < https://git.eclipse.org/r/#/c/28442/ >

[5]: < https://bugs.eclipse.org/bugs/show_bug.cgi?id=424256 >


Back to the top