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 193836 Details for
Bug 343558
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"
jemERbug155pTry2.txt (text/plain), 2.71 KB, created by
Carl Anderson
on 2011-04-21 10:41:21 EDT
(
hide
)
Description:
Keep the current Methods "valid"
Filename:
MIME Type:
Creator:
Carl Anderson
Created:
2011-04-21 10:41:21 EDT
Size:
2.71 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#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.8 >diff -u -r1.8 JDOMSearchHelper.java >--- workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java 17 May 2006 20:13:58 -0000 1.8 >+++ workbench/org/eclipse/jem/internal/adapters/jdom/JDOMSearchHelper.java 13 Apr 2011 20:00:11 -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. >#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.2 >diff -u -r1.2 MethodImpl.java >--- mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java 15 Sep 2005 20:28:03 -0000 1.2 >+++ mofjava/org/eclipse/jem/java/internal/impl/MethodImpl.java 13 Apr 2011 20:00:11 -0000 >@@ -44,8 +44,7 @@ > import org.eclipse.jem.java.Method; > > >-import org.eclipse.jem.internal.java.adapters.IJavaMethodAdapter; >-import org.eclipse.jem.internal.java.adapters.ReadAdaptor; >+import org.eclipse.jem.internal.java.adapters.*; > > /** > * @generated >@@ -1043,7 +1042,13 @@ > case JavaRefPackage.METHOD__PARAMETERS: > return ((InternalEList)getParameters()).basicRemove(otherEnd, msgs); > case JavaRefPackage.METHOD__JAVA_CLASS: >- return eBasicSetContainer(null, JavaRefPackage.METHOD__JAVA_CLASS, msgs); >+ JavaClass newContainer = null; >+ ReadAdaptor readAdaptor = getReadAdapter(); >+ if (readAdaptor instanceof JavaReflectionAdaptor && otherEnd instanceof JavaClass) >+ { >+ newContainer = ((JavaReflectionAdaptor)readAdaptor).createJavaClassRef(((JavaClass)otherEnd).getJavaName()); >+ } >+ return eBasicSetContainer((InternalEObject)newContainer, JavaRefPackage.METHOD__JAVA_CLASS, msgs); > default: > return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); > }
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 343558
:
193836
|
197303
|
197305