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 "CDT/User/NewIn93"

< CDT
(Support to extend the toolbar of the Debugger Console pages)
(Support to extend the toolbar of the Debugger Console pages)
Line 63: Line 63:
 
=== Support to extend the toolbar of the Debugger Console pages ===
 
=== Support to extend the toolbar of the Debugger Console pages ===
  
Just like the standard Console view, the Debugger Console view now allows the use of the [http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_console_consolePageParticipants.html Console Page Participants] extension point.  By using this extension, extenders can add buttons to the toolbar of the different pages of the Debugger Console view.  An example of such additions can be found in ''org.eclipse.cdt.examples.dsf.gdb/GdbExtendedConsolePageParticipant.java''.
+
Just like the standard Console view, the Debugger Console view now allows the use of the [http://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_console_consolePageParticipants.html Console Page Participants] extension point.  By using this extension, extenders can add buttons to the toolbar of the different pages of the Debugger Console view.  An example of such additions can be found in ''org.eclipse.cdt.examples.dsf.gdb/GdbExtendedConsolePageParticipant.java'' and has been copied below.
 +
 
 +
<nowiki>
 +
  <extension point="org.eclipse.ui.console.consolePageParticipants">
 +
      <consolePageParticipant
 +
            class="org.eclipse.cdt.examples.dsf.gdb.ui.console.GdbExtendedConsolePageParticipant"
 +
            id="org.eclipse.cdt.examples.dsf.gdb.debuggerConsolePageParticipant">
 +
        <enablement>
 +
        <and>
 +
            <instanceof value="org.eclipse.cdt.debug.ui.debuggerconsole.IDebuggerConsole"/>
 +
            <!-- The below check only works with the Debugger Console view and not the
 +
                standard console view.  But that is ok since this contribution is
 +
                for the Debugger Console views only. -->
 +
            <with variable="org.eclipse.core.runtime.Platform">
 +
              <test property="org.eclipse.core.runtime.bundleState"
 +
                    args="org.eclipse.cdt.examples.dsf.gdb"
 +
                    value="ACTIVE">
 +
              </test>
 +
            </with>
 +
        </and>
 +
        </enablement>
 +
      </consolePageParticipant>
 +
  </extension>
 +
</nowiki>
  
 
== Bugs Fixed in this Release ==
 
== Bugs Fixed in this Release ==
  
 
See Bugzilla report [https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&classification=Tools&product=CDT&query_format=advanced&resolution=FIXED&target_milestone=9.3.0 Bugs Fixed in CDT 9.3]
 
See Bugzilla report [https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&classification=Tools&product=CDT&query_format=advanced&resolution=FIXED&target_milestone=9.3.0 Bugs Fixed in CDT 9.3]

Revision as of 16:58, 19 January 2017

Release

This is the New & Noteworthy page for CDT 9.3 which is part of the Eclipse Oxygen release of June 2017

General

Editor

Following includes in inactive code paths

Open Declaration can now follow #includes in inactive code paths (bug 379623).

Navigation to forward declaration of class template

Open Declaration now supports navigation from the definition of a class template to its forward declaration.

This can be useful in cases where some of the class template's template parameter have default arguments, as the default arguments may only be declared at the forward declaration.

CDTNavigateToFwdDeclBefore.png CDTNavigateToFwdDeclAfter.png

Completion of member functions when taking the address

After a classname qualifier such as MyClass::, CDT generally only offers static methods as completion proposals, since nonstatic methods need to be called on an object.

However, sometimes the address of a nonstatic method is taken, usually to be passed as a callback. CDT now recognizes the &MyClass:: form used to do this, and offers nonstatic methods as completion proposals (bug 395562).

CDTAddressofMethodCompletion.png

Enclosing definition of macro reference

In the Search view, the enclosing definition (function and class if applicable) is now shown for macro references the way it is for references to other entities (bug 508216).

CDTEnclosingDefForMacroReference.png

Open Declaration in assembly files

The Open Declaration action is now supported in assembly files.

CDTAssemblyOpenDeclBefore.png CDTAssemblyOpenDeclAfter.png

The action works on #include directives (bug 507285) and identifiers (bug 507974).

Makefile Editor

Code Analysis

Parser

Formatter

Build

Prebuild task and parallel make

Pre-build tasks and parallel make is now working together. Pre-build tasks can be used to generate header and source files as the pre-build task is now guaranteed to complete before any source code is built.

Also, the build targets under Project Settings -> C/C++ Build -> Behavior -> Workbench Build Behavior is respected and works the same for projects both with and without pre-build tasks.

This solves (bug 340300).

Debug

Support to extend the toolbar of the Debugger Console pages

Just like the standard Console view, the Debugger Console view now allows the use of the Console Page Participants extension point. By using this extension, extenders can add buttons to the toolbar of the different pages of the Debugger Console view. An example of such additions can be found in org.eclipse.cdt.examples.dsf.gdb/GdbExtendedConsolePageParticipant.java and has been copied below.

   <extension point="org.eclipse.ui.console.consolePageParticipants">
      <consolePageParticipant
            class="org.eclipse.cdt.examples.dsf.gdb.ui.console.GdbExtendedConsolePageParticipant"
            id="org.eclipse.cdt.examples.dsf.gdb.debuggerConsolePageParticipant">
         <enablement>
         <and>
            <instanceof value="org.eclipse.cdt.debug.ui.debuggerconsole.IDebuggerConsole"/>
            <!-- The below check only works with the Debugger Console view and not the
                 standard console view.  But that is ok since this contribution is
                 for the Debugger Console views only. -->
            <with variable="org.eclipse.core.runtime.Platform">
               <test property="org.eclipse.core.runtime.bundleState"
                     args="org.eclipse.cdt.examples.dsf.gdb"
                     value="ACTIVE">
               </test>
            </with>
         </and>
         </enablement>
      </consolePageParticipant>
   </extension>

Bugs Fixed in this Release

See Bugzilla report Bugs Fixed in CDT 9.3

Back to the top