What's New in MDT Professional Edition 4.0

Here is the description of some of the most interesting or significant changes made to MDT Professional Edition 4.0 for the Eclipse 4.8.x, 4.7.x and 4.6.x releases. They are grouped in the following categories:

Magik Editor

New Occurrences Search actions

New actions that allow searching for All Occurrences, References, and Declarations of selected Magik element in a File, Module, Project or entire Workspace have been added to Magik Editor.

Magik Editor Search actions

The result of the search is displayed in Search view.

Search View

New Rename in File refactoring action

A refactoring action that allows renaming all occurrences of a chosen Magik element in Magik Editor has been added. The action can be run by pressing Ctrl+1 and selecting Rename in file in the pop-up

Rename in file action

During edition the changes are visible in all places in Magik editor at the same time.

Rename in file action

The action can also be run by selecting Rename in file in the context menu.

Rename in file action

Extended navigation to Magik element's declaration

Opening an editor for a selected element has been exteded to include all elements in Magik editor. You can now navigate to declarations by selecting references of variables (loop iterators, free variables, locals, dynamics etc.), interface elements, conditions, shared variables, shared constants, properties, and more.

In order to do this:

  1. Open a .magik file.
  2. Scroll the contents of the editor to find the Magik element whose declaration you wish to open.
  3. Press and hold Ctrl key.
  4. Move the mouse over the name of the Magik element. You will see, that the name becomes a hyperlink.

    Element declaration hyperlink

  5. Click the hyperlink.
  6. The declaration of this element will be opened and selected in the editor:

    Found declaration of the element

Another way to do this is selecting the name of a Magik element, and then doing one of the following:
  • From the menu bar, select Navigate > Open Declaration
  • From the editor's pop-up menu, select Open Declaration
  • Press F3
Note: In case more than one declaration has been found, an Open Declaration dialog will appear.

Outline view

New Occurrences Search actions

New occurrences search actions have been added to Outline view of edited Magik file.

Outline Occurrences Search actions

Search view

Adapted to New Occurrences Search actions

Search view has been adapted to display Magik elements found by new occurrences search actions.

Adapted Search view

The search result can be grouped by Project, Module, File or by Type.

Adapted Search view

New rename actions

New Rename Selected Matches and Rename All Matches actions allow you to rename Magik elements currently displayed in Search view.

Rename All Matches action

After selecting one of the rename actions, a new Rename Matches dialog will appear. You can specify the new name of Magik element there.

Rename All Matches action 2

Click the Preview button to preview your changes. You can uncheck any match you do not wish to replace.

Rename All Matches action 3

Note: Due to the specifications of Magik language (dynamic typing), new search actions do not guarantee that only elements of the selected exemplar will be found. Therefore, it is highly recommended that the user double-checks the search results in Search view before and after refactoring.

Product Explorer view

New Occurrences Search actions

Product Explorer view context menu has been extended with All Occurrences, References and Declarations actions to allow searching for a Magik element in a File, Module, Project or Workspace.

Product Explorer Occurrences Search actions

Magik Search

Magik Search improvements

You can now limit your Magik Search results to All occurrences, References or Declarations.

Magik Search Limit To

Miscellaneous

Compatibility with Eclipse 4.8

MDT Professional Edition 4.0 is fully compatible with Eclipse 4.8 (Photon) version. Thanks to compatibility rules defined by Eclipse Community it is also compatible with Eclipse 4.7, 4.6.

Eclipse 4.8 release is a platform release containing significant new feature work and bug fixes.

Eclipse Photon Splash