- **labels**: IntelliJ, Intellij --> Intellij


---

** [bugs:#863] Initial file template content not transferred for special cases**

**Status:** open
**Group:** OTHER
**Labels:** Intellij 
**Created:** Tue Dec 29, 2015 09:11 PM UTC by Holger Schmeisky
**Last Updated:** Fri Sep 23, 2016 09:03 AM UTC
**Owner:** Holger Schmeisky


IntelliJ can create with initial content (e.g. Java files with public class ... 
already written) based on a template engine. Unfortunately it inserts the 
content in the file before adding DocumentListeners, so we currently intercept 
them with a FileSystemChangeListener that listens for just-created files. 

So far I assumed this happens in one pass: Create the file, fill it with 
template.

Apparently sometimes there is a second pass: Create the file, fill it with 
template, remove unused lines.

The 2nd case happens for example when creating a java class in the default 
package - in the first pass it will get a package header line

package PACKAGE_NAME

in the second pass this will disappear.

I think this is a minor issue since it can be solved by InconsistencyRecovery 
and probably does not happen so often, so I'll postpone a solution here.


---

Sent from sourceforge.net because dpp-robot@lists.sourceforge.net is subscribed 
to https://sourceforge.net/p/dpp/bugs/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/dpp/admin/bugs/options.  Or, if this is a mailing 
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
_______________________________________________
DPP-Robot mailing list
DPP-Robot@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dpp-robot

Reply via email to