Bug 479060 - Refactoring Support: Extract method/function feature for single JavaScript file
Summary: Refactoring Support: Extract method/function feature for single JavaScript file
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-05 12:37 EDT by Stefan Eidelloth CLA
Modified: 2015-10-05 13:22 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Eidelloth CLA 2015-10-05 12:37:46 EDT
I would like to be able mark a code region and extract it as JavaScript function,
similar to the function extraction for Java or similar to the function extraction feature for JavaScript in WebStorm. There are old bug tickets that address the extraction of functions (e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=222557). Therefore this feature may already have existed in an old version of Eclipse? I currently use a fresh download of

Eclipse Java EE IDE for Web Developers.
Version: Mars Release (4.5.0)
Build id: 20150621-1200
Comment 1 Stefan Eidelloth CLA 2015-10-05 13:22:36 EDT
The extract function feature seems to be disabled if I open a single JavaScript file. If the file is included in a JavaScript projekt the feature is active and works fine.