Class XMIDirtyResource

  • All Implemented Interfaces:
    org.eclipse.xtext.ui.editor.IDirtyResource

    public class XMIDirtyResource
    extends Object
    implements org.eclipse.xtext.ui.editor.IDirtyResource
    This class is initially copied from org.eclipse.xtext.gmf.glue.concurrency.SimpleDirtyResource and adopted to work on XMIResources instead of XtextResources
    • Constructor Detail

      • XMIDirtyResource

        public XMIDirtyResource​(XMIResource resource,
                                org.eclipse.xtext.resource.IResourceServiceProvider resourceServiceProvider)
    • Method Detail

      • getContents

        public String getContents()
        Specified by:
        getContents in interface org.eclipse.xtext.ui.editor.IDirtyResource
      • getActualContents

        public String getActualContents()
        Specified by:
        getActualContents in interface org.eclipse.xtext.ui.editor.IDirtyResource
      • getDescription

        public org.eclipse.xtext.resource.IResourceDescription getDescription()
        Specified by:
        getDescription in interface org.eclipse.xtext.ui.editor.IDirtyResource
      • getURI

        public URI getURI()
        Specified by:
        getURI in interface org.eclipse.xtext.ui.editor.IDirtyResource
      • getResource

        public Resource getResource()