Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315118 - [gmf-example] Compilation Error: Type not found (org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy)
Summary: [gmf-example] Compilation Error: Type not found (org.eclipse.gmf.runtime.diag...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-31 13:12 EDT by Darius Jockel CLA
Modified: 2017-09-19 16:17 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darius Jockel CLA 2010-05-31 13:12:44 EDT
The diagram project shows an error:
org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy cannot be resolved to a type	SimpleTypeEditPart.java	/org.eclipse.xtext.example.gmf.diagram/src/org/eclipse/xtext/example/gmf/diagram/edit/parts	line 72	Java Problem

Replace by:
 org.eclipse.gef.editpolicies.LayoutEditPolicy
solves the problem and makes the example work.
Comment 1 Jan Koehnlein CLA 2010-06-01 03:53:05 EDT
Not on my machine. Everything compiles fine as is. The code is working withGMF 2.3 RC2, which was kind of a hassle to install.

Have you installed GMF Tooling, GMF Runtime and GMF Notation completely, i.e. with all dependencies? Did you regenerate the gmfgen model or the diagram code?

AFAIR, org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy has been around since the beginnings of GMF (and still is), so it looks like a missing dependency. The GEF version is a superclass lacking some essential functionality, so this should not be a valid replacement.
Comment 2 Darius Jockel CLA 2010-06-01 05:33:45 EDT
Hello,

I use Galileo Modeling RC2. GMF is allready installed in this distribution.
Generating the diagram project 
(models project model -> Entities.gmfgen -> Contextmenu -> 'Generate diagram code)
solves the problem.

(In reply to comment #1)
> Not on my machine. Everything compiles fine as is. The code is working withGMF
> 2.3 RC2, which was kind of a hassle to install.
> 
> Have you installed GMF Tooling, GMF Runtime and GMF Notation completely, i.e.
> with all dependencies? Did you regenerate the gmfgen model or the diagram code?
> 
> AFAIR, org.eclipse.gmf.runtime.diagram.ui.editpolicies.LayoutEditPolicy has
> been around since the beginnings of GMF (and still is), so it looks like a
> missing dependency. The GEF version is a superclass lacking some essential
> functionality, so this should not be a valid replacement.
Comment 3 Jan Koehnlein CLA 2010-06-07 07:03:30 EDT
This happens when you try to run code generated with GMF 2.3 in a GMF 2.2 environment.

To get rid of the error you have to regenerate the diagram code by choosing "Generate diagram code" from the context menu of the gmfgen model. 

I added a section on this in the docs.

Closing this issue.
Comment 4 Karsten Thoms CLA 2017-09-19 16:17:48 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.