diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_member.png b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_member.png deleted file mode 100644 index 7c594e1600f..00000000000 Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_member.png and /dev/null differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection.png b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection.png old mode 100644 new mode 100755 index 5b1c394d3c3..5f68cbc0aee Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection.png and b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection2.png b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection2.png new file mode 100755 index 00000000000..1831f1f276d Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection2.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection3.png b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection3.png new file mode 100755 index 00000000000..00a6913dedd Binary files /dev/null and b/doc/org.eclipse.cdt.doc.user/images/cdt_t_toggle_selection3.png differ diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_toggle.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_toggle.htm old mode 100644 new mode 100755 index 1571d6a35df..a62fd373ff8 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_toggle.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_toggle.htm @@ -1,36 +1,43 @@ - Toggle Function Definition Refactoring - - -

Toggle Function Definition

- -

Toggle Function Definition moves a function definition inside an C/C++ source editor from one -position to another and preserves correctness.

- -

Toggling is available whenever the cursor is inside a function declaration -or definition. Any selection between the first and the last character of -the function definition (without comments) is considered valid for toggling.

-

Selection
Valid selection region

- -

Toggle free functions

-

The refactoring moves free functions from an implementation file to a header file with the same name and back. - If the header file does not exist the file is created.

- -

Toggle member functions

-

The function definition of a member function can by moved from the class declaration in the header file to an inline definition - in the header file to the implementation file and back to the class definition.

-

Toggle Member Function Definition

- -IBM Copyright Statement - -
- +
+

Toggle Function Definition

+

+ Use the Refactor > Toggle Function Definition + command to toggle the location where a function is defined. +

+

+ In an Editor window, place the cursor inside a function declaration + or definition, then run Refactor > Toggle + Function Definition from the context menu. Any cursor position + between the first and the last characters of the function definition + (but not including comments preceding the function) will cause that + function to be selected for the refactoring. +

+

+ +

+

This refactoring switches a function definition from a header + file to a correspondingly-named implementation file. If the necessary + file does not exist, it will be created (after a confirmation + dialog).

+

+ +

+

For methods, it can also switch the method from being defined + within its parent class declaration to being defined using an inline + definition in the same header file.

+

+ +

+ IBM Copyright Statement +
+