ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Naming-Problem on Imported and Domain-Model Classes #267

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a Domain Model with a class called "Function" (in ecore)
2. Write the class in the Spray DSL
3. Check the classes

What is the expected output? 
All classes are generated correctly and are compilable.

What do you see instead?
The DirectEditBaseClass for the Function class is not compilable, because there 
are following imports:
import com.google.common.base.Function;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.features.context.IDirectEditingContext;
import org.eclipse.graphiti.mm.pictograms.PictogramElement;
import org.eclipse.graphiti.mm.algorithms.GraphicsAlgorithm;
import org.eclipse.graphiti.mm.algorithms.Text;
import org.eclipse.graphiti.services.Graphiti;
import org.eclipse.graphiti.services.IPeService;
import 
org.eclipselabs.spray.runtime.graphiti.features.AbstractDirectEditingFeature;
import EpkDSL.Function;

The function class name is been imported twice.

A possible solution could be, to not use the import for the DomainModel classes 
but always the fully qualified name. 

Original issue reported on code.google.com by fabio.filippelli on 19 May 2013 at 2:11

GoogleCodeExporter commented 8 years ago

Original comment by fabio.filippelli on 19 May 2013 at 10:14

GoogleCodeExporter commented 8 years ago
This issue was closed by revision e518f194ffa8.

Original comment by fabio.filippelli on 19 May 2013 at 10:34

GoogleCodeExporter commented 8 years ago
This issue was closed by revision e6b0de7674d2.

Original comment by fabio.filippelli on 19 May 2013 at 10:39

GoogleCodeExporter commented 8 years ago
This issue was closed by revision e518f194ffa8.

Original comment by fabio.filippelli on 5 Jun 2013 at 8:23

GoogleCodeExporter commented 8 years ago
This issue was closed by revision e6b0de7674d2.

Original comment by fabio.filippelli on 5 Jun 2013 at 8:23