Examples of PrefixId


Examples of de.itemis.tooling.xturtle.xturtle.PrefixId

          acceptor.accept(issue, "add prefix "+linkText, "adds prefix "+linkText+"with namespace URI\n"+uri, null, new ISemanticModification() {
           
            public void apply(EObject element, IModificationContext context)
                throws Exception {
              DirectiveBlock block = (DirectiveBlock)EcoreUtil2.getRootContainer(element);
              PrefixId id = XturtleFactory.eINSTANCE.createPrefixId();
              id.setId(linkText);
              id.setUri(uri);
              if(block.getDirectives()==null){
                block.setDirectives(XturtleFactory.eINSTANCE.createDirectives());
              }
              block.getDirectives().getDirective().add(id);
            }
View Full Code Here

Examples of de.itemis.tooling.xturtle.xturtle.PrefixId

        Set<String> prefixes=new HashSet<String>();
        Iterator<PrefixId> iterator= list.iterator();
        //only the last occurence of a prefix can be linked
        //not removing them would show them in content assist nonetheless
        while(iterator.hasNext()){
          PrefixId id = iterator.next();
          if(prefixes.contains(id.getId())){
            iterator.remove();
          }else{
            prefixes.add(id.getId());
          }
        }
        return list;
      }
    });
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.