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 18237 Details for
Bug 72258
[model] Should be able to dynamicaly set the size of Java model cache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to apply on org.elipse.jdt.core v_538
org.eclipse.jdt.core_patch72258.txt (text/plain), 2.20 KB, created by
Jerome Lanneluc
on 2005-02-23 10:52:54 EST
(
hide
)
Description:
Patch to apply on org.elipse.jdt.core v_538
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-02-23 10:52:54 EST
Size:
2.20 KB
patch
obsolete
>Index: model/org/eclipse/jdt/internal/core/JavaModelOperation.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/JavaModelOperation.java,v >retrieving revision 1.55 >diff -u -r1.55 JavaModelOperation.java >--- model/org/eclipse/jdt/internal/core/JavaModelOperation.java 23 Feb 2005 02:47:29 -0000 1.55 >+++ model/org/eclipse/jdt/internal/core/JavaModelOperation.java 23 Feb 2005 15:42:35 -0000 >@@ -729,7 +729,12 @@ > if (!(openable instanceof CompilationUnit) || !((CompilationUnit) openable).isWorkingCopy()) { // a working copy must remain a child of its parent even after a move > ((JavaElement) openable.getParent()).close(); > } >- ((JavaProject) element.getJavaProject()).resetCaches(); >+ switch (element.getElementType()) { >+ case IJavaElement.PACKAGE_FRAGMENT_ROOT: >+ case IJavaElement.PACKAGE_FRAGMENT: >+ ((JavaProject) element.getJavaProject()).resetCaches(); >+ break; >+ } > } > > // fire only iff: >Index: model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java,v >retrieving revision 1.109 >diff -u -r1.109 PackageFragmentRoot.java >--- model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java 23 Feb 2005 02:47:29 -0000 1.109 >+++ model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java 23 Feb 2005 15:42:36 -0000 >@@ -534,7 +534,15 @@ > * @see IPackageFragmentRoot > */ > public int getKind() throws JavaModelException { >- return ((PackageFragmentRootInfo)getElementInfo()).getRootKind(); >+ // avoid populating the Java model >+ JavaModelManager manager = JavaModelManager.getJavaModelManager(); >+ PackageFragmentRootInfo info = (PackageFragmentRootInfo) manager.getInfo(this); >+ if (info != null) >+ return info.getRootKind(); >+ IClasspathEntry entry = getRawClasspathEntry(); >+ if (entry != null) >+ return entry.getContentKind(); >+ throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.ELEMENT_NOT_ON_CLASSPATH, this)); > } > > /**
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 72258
:
18104
| 18237 |
18239
|
18249