Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 35791 Details for
Bug 130574
Add option to record unknown feature when load EMF resource
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch to FacadeResourceImpl.java file
130574_org.eclipse.hyades.models.common.facades.behavioral.impl.FacadeResourceImpl.txt (text/plain), 1.78 KB, created by
Bianca Jiang
on 2006-03-06 17:24:57 EST
(
hide
)
Description:
patch to FacadeResourceImpl.java file
Filename:
MIME Type:
Creator:
Bianca Jiang
Created:
2006-03-06 17:24:57 EST
Size:
1.78 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.tptp.platform.models >Index: src-test/org/eclipse/hyades/models/common/facades/behavioral/impl/FacadeResourceImpl.java >=================================================================== >RCS file: /home/tptp/platform/org.eclipse.tptp.platform.models/src-test/org/eclipse/hyades/models/common/facades/behavioral/impl/FacadeResourceImpl.java,v >retrieving revision 1.6 >diff -u -r1.6 FacadeResourceImpl.java >--- src-test/org/eclipse/hyades/models/common/facades/behavioral/impl/FacadeResourceImpl.java 8 Feb 2006 19:56:40 -0000 1.6 >+++ src-test/org/eclipse/hyades/models/common/facades/behavioral/impl/FacadeResourceImpl.java 6 Mar 2006 22:25:55 -0000 >@@ -19,6 +19,7 @@ > import java.io.IOException; > import java.io.InputStream; > import java.io.OutputStream; >+import java.util.HashMap; > import java.util.Map; > import java.util.zip.CRC32; > import java.util.zip.ZipEntry; >@@ -28,6 +29,7 @@ > import org.eclipse.emf.common.util.URI; > import org.eclipse.emf.ecore.EObject; > import org.eclipse.emf.ecore.util.EcoreUtil; >+import org.eclipse.emf.ecore.xmi.XMLResource; > import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl; > import org.eclipse.hyades.models.common.fragments.Common_Behavior_FragmentsPackage; > import org.eclipse.hyades.models.common.testprofile.Common_TestprofilePackage; >@@ -111,6 +113,12 @@ > * @see org.eclipse.emf.ecore.resource.impl.ResourceImpl#doLoad(java.io.InputStream, java.util.Map) > */ > public void doLoad(InputStream inputStream, Map options) throws IOException { >+ >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=130574 >+ if(options == null) >+ options = new HashMap(); >+ options.put(XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE); >+ > /* try { > if ( inputStream.available() == 0 ) > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 130574
: 35791 |
35792