[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.tmf] Problem: different languages are using the same packages in different projects!

Hi,

If I call (as suggested by the wizard and
enforced by warnings in the wizard) my project:
  org.xtext.example.mydsl
and the language
  org.xtext.example.MyDsl
then it puts stuff into the package
  org.xtext.example
which is against the java plugin conventions.

The wizard complains if I call my project:
  org.xtext.example.mydsl
and the language (note the .mydsl.)
  org.xtext.example.mydsl.MyDsl

But this setting use packages as I would
expect it (that is: the all used packages
would start with org.xtext.example.mydsl)

The three examples
  org.eclipse.xtext.example.domainmodel
  org.eclipse.xtext.example.ecoredsl
  org.eclipse.xtext.example.fowlerdsl
all create packages with the same name
  org.eclipse.xtext.example
  org.eclipse.xtext.example.parser.antlr
  org.eclipse.xtext.example.services

Is this intentional? I would consider putting
classes into the same packages from different
plugins a bad idea... E.g. OSGI package imports
does get confused if multiple project use the
same package.


Michael -- Michael Scharf Wind River Systems GmbH http://www.WindRiver.com http://MichaelScharf.blogspot.com/