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"

(ChangeLog Editor)
(Prepare ChangeLog)
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
= Using the ChangeLog Plugin =
+
= Overview =
  
 
The ChangeLog plug-in for Eclipse is a basic set of extensions to enable ChangeLog functionality for projects in Eclipse.
 
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 will want to set the ChangeLog preferences. These include your desired name and e-mail address to use in a ChangeLog entry. The default entries will be your username and your username@hostname. If you set the environment variables: ECLIPSE_CHANGELOG_REALNAME and/or ECLIPSE_CHANGELOG_EMAIL these will be used instead as your defaults.
+
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.  
  
== ChangeLog Preferences ==
+
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 <code>ECLIPSE_CHANGELOG_REALNAME</code> and/or <code>ECLIPSE_CHANGELOG_EMAIL</code>, the ChangeLog plug-in will use these as the default name and e-mail address instead.
  
To access the '''ChangeLog Preferences''', click '''Window > Preferences > ChangeLog'''.
+
= ChangeLog Preferences =
  
[[Image: Linuxtools-ChangeLogPreferences.png]]
+
To configure your ChangeLog preferences, navigate to <u>Window</u> > <u>Preferences</u> and click <u>ChangeLog</u>. This will open the '''''ChangeLog''''' sub-menu.
  
The screenshot above illustrates the preferences associated with the ChangeLog plug-in. The effect of each preference is described below.
+
[[Image:Linuxtools-ChangeLogPrefs.png]]
  
''' Author Name '''
+
The screenshot above displays the preferences associated with the ChangeLog plug-in. These preferences are:
::The name of the Author to be included in the ChangeLog entry.
+
  
''' Author Email '''
+
; Author Name : The name of the Author to be included in the ChangeLog entry.
::The email address of the Author to be included in the ChangeLog entry.
+
  
''' Formatter '''
+
; Author Email : The email address of the Author to be included in the ChangeLog entry.
::The name of the formatter module to use for ChangeLog entries.
+
  
''' Editor '''
+
; 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 editor module to use for opening ChangeLog file.
+
  
== Using the ChangeLog Plug-in ==
+
; Editor : The name of the editor module Eclipse should use for editing the ChangeLog file.
  
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:LinuxtoolsChangeLogEditor.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, first select the <code>''ChangeLog''</code> file containing changes since the last commit and, then, use the key combination <code>'''Ctrl'''</code>+<code>'''Alt'''</code>+<code>'''v'''</code> to copy those changes to the clipboard. 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:LinuxToolsChangeLogFolderSectionDialog.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:LinuxToolsInsertChangeLogMenu.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 ==
  
<p class="copyright">&#169; Copyright Red Hat, Inc. 2009</p>
+
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. As of today, Subversion and CVS projects are supported.
 +
 
 +
The ChangeLog entry generated by the '''Prepare ChangeLog''' function will include new files, removed files, and modifications. To invoke this function, first select the ChangeLog file to which changes should get written to, then 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:LinuxtoolsPrepareChangeLog.png]]
 +
 
 +
== Format ChangeLog ==
 +
 
 +
This function formats entries in the ChangeLog editor based on the chosen formatting strategy.  The formatting strategy is specified in the <u>Window</u> > <u>Preferences</u> > <u>ChangeLog</u> > <u>Formatters</u> list.  At present, only the GNU format is shipped with the ChangeLog feature but it is possible to contribute other strategies.
 +
 
 +
To invoke formatting, select a section of text and either right-click and choose <u>Format ChangeLog</u> or else use the key combination '''Esc Ctrl'''+'''f'''.  Note the space after '''Esc''' which means you don't hit all three keys at once.  Only the last two keys need to be hit together.  After pressing '''Esc''' you should see a dialog pop-up which has the various key combinations that start in the same manner.  You can use your mouse to choose the appropriate one, hit '''Enter''' when <u>Format ChangeLog</u> is selected, or continue and type in '''Ctrl'''+'''f'''.
 +
 
 +
[[Image:formatChangeLog.png]]
 +
 
 +
After selection, the file is formatted as follows:
 +
 
 +
[[Image:formatChangeLog2.png]]
 +
 
 +
<p class="copyright">&#169; Copyright Red Hat, Inc. 2009, 2013
 
<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.
+
<br>This documentation is licensed under the Eclipse Public License v. 1.0.</p>

Latest revision as of 13:09, 28 May 2013

Overview

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-ChangeLogPrefs.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.

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.

LinuxtoolsChangeLogEditor.png

You can also copy all ChangeLog file changes (since the last check-in to the repository) to the clipboard. To do so, first select the ChangeLog file containing changes since the last commit and, then, use the key combination Ctrl+Alt+v to copy those changes to the clipboard. 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.

LinuxToolsChangeLogFolderSectionDialog.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.

LinuxToolsInsertChangeLogMenu.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. As of today, Subversion and CVS projects are supported.

The ChangeLog entry generated by the Prepare ChangeLog function will include new files, removed files, and modifications. To invoke this function, first select the ChangeLog file to which changes should get written to, then navigate to Project > Prepare ChangeLog. Alternatively, you can also use the key combination Ctrl+Alt+p.


LinuxtoolsPrepareChangeLog.png

Format ChangeLog

This function formats entries in the ChangeLog editor based on the chosen formatting strategy. The formatting strategy is specified in the Window > Preferences > ChangeLog > Formatters list. At present, only the GNU format is shipped with the ChangeLog feature but it is possible to contribute other strategies.

To invoke formatting, select a section of text and either right-click and choose Format ChangeLog or else use the key combination Esc Ctrl+f. Note the space after Esc which means you don't hit all three keys at once. Only the last two keys need to be hit together. After pressing Esc you should see a dialog pop-up which has the various key combinations that start in the same manner. You can use your mouse to choose the appropriate one, hit Enter when Format ChangeLog is selected, or continue and type in Ctrl+f.

FormatChangeLog.png

After selection, the file is formatted as follows:

FormatChangeLog2.png

Back to the top