Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
zapa
Post subject: Why do snippet templates create new lines  PostPosted: Dec 24, 2005 - 03:47 AM
Registered Member
Registered Member


Joined: Sep 21, 2005
Posts: 19

I have just created a new snippet template . As i drag and drop or double click on it , the code gets inserted and each line seems to have a new line at the end . this is VERY annoying , is there a way i can fix this or is this a bug ?

( I did copy paste that thing , so maybe i need to write all the code in by hand to get no new lines ? I'll try that , but this is still anoying )

edit : tried simply typing , same result . this preety much nullifies the usefullness of the snippets as it requires more editing to get rid of the new lines ( keeping things tight together , when they are related is great for reading code faster )

template :


<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>

<class name="${name}" table="${table}">
<meta attribute="class-description">
${descr}
@author ${auth}
</meta>

<id name="id" type="int" column="${idname}_ID">
<meta attribute="scope-set">public</meta>
<generator class="native"/>
</id>

</class>

</hibernate-mapping>

result :

<?xml version="1.0"?>

<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"

"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">



<hibernate-mapping>



<class name="" table="">

<meta attribute="class-description">



@author Bob

</meta>



<id name="id" type="int" column="_ID">

<meta attribute="scope-set">public</meta>

<generator class="native"/>

</id>



</class>



</hibernate-mapping>
 
 View user's profile Send private message  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Dec 26, 2005 - 05:40 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6799

Thanks for bringing this to our attention. We've entered a bug report for further investigation into both workarounds and fixes. In the interim, we apologize for the inconvenience this is causing in your development.

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
zapa
Post subject:   PostPosted: Jan 03, 2006 - 05:16 PM
Registered Member
Registered Member


Joined: Sep 21, 2005
Posts: 19

Thanks a lot

Is there anywhere I can track this fix myself , or should I just wait for a new release ?
 
 View user's profile Send private message  
Reply with quote Back to top
zapa
Post subject:   PostPosted: Jan 06, 2006 - 10:55 PM
Registered Member
Registered Member


Joined: Sep 21, 2005
Posts: 19

nothing ?

also another sugestion , feaure request . I think it would be nothing but smart , if you've done the work to have the snippets where they are , available for drag and drop and double click , to also allow the user to set a "keyword" just like IDEA so that one could bring in a snippet in the code by not using the mouse and simply typing the coresponding snippet key word , pressing alt+space or something , and getting the snippet in the code .


u know what i mean ?
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits