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 3295 Details for
Bug 30946
Deadlock in code parser
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
source that causes the walkback
30946.txt (text/plain), 1.69 KB, created by
Martin Aeschlimann
on 2003-02-05 06:23:49 EST
(
hide
)
Description:
source that causes the walkback
Filename:
MIME Type:
Creator:
Martin Aeschlimann
Created:
2003-02-05 06:23:49 EST
Size:
1.69 KB
patch
obsolete
>private class A { > private void getUnWrapProposals(ICorrectionContext context, List resultingCollections) throws CoreException { > ASTNode node= context.getCoveringNode(); > if (node == null) { > return; > } > > ASTRewrite rewrite= new ASTRewrite(context.getASTRoot()); > > Statement statement= ASTResolving.findParentStatement(node); > if (statement != null) { > ASTNode inner= null; > if (statement.getNodeType() == ASTNode.BLOCK) { > int parentType= statement.getParent().getNodeType(); > if () > > > > if (dd) > > > } > > > > switch (statement.getNodeType()) { > case ASTNode.IF_STATEMENT: > IfStatement ifStatement= (IfStatement) statement; > if (ifStatement.getElseStatement() != null) { > return; > } > inner= getCopyOfInner(rewrite, ifStatement.getThenStatement()); > break; > case ASTNode.WHILE_STATEMENT: > inner= getCopyOfInner(rewrite, ((WhileStatement) statement).getBody()); > break; > case ASTNode.FOR_STATEMENT: > inner= getCopyOfInner(rewrite, ((ForStatement) statement).getBody()); > break; > case ASTNode.DO_STATEMENT: > inner= getCopyOfInner(rewrite, ((DoStatement) statement).getBody()); > break; > } > if (inner != null) { > rewrite.markAsReplaced(statement, inner); > String label= CorrectionMessages.getString("QuickAssistProcessor.extrude.description"); //$NON-NLS-1$ > Image image= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_EXCEPTION); > ASTRewriteCorrectionProposal proposal= new ASTRewriteCorrectionProposal(label, context.getCompilationUnit(), rewrite, 1, image); > proposal.ensureNoModifications(); > resultingCollections.add(proposal); > } > } > } >}
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 Raw
Actions:
View
Attachments on
bug 30946
: 3295