[jbosstools-issues] [JBoss JIRA] (JBIDE-21791) Forge addon - Changing the current file may cause a "file has changed in file vs memory" issue in Eclipse

George Gastaldi (JIRA) issues at jboss.org
Wed Mar 2 11:05:00 EST 2016


    [ https://issues.jboss.org/browse/JBIDE-21791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13170924#comment-13170924 ] 

George Gastaldi edited comment on JBIDE-21791 at 3/2/16 11:04 AM:
------------------------------------------------------------------

Ok, I appreciate your feedback although I don't fully agree with your argument of this proposed solution being very crappy :)

If I understand correctly, that would require changing the Forge Resource API to fire an event before a Resource is read. Then we could bind a listener to save the file to the disk before it is read.  But I am not sure it is worth investing time in implementing this given that the benefit is minimal compared to the proposed solution IMHO.


was (Author: gastaldi):
Ok, I appreciate your feedback although I don't fully agree with your argument of this proposed solution being very crappy :)

If I understand correctly, that would require changing the Forge Resource API to fire an event before a Resource is read. Then we could bind a listener to save the file to the disk before it is read.  

> Forge addon - Changing the current file may cause a "file has changed in file vs memory" issue in Eclipse
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-21791
>                 URL: https://issues.jboss.org/browse/JBIDE-21791
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: forge
>    Affects Versions: 4.3.1.Beta2
>            Reporter: Claus Ibsen
>            Assignee: George Gastaldi
>             Fix For: 4.3.1.CR1
>
>         Attachments: eclipse-add.png
>
>
> Similar problem as FORGE-2605 but this time its in Eclipse.
> See the attached screenshot, where I have edited the file camel-context.xml, and then run my forge command, which would insert a Camel endpoint at the cursor position. But eclipse has detected a file conflict as in that dialog.
> I wonder if the fix should be like in IDEA to save the file before the command is run.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list