Package org.eclipse.emf.common.util

Examples of org.eclipse.emf.common.util.WrappedException


          TmpFileStoreEditorInput.UNTITLED_PROPERTY);
      }
      catch(CoreException e) {
        // Don't know what to do here - this is really bad, but doSave does not expect
        // any errors.
        throw new WrappedException(e);
      }
      if(val != null && "true".equals(val)) {
        doSaveAs();
        return;
      }
View Full Code Here


        createLink(project, linkFile, uri);
      }
      return linkFile;
    }
    catch(CoreException e) {
      throw new WrappedException(e);
    }
  }
View Full Code Here

    }
   
    try {
      loader.load(idlFile);
    } catch (Exception e) {
      throw new WrappedException(e);
    }
   
    ctx.put(modelSlot, loader.getResource().getContents());
  }
View Full Code Here

    Resource resource = new EcoreResourceFactoryImpl().createResource(uri);
    try {
      resource.load(null);
    }
    catch (IOException exception) {
      throw new WrappedException(exception);
    }
    initializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));
    createResource(eNS_URI);
  }
View Full Code Here

    Resource resource = new EcoreResourceFactoryImpl().createResource(uri);
    try {
      resource.load(null);
    }
    catch (IOException exception) {
      throw new WrappedException(exception);
    }
    initializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));
    createResource(eNS_URI);
  }
View Full Code Here

    Resource resource = new EcoreResourceFactoryImpl().createResource(uri);
    try {
      resource.load(null);
    }
    catch (IOException exception) {
      throw new WrappedException(exception);
    }
    initializeFromLoadedEPackage(this, (EPackage)resource.getContents().get(0));
    createResource(eNS_URI);
  }
View Full Code Here

            try {
                serializer.marshall(ExtensibleElement.class,qname,extensibilityElement,fragment,process,extensionRegistry);
              Element child = (Element)fragment.getFirstChild();
              serviceRefElement.appendChild(child);
            } catch (WSDLException e) {
              throw new WrappedException(e);
            }
          }
        } else {
          ServiceReferenceSerializer serializer = extensionRegistry.getServiceReferenceSerializer(referenceScheme);
          if (serializer != null) {
View Full Code Here

        try {
            serializer.marshall(ExtensibleElement.class,qname,extensibilityElement,fragment,process,extensionRegistry);
          Element child = (Element)fragment.getFirstChild();
          expressionElement.appendChild(child);
        } catch (WSDLException e) {
          throw new WrappedException(e);
        }
       
      } else {
        CDATASection cdata = BPELUtils.createCDATASection(document, expression.getBody().toString());
        expressionElement.appendChild(cdata);
View Full Code Here

       
        // Serialize the extensibility element into the parent DOM element
        try {
          serializer.marshall(ExtensibleElement.class,qname,extensibilityElement,fragment,process,extensionRegistry);
        } catch (WSDLException e) {
          throw new WrappedException(e);
        }
       
        Node tempElement=(Element)fragment.getFirstChild();
        String nodeName=tempElement.getNodeName();
        nodeName=nodeName.substring(nodeName.lastIndexOf(':')+1);
View Full Code Here

    DocumentFragment fragment=document.createDocumentFragment();
    try {
      serializer.marshall(ExtensibleElement.class,qname,extensibilityElement,fragment,process,extensionRegistry);
      return (Element)fragment.getFirstChild();
    } catch (WSDLException e) {
      throw new WrappedException(e);
    }
  } 
View Full Code Here

TOP

Related Classes of org.eclipse.emf.common.util.WrappedException

Copyright © 2018 www.massapicom. 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.