Examples of eResource()


Examples of at.bestsolution.efxclipse.tooling.css.cssDsl.stylesheet.eResource()

      stylesheet _xblockexpression = null;
      {
        final stylesheet model = this.parseHelper.parse(inputString);
        InMemoryFileSystemAccess _inMemoryFileSystemAccess = new InMemoryFileSystemAccess();
        final InMemoryFileSystemAccess fsa = _inMemoryFileSystemAccess;
        Resource _eResource = model.eResource();
        this.generator.doGenerate(_eResource, fsa);
        _xblockexpression = (model);
      }
      return _xblockexpression;
    } catch (Exception _e) {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.ConstValueProperty.eResource()

 
  @Override
  public void completeConstValueProperty_Field(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    if( model instanceof ConstValueProperty ) {
      ConstValueProperty constProp = (ConstValueProperty) model;
      IJavaProject javaProject = projectProvider.getJavaProject(constProp.eResource().getResourceSet());
      try {
        IType type = javaProject.findType(constProp.getType().getQualifiedName());
        List<IField> fields = new ArrayList<IField>();
        collectStaticFields(fields, type);
       
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.Element.eResource()

        }

        el = (Element) model.eContainer();
      }

      IJavaProject javaProject = projectProvider.getJavaProject(el.eResource().getResourceSet());
      IType type = javaProject.findType(el.getType().getQualifiedName());

      if (type != null) {
        IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
        if (fxClazz != null) {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.StaticCallValueProperty.eResource()

  @Override
  public void completeStaticCallValueProperty_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
    StaticCallValueProperty staticProperty = (StaticCallValueProperty) model;
   
    try {
      IJavaProject javaProject = projectProvider.getJavaProject(staticProperty.eResource().getResourceSet());
      IType type = javaProject.findType(staticProperty.getType().getQualifiedName());
     
      if (type != null) {
        IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
        if (fxClazz != null) {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.fxgraph.fXGraph.StaticValueProperty.eResource()

    if( target == null ) {
      return;
    }
   
    try {
      IJavaProject javaProject = projectProvider.getJavaProject(staticProperty.eResource().getResourceSet());
      IType type = javaProject.findType(target.getType().getQualifiedName());
     
      if (type != null) {
        IFXClass fxClazz = FXPlugin.getClassmodel().findClass(javaProject, type);
        if (fxClazz != null) {
View Full Code Here

Examples of com.github.jknack.antlr4ide.lang.Grammar.eResource()

    URI resourceURI = URI.createURI("platform:/resource/project/G.g4");
    Resource resource = createMock(Resource.class);
    expect(resource.getURI()).andReturn(resourceURI);

    Grammar grammar = createMock(Grammar.class);
    expect(grammar.eResource()).andReturn(resource);

    Rule rule = createMock(Rule.class);
    expect(rule.getName()).andReturn(ruleName);
    expect(rule.eContainer()).andReturn(grammar);
View Full Code Here

Examples of com.puppetlabs.geppetto.pp.AssignmentExpression.eResource()

    if(p == null)
      return 0; // not in an assignment

    // p is an AssignmentExpression at this point
    AssignmentExpression d = (AssignmentExpression) p;
    final String definitionFragment = d.eResource().getURIFragment(d);
    final String definitionURI = d.eResource().getURI().toString();

    int removedCount = 0;
    ListIterator<IEObjectDescription> litor = descs.listIterator();
    while(litor.hasNext()) {
View Full Code Here

Examples of de.itemis.tooling.xturtle.xturtle.Subject.eResource()

  private URI getExportedSubjectUri(EObject ref) {
    Triples triples = EcoreUtil2.getContainerOfType(ref, Triples.class);
    if(triples!=null){
      Subject subject = triples.getSubject();
      if(subject instanceof Resource){
        org.eclipse.emf.ecore.resource.Resource res = subject.eResource();
        return res.getURI().appendFragment(res.getURIFragment(subject));
      }
    }
    return null;
  }
View Full Code Here

Examples of de.sebastianbenz.task.query.Query.eResource()

    }
    Query query = queryParser.parse(currentModelToParse);
    if (query == null) {
      return new ICompletionProposal[0];
    }
    final XtextResource xtextResource = (XtextResource) query.eResource();
    final IXtextDocument xtextDocument = getDocument(xtextResource,
        currentModelToParse);

    XtextSourceViewerConfiguration configuration = configurationProvider
        .get();
View Full Code Here

Examples of eu.admire.dispel.containers.DispelFunction.eResource()

      }
    }

    //TODO IFO     

    Resource resource = modelElement.eResource();
    for (Iterator<EObject> it = getPhantomNodesIterator(resource); it
        .hasNext();) {
      EObject childElement = it.next();
      if (childElement == modelElement) {
        continue;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.