Package org.eclipse.emf.ecore

Examples of org.eclipse.emf.ecore.EObject.eSet()


            File outF = new File(outDir, "img_"+(imageCount++)+"."+suffix);
            outDir.mkdirs();
            FileOutputStream out = new FileOutputStream(outF);
            out.write(b);
            out.close();
            o.eSet(f, "@" + outDir.getName() + "/" + outF.getName());
          } catch (FileNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
          } catch (IOException e) {
            // TODO Auto-generated catch block
View Full Code Here


      EObject eo = it.next();
      for( EStructuralFeature f : eo.eClass().getEAllStructuralFeatures() ) {
        Object val = eo.eGet(f);
        if( val instanceof String ) {
//          System.err.println("REPLACING: " + f + " val: " + val);
          eo.eSet(f,StrSubstitutor.replace(val, additionalData));
        }
      }
    }
   
    System.err.println("ADDITIONAL: " + additionalData);
View Full Code Here

          int refIndex = refList.indexOf(oldEObject);
          if (refIndex != -1) refList.set(refIndex, newEObject);
        }
        else
        {
          referencingEObject.eSet(eStructuralFeature, newEObject);
        }
      }
    }
  }
 
View Full Code Here

            }
          }
         
          if( attribute != null ) {
            if( attribute.getEType().getInstanceClass() == int.class ) {
              eo.eSet(attribute, ((Number)event.newValue).intValue());
            } else {
              eo.eSet(attribute, event.newValue);
            }
          }
        } finally {
View Full Code Here

         
          if( attribute != null ) {
            if( attribute.getEType().getInstanceClass() == int.class ) {
              eo.eSet(attribute, ((Number)event.newValue).intValue());
            } else {
              eo.eSet(attribute, event.newValue);
            }
          }
        } finally {
          uiModification.remove(element);
        }
View Full Code Here

        {
          ((List)oldContainer.eGet(oldContainmentReference)).add(oldContainmentIndex, rootObject);
        }
        else
        {
          oldContainer.eSet(oldContainmentReference, rootObject);
        }
      }
    }
    else if (documentRoot != null)
    {
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.