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 193917 Details for
Bug 343562
JEM needs to handle a flush better
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Keep the current Methods "valid"
bug343562.patch (text/plain), 2.66 KB, created by
Carl Anderson
on 2011-04-22 11:10:40 EDT
(
hide
)
Description:
Keep the current Methods "valid"
Filename:
MIME Type:
Creator:
Carl Anderson
Created:
2011-04-22 11:10:40 EDT
Size:
2.66 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jem >Index: mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jem/mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java,v >retrieving revision 1.5 >diff -u -r1.5 MethodImpl.java >--- mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java 27 Jan 2009 22:07:54 -0000 1.5 >+++ mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java 22 Apr 2011 15:09:25 -0000 >@@ -27,8 +27,7 @@ > import org.eclipse.emf.ecore.impl.EOperationImpl; > import org.eclipse.emf.ecore.util.*; > >-import org.eclipse.jem.internal.java.adapters.IJavaMethodAdapter; >-import org.eclipse.jem.internal.java.adapters.ReadAdaptor; >+import org.eclipse.jem.internal.java.adapters.*; > import org.eclipse.jem.java.*; > > /** >@@ -652,7 +651,13 @@ > case JavaRefPackage.METHOD__PARAMETERS: > return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); > case JavaRefPackage.METHOD__JAVA_CLASS: >- return basicSetJavaClass(null, msgs); >+ JavaClass newContainer = null; >+ ReadAdaptor readAdaptor = getReadAdapter(); >+ if (readAdaptor instanceof JavaReflectionAdaptor && otherEnd instanceof JavaClass) >+ { >+ newContainer = ((JavaReflectionAdaptor)readAdaptor).createJavaClassRef(((JavaClass)otherEnd).getJavaName()); >+ } >+ return basicSetJavaClass(newContainer, msgs); > } > return super.eInverseRemove(otherEnd, featureID, msgs); > } >#P org.eclipse.jem.workbench >Index: workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java >=================================================================== >RCS file: /cvsroot/webtools/jeetools/plugins/org.eclipse.jem.workbench/workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java,v >retrieving revision 1.12 >diff -u -r1.12 JDOMSearchHelper.java >--- workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java 14 Aug 2009 19:20:03 -0000 1.12 >+++ workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java 22 Apr 2011 15:09:27 -0000 >@@ -148,7 +148,12 @@ > return result; > } > private static boolean needsToResolveName(IType type, String simpleName, boolean isForReflection) { >- return !(type.isBinary() || (!isForReflection && simpleName.indexOf(PERIOD) > -1) || isPrimitiveOrVoid(simpleName)); >+ boolean retVal = false; >+ if (type != null) >+ { >+ retVal = !(type.isBinary() || (!isForReflection && simpleName.indexOf(PERIOD) > -1) || isPrimitiveOrVoid(simpleName)); >+ } >+ return retVal; > } > /** > * Returns the qualified name for the simple name within the scope of the type.
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 343562
: 193917