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 51569 Details for
Bug 90600
[model] CreateElementInCUOperation.apply: should use project options for rewriter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_90600.txt (text/plain), 1.64 KB, created by
Olivier Thomann
on 2006-10-06 14:47:53 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-10-06 14:47:53 EDT
Size:
1.64 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java,v >retrieving revision 1.34 >diff -u -r1.34 CreateElementInCUOperation.java >--- model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java 23 Feb 2005 02:47:29 -0000 1.34 >+++ model/org/eclipse/jdt/internal/core/CreateElementInCUOperation.java 6 Oct 2006 18:51:44 -0000 >@@ -10,6 +10,8 @@ > *******************************************************************************/ > package org.eclipse.jdt.internal.core; > >+import java.util.Map; >+ > import org.eclipse.core.resources.IResource; > import org.eclipse.core.resources.IWorkspace; > import org.eclipse.core.runtime.jobs.ISchedulingRule; >@@ -91,8 +93,8 @@ > super(null, new IJavaElement[]{parentElement}); > initializeDefaultPosition(); > } >- protected void apply(ASTRewrite rewriter, IDocument document) throws JavaModelException { >- TextEdit edits = rewriter.rewriteAST(document, null); >+ protected void apply(ASTRewrite rewriter, IDocument document, Map options) throws JavaModelException { >+ TextEdit edits = rewriter.rewriteAST(document, options); > try { > edits.apply(document); > } catch (BadLocationException e) { >@@ -182,7 +184,7 @@ > if (parent == null) > parent = this.cuAST; > insertASTNode(rewriter, parent, child); >- apply(rewriter, document); >+ apply(rewriter, document, cu.getJavaProject().getOptions(true)); > } > worked(1); > }
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 90600
: 51569