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 14281 Details for
Bug 72946
Refactoring context menu does not show inline action on local variables [refactoring] [inline temp]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Method Body
Body.txt (text/plain), 1.45 KB, created by
Tobias Widmer
on 2004-08-31 06:56:26 EDT
(
hide
)
Description:
Method Body
Filename:
MIME Type:
Creator:
Tobias Widmer
Created:
2004-08-31 06:56:26 EDT
Size:
1.45 KB
patch
obsolete
> > private void createAbstractMethodInTargetClass(IMethod sourceMethod, CompilationUnit declaringCuNode, TypeDeclaration targetClass, TypeVariableMaplet[] mapping, ASTRewrite rewrite, IProgressMonitor pm, RefactoringStatus status) throws JavaModelException { > MethodDeclaration methodDeclaration= ASTNodeSearchUtil.getMethodDeclarationNode(sourceMethod, declaringCuNode); > AST ast= rewrite.getAST(); > MethodDeclaration newMethod= ast.newMethodDeclaration(); > newMethod.setBody(null); > newMethod.setConstructor(false); > newMethod.setExtraDimensions(methodDeclaration.getExtraDimensions()); > newMethod.setJavadoc(null); > newMethod.modifiers().addAll(ASTNodeFactory.newModifiers(ast, createModifiersForAbstractDeclaration(sourceMethod, pm, status))); > newMethod.setName(createCopyOfSimpleName(methodDeclaration.getName(), ast)); > copyReturnType(rewrite, getDeclaringCU(), methodDeclaration, newMethod, mapping); > copyParameters(rewrite, getDeclaringCU(), methodDeclaration, newMethod, mapping); > copyThrownExceptions(methodDeclaration, newMethod); > ListRewrite list= rewrite.getListRewrite(targetClass, > TypeDeclaration.BODY_DECLARATIONS_PROPERTY); > list.insertAt(newMethod, ASTNodes.getInsertionIndex(newMethod, > targetClass.bodyDeclarations()), null); > > // rewrite.getListRewrite(targetClass, TypeDeclaration.BODY_DECLARATIONS_PROPERTY).insertAt(newMethod, ASTNodes.getInsertionIndex(newMethod, targetClass.bodyDeclarations()), null); > }
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 72946
: 14281