[jbosstools-issues] [JBoss JIRA] (JBIDE-18524) Avoid using multiple IDocuments when opening an FTL file

Max Rydahl Andersen (JIRA) issues at jboss.org
Thu Feb 12 15:57:49 EST 2015


     [ https://issues.jboss.org/browse/JBIDE-18524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen reassigned JBIDE-18524:
-------------------------------------------

    Assignee: Denis Golovin  (was: Peter Palaga)


> Avoid using multiple IDocuments when opening an FTL file
> --------------------------------------------------------
>
>                 Key: JBIDE-18524
>                 URL: https://issues.jboss.org/browse/JBIDE-18524
>             Project: Tools (JBoss Tools)
>          Issue Type: Task
>          Components: freemarker
>    Affects Versions: 4.2.0.CR2
>            Reporter: Peter Palaga
>            Assignee: Denis Golovin
>            Priority: Minor
>             Fix For: 4.2.3.Beta1, 4.3.0.Alpha2
>
>
> This is a matter of effectiveness and getting in line with what is usual in other plugins: 
> (1) In the FreeMarker {{Editor}} constructor, we currently create a per-{{Editor}} instance of {{DocumentProvider}}. {{Editor}}s should rather use a single  {{DocumentProvider}} hosted in {{Plugin}}. This is how it is done in many other editors, see e.g. {{AntEditor.initializeEditor()}}, {{PropertiesFileEditor.initializeEditor()}}, {{ClassFileEditor()}}, etc.
> (2) {{Editor.init(IEditorSite, IEditorInput)}} is called twice from {{FreemarkerMultiPageEditor}} when opening an FTL file. This causes e.g.  partitioning twice. Steps to verify: put a breakpoint on {{AbstractTextEditor.init(IEditorSite, IEditorInput)}} and open an FTL file. NOT OK: the breakpoint gets hit twice, ECPECTED: the breakpoint should be visited once only.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jbosstools-issues mailing list