Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Linux Tools Project/ChangeLog/User Guide"

m (Using the ChangeLog Plugin)
(Using the ChangeLog Plugin)
Line 17: Line 17:
 
; Author Name : The name of the Author to be included in the ChangeLog entry.
 
; Author Name : The name of the Author to be included in the ChangeLog entry.
  
; Author Email :
+
; Author Email : The email address of the Author to be included in the ChangeLog entry.
::The email address of the Author to be included in the ChangeLog entry.
+
  
''' Formatter '''
+
; Formatter : The name of the formatter module Eclipse should use for ChangeLog entries. The form of each ChangeLog entry depends on which formatter module the ChangeLog plug-in uses. The ChangeLog plug-in provides a GNU-style formatter. There is an extension point by which other plug-ins may contribute alternate formatters.
::The name of the formatter module to use for ChangeLog entries.
+
  
''' Editor '''
+
; Editor : The name of the editor module Eclipse should use for editing the ChangeLog file.
::The name of the editor module to use for opening ChangeLog file.
+
  
 
== Using the ChangeLog Plug-in ==
 
== Using the ChangeLog Plug-in ==
  
The plug-in has two functions:
+
=== ChangeLog Editor ===
  
* '''Insert ChangeLog''' is used to create a single ChangeLog entry for the current location in an editor.
+
The ChangeLog plug-in provides a special editor for ChangeLog files. This editor has syntax highlighting and provides a ''file-hyperlink'' feature. To use the ''file-hyperlink'' feature, hold the <code>'''Ctrl'''</code> key and click on any filename to open the corresponding file.
* '''Prepare ChangeLog''' is used to create the entire ChangeLog entry for all changes to the selected project. This requires access to a source control repository.
+
  
'''Insert ChangeLog'''
+
[[Image:Linuxtools-ChangeLog-editor.png]]
  
One invokes the Insert ChangeLog function by selecting '''Edit -> ChangeLog''' Entry from the menubar. It can also be invoked via the keyboard shortcut '''Ctrl+Alt+C'''.
+
You can also copy all <code>''ChangeLog''</code> file changes (since the last check-in to the repository) to the clipboard. To do so, use the key combination <code>''Ctrl''</code>+<code>''Alt''</code>+<code>''V''</code>. This is useful if you wish to use the ChangeLog entry as your comment when you perform a commit.
  
[[Image:Linuxtools-ChangeLog-insert-changelog.png]]
+
=== ChangeLog Plug-in Functions ===
  
When clicked, the ChangeLog plug-in compiles an entry, the form of which depends on which formatter is set. The plug-in provides a GNU style formatter. There is an extension point by which other plug-ins may contribute alternate formatters.
+
The ChangeLog plug-in has two functions: '''Insert ChangeLog''' and '''Prepare ChangeLog'''.  
  
'''Insert ChangeLog Entry''' will calculate the current function location in the active editor and generate the entry.
+
The first time you invoke either function for a specific project, a '''''Folder Selection''''' menu will appear. This menu will allow you to select where to save the <code>''ChangeLog''</code> file for that project.  
  
'''Prepare ChangeLog'''
+
[[Image:Screenshot-FolderSelection_changelogplugin.png]]
  
Prepare ChangeLog will generate a full ChangeLog entry based upon local changes made in your workspace compared with the source control repository. This includes new files, removed files, and modifications. One invokes this feature by selecting '''Project -> Prepare ChangeLog''' from the menubar. It can also be invoked via the keyboard shortcut '''Ctrl+Alt+P'''. It will use the selected project or find the project for the file in the active editor or synchronization view.
+
After selecting where to save the <code>''ChangeLog''</code> file, Eclipse will open it in your workspace editor. The ChangeLog plug-in will then generate an appropriate pre-compiled entry for you to edit further. You can close the <code>''ChangeLog''</code> file after saving it; when you invoke the '''Insert ChangeLog''' or '''Prepare ChangeLog''' function again, Eclipse will use the same <code>''ChangeLog''</code> file.  
  
Prepare ChangeLog will open up ChangeLog editor and insert entries. If there is no existing ChangeLog in the top-level project directory, you will be prompted for the location of one.  
+
The following sections describe both functions in more detail.
  
[[Image:Linuxtools-ChangeLog-prepare-changelog-result.png]]
+
==== Insert ChangeLog ====
  
=== ChangeLog Editor ===
+
This function generates a single ChangeLog entry for the currently selected file in the editor. To use this function, navigate to <u>Edit</u> > <u>ChangeLog Entry</u>. Alternatively, you can also use the key combination <code>'''Ctrl'''</code>+<code>'''Alt'''</code>+<code>'''C'''</code>.
  
The ChangeLog plug-in also provides a special editor for ChangeLog files. This editor has syntax highlighting and provides a file-hyperlink feature. Inside the ChangeLog editor, if you hold the Ctrl key and click on a hyperlink the corresponding file will be opened.  
+
[[Image:Linuxtools-ChangeLog-insert-changelog.png]]
  
[[Image:Linuxtools-ChangeLog-editor.png]]
+
Invoking the '''Insert ChangeLog''' function for another file in the same project will create a new ChangeLog entry for the file. If an entry already exists for a file, invoking the '''Insert ChangeLog''' function for that file will place the insertion point in the appropriate entry.  
  
If you invoke the key combination '''Ctrl+Alt+V''', the changes made to the ChangeLog file since the last check-in to the repository will be copied to the clipboard. In most cases, this is the last entry unless you have performed other edits on the file.  This is useful when you later perform a commit and wish to use the ChangeLog entry as the comment.
+
==== Prepare ChangeLog ====
 +
 
 +
This function generates a full ChangeLog entry based on the differences between the local changes you made to a project and its source control repository. As such, using this function requires access to the the source control repository of a project.
 +
 
 +
The ChangeLog entry generated by the '''Prepare ChangeLog''' function will include new files, removed files, and modifications. To invoke this function, navigate to <u>Project</u> > <u>Prepare ChangeLog</u>. Alternatively, you can also use the key combination <code>'''Ctrl'''</code>+<code>'''Alt'''</code>+<code>'''P'''</code>.
 +
 
 +
 
 +
[[Image:Linuxtools-ChangeLog-prepare-changelog-result.png]]
  
 
<p class="copyright">&#169; Copyright Red Hat, Inc. 2009
 
<p class="copyright">&#169; Copyright Red Hat, Inc. 2009
 
<br>&#169; Copyright Phil Muldoon <pkmuldoon@picobot.org> 2006.
 
<br>&#169; Copyright Phil Muldoon <pkmuldoon@picobot.org> 2006.
 
<br>This documentation is licensed under the Eclipse Public License v. 1.0.</p>
 
<br>This documentation is licensed under the Eclipse Public License v. 1.0.</p>

Revision as of 21:40, 3 June 2009

Using the ChangeLog Plugin

The ChangeLog plug-in for Eclipse is a basic set of extensions to enable ChangeLog functionality for projects in Eclipse.

Before using the plug-in, you should set the ChangeLog preferences. These preferences include the name and e-mail address you wish to use in a ChangeLog entry.

The default name and e-mail address used by the ChangeLog plug-in are your workstation username and your username@hostname information, respectively. If you set the environment variables ECLIPSE_CHANGELOG_REALNAME and/or ECLIPSE_CHANGELOG_EMAIL, the ChangeLog plug-in will use these as the default name and e-mail address instead.

ChangeLog Preferences

To configure your ChangeLog preferences, navigate to Window > Preferences and click ChangeLog. This will open the ChangeLog sub-menu.

Linuxtools-ChangeLogPreferences.png

The screenshot above displays the preferences associated with the ChangeLog plug-in. These preferences are:

Author Name 
The name of the Author to be included in the ChangeLog entry.
Author Email 
The email address of the Author to be included in the ChangeLog entry.
Formatter 
The name of the formatter module Eclipse should use for ChangeLog entries. The form of each ChangeLog entry depends on which formatter module the ChangeLog plug-in uses. The ChangeLog plug-in provides a GNU-style formatter. There is an extension point by which other plug-ins may contribute alternate formatters.
Editor 
The name of the editor module Eclipse should use for editing the ChangeLog file.

Using the ChangeLog Plug-in

ChangeLog Editor

The ChangeLog plug-in provides a special editor for ChangeLog files. This editor has syntax highlighting and provides a file-hyperlink feature. To use the file-hyperlink feature, hold the Ctrl key and click on any filename to open the corresponding file.

Linuxtools-ChangeLog-editor.png

You can also copy all ChangeLog file changes (since the last check-in to the repository) to the clipboard. To do so, use the key combination Ctrl+Alt+V. This is useful if you wish to use the ChangeLog entry as your comment when you perform a commit.

ChangeLog Plug-in Functions

The ChangeLog plug-in has two functions: Insert ChangeLog and Prepare ChangeLog.

The first time you invoke either function for a specific project, a Folder Selection menu will appear. This menu will allow you to select where to save the ChangeLog file for that project.

Screenshot-FolderSelection changelogplugin.png

After selecting where to save the ChangeLog file, Eclipse will open it in your workspace editor. The ChangeLog plug-in will then generate an appropriate pre-compiled entry for you to edit further. You can close the ChangeLog file after saving it; when you invoke the Insert ChangeLog or Prepare ChangeLog function again, Eclipse will use the same ChangeLog file.

The following sections describe both functions in more detail.

Insert ChangeLog

This function generates a single ChangeLog entry for the currently selected file in the editor. To use this function, navigate to Edit > ChangeLog Entry. Alternatively, you can also use the key combination Ctrl+Alt+C.

Linuxtools-ChangeLog-insert-changelog.png

Invoking the Insert ChangeLog function for another file in the same project will create a new ChangeLog entry for the file. If an entry already exists for a file, invoking the Insert ChangeLog function for that file will place the insertion point in the appropriate entry.

Prepare ChangeLog

This function generates a full ChangeLog entry based on the differences between the local changes you made to a project and its source control repository. As such, using this function requires access to the the source control repository of a project.

The ChangeLog entry generated by the Prepare ChangeLog function will include new files, removed files, and modifications. To invoke this function, navigate to Project > Prepare ChangeLog. Alternatively, you can also use the key combination Ctrl+Alt+P.


Linuxtools-ChangeLog-prepare-changelog-result.png

Back to the top