I want to get the DiagramTypeProvider for a diagram. After some searching I found that the EmfService has a method called getDTPForDiagram(Diagram), exactly what I need.
However, to access this EmfService I have to go to the class GraphitiInternal. Of course I get a "discouraged access" warning. Is there a reason for making this class internal?
Watch out: EmfService implements the IEmfService interface, but there are two IEmfService interfaces. One in the internal package, and one in the visible ui package.