Re: many classes in one file

31 views
Skip to first unread message

Sven Efftinge

unread,
Apr 16, 2013, 8:01:43 AM4/16/13
to xtend...@googlegroups.com
Those mentioned problems are going to be solved individually.
We won't forbid having multiple classes per file.

On Apr 16, 2013, at 12:34 PM, mvida...@gmail.com wrote:

Hello

Thanks for this great work.

I've seen that it's possible to define many classes in a single file (compilation unit) with an independent name.

This behavior has many problem :

      https://bugs.eclipse.org/bugs/show_bug.cgi?id=384008
      https://bugs.eclipse.org/bugs/show_bug.cgi?id=403250
...
     JavaFileNotFoundException when renaming something inside such a file

...

My question is : what will be the correction about this ability ? Keep this behavior to have many classes in an xtend file ? or Restore the "compilation unit" synchronisation with the only class exposed ?

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sebastian Zarnekow

unread,
Apr 16, 2013, 8:05:51 AM4/16/13
to xtend...@googlegroups.com
Could you please file a ticket for the "JavaFileNotFoundException when renaming something inside such a file".

Thanks in advance,
Sebastian

matthieu VIDAL

unread,
Apr 16, 2013, 10:19:05 AM4/16/13
to xtend...@googlegroups.com
Thanks for your answer. I really like the idea.

About FileNotFoundException ... my fault ... I concluded too quickly

The problem occurred with @FXBean annotation (from XTendFX).


!ENTRY org.apache.log4j 4 0 2013-04-16 15:54:11.565
!MESSAGE org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler  - Error initializing refactoring
!STACK 0
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException:  (Aucun fichier ou dossier de ce type)
        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319)
        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278)
        at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:167)
        at org.eclipse.xtext.resource.SynchronizedXtextResourceSet.getResource(SynchronizedXtextResourceSet.java:26)
        at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:220)
        at org.eclipse.xtext.ui.refactoring.impl.RenamedElementTracker.resolveRenamedElements(RenamedElementTracker.java:46)
        at org.eclipse.xtext.ui.refactoring.impl.RenamedElementTracker.renameAndTrack(RenamedElementTracker.java:33)
....
 

I have to learn active annotation, so I'll tell you then open the bug.

Thanks
Reply all
Reply to author
Forward
0 new messages