1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

23278 commits

Author SHA1 Message Date
Thomas Corbat
ac8965a904 Bug 418493 - [Content Assist] Show default values within parameter hints
Preferences:
- Displaying parameters with default argument
- Displaying default arguments

Default arguments for functions and templates.

Conflicts:
	core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java

Conflicts:
	core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java
	
Rebased to changed parent

Change-Id: Ifb505f5723dc26212c34f492d3d49b7badf366ea
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30646
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-08-14 02:55:59 -04:00
Alena Laskavaia
742c1d9ee8 LaunchBar - some checks to prevent NPE's in ui
Change-Id: Iddece4d412b8d88ffba833b55950ec693a2817cc
Reviewed-on: https://git.eclipse.org/r/31554
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-13 16:24:59 -04:00
Alvaro Sanchez-Leon
bf0e781811 Add o.e.cdt.tests.dsf.gdb to the testing repo
Change-Id: I276e96460e7b8c8f86c1eb6232ff3922ac027a5d
Reviewed-on: https://git.eclipse.org/r/31551
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-08-13 15:43:35 -04:00
Sergey Prigogin
21c0d0a2f8 Cosmetics. 2014-08-13 12:03:53 -07:00
Thomas Corbat
ebb9bced0d Bug 440422 - Completion in Using Declarations
Fix for content assist in the context of using declarations:
- No parameter hint for using declaration (template and function)
- No trailing semicolon if one is already present
- Parameter hint for invocation in template arguments
- Space after comma in function suggestions

Some refactoring to content assist test infrastructure.


Change-Id: Id2483ddefe1c35572a9554fdadb0b6416402446a
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30584
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-13 09:06:04 -04:00
Alena Laskavaia
51f7d9c829 Launch Bar - label provider for config selector
If provider does not return image or text, use default provider

Change-Id: I20bca6e5ef577f4e227d5e567820ba8d004cb85a
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31447
Tested-by: Hudson CI
2014-08-12 14:04:15 -04:00
Jonathan Williams
c1ca67ed34 Bug 441445 - Implement 'Add Target' functionality for target type
contributions to LaunchBar

Change-Id: I577c0e1438090aaaf27bba34660169cde82a8e8c
Signed-off-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-on: https://git.eclipse.org/r/31319
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-12 12:27:29 -04:00
Alena Laskavaia
bc0a8fb72f LaunchBar - project based descriptor bug
project based descriptor must not accept launch configs without project
set
ownProject should not log exception when lc does not exist

Change-Id: I9a600641324b0ae22a2fdb99e68ff530cd1d33df
Reviewed-on: https://git.eclipse.org/r/31400
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-12 11:52:17 -04:00
Alena Laskavaia
a458a0fe9f Fixing NPE in ACBuilder
ACBuilder now fails to add a marker if some other marker have no
linumber attribute. Added default line and severity for marker
comparision purposes.

Change-Id: I9c42f660cae08c3303382d8c35aa6404e7130652
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31398
Tested-by: Hudson CI
2014-08-12 08:46:41 -04:00
Sergey Prigogin
4dd9a12177 Cosmetics. 2014-08-11 20:17:08 -07:00
Nathan Ridge
de6b33924c Bug 437675 - Handle PDOM function instances in
CPPTemplates.instantiateBinding()

Change-Id: I3bf9ee9f5db0521e60c302b96db39513873aeb1b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31347
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:35:40 -04:00
Nathan Ridge
3e540156b6 Bug 404245 - Check that a function call has enough arguments after
template argument deduction

Change-Id: I2824e908dc6ea9796c9400e81f3ef34d97406dc6
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31345
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:33:27 -04:00
Nathan Ridge
42235704cb Bug 438348 - Allow decltype-specifiers in base-specifiers
Change-Id: Ib027b78aa207e1fe0e1aef56fae7eeace041118c
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31341
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:30:57 -04:00
Alena Laskavaia
b7ec8deec4 Bug 242405 - Binary file editor does not refresh when binary is rebuilt
Change-Id: I0af100959f8f61b2d2735f9d0d9cd42b6c91e590
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31300
Tested-by: Hudson CI
2014-08-11 11:28:30 -04:00
Alena Laskavaia
1bf2aa825f LaunhBar - some API changes and cleanup
* Project provider to react on project changes (i.e. when nature
changed)
* Added concept of open descriptor - which will be visible in UI,
this will allow not to remap to null, reuse objects for other reasons,
and eventually I want to replace object map into 1:1 mapping without
nulls
* Removed throwing CoreException from getLaunchDescriptors (it does not
need to throw it)
* Project based type now checks if project is open
* Fixed copyright
* Added interface for ILaunchDescriptorProjectBased

Change-Id: I3277f5910c7df1bb4aa3e809dda3b61921dcad6e
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31321
2014-08-11 11:02:11 -04:00
Thomas Corbat
4d4ab6cafd Bug 440710 - [ASTRewriter] UnhandledASTModificationException when ...
When a statement has been inserted into a replaced compound statement
createModifiedChildArray is called for the new compound statement. The
insert modification is attached to its sibling node. The implementation
for handling this insert was on the parent (compound statement) though.
I moved this (adapted) functionality to handling of the sibling nodes.
With the way insert modifications are stored the previous implementation
cannot have worked. Furthermore, there is no test code which covers the
deleted code.

Change-Id: I9615787177c12a870df7c9663170f38b2c28accb
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30796
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-08-11 07:19:41 -04:00
Thomas Corbat
21a7118692 Bug 440447 - ASTRewrite Loses Nested Modifications
Modified ChangeGeneratorWriterVisitor to cope with nested modifications
as described in the ticket.

Also added some related change generator tests to the corresponding
tests suites.

Refined change to cope with sibling changes too.

Change-Id: Ia04f3d01e50375828588e7fa65e2ec3782c58e79
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30525
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 05:07:07 -04:00
Sergey Prigogin
cbc4e67f8e Moved TextUtil class to a more prominent place. 2014-08-08 18:45:28 -07:00
Sergey Prigogin
191b4111f8 Cosmetics. 2014-08-08 18:42:02 -07:00
Sergey Prigogin
ebac470813 Added support for radio buttons corresponding to non-boolean preferences 2014-08-08 18:40:47 -07:00
Sergey Prigogin
4d0919d7d2 Code streamlining. 2014-08-08 18:39:28 -07:00
Sergey Prigogin
2009946e05 Cosmetics. 2014-08-08 18:38:13 -07:00
Sergey Prigogin
f0a593fbb7 Fixed compiler warnings.
Change-Id: I271db5f3e4f64f13e260e66d1ea103eedfbdde4d
2014-08-08 18:36:57 -07:00
Alena Laskavaia
42f0351e86 LauchBar - move default descriptor back to internal package
there is an another API class which users should use, default is
strictly for cdt default provider

Change-Id: I70ad6db49c90d8465d3328edc4ec09949d2697fa
Reviewed-on: https://git.eclipse.org/r/31306
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-08 16:24:49 -04:00
Marc Khouzam
f3971c0510 Missing @since tags
Change-Id: I6399f0151f1d1d9dd3b1a63ccb9757b2b3bf80fe
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-08-08 15:16:47 -04:00
Nathan Ridge
8e80f515fa Bug 441394 - Fix an NPE in EvalFunctionSet.isConstantExpression()
Change-Id: I1a4d887d064d8467e2e5e9371ab4ad0a93532089
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31247
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-08 12:46:39 -04:00
Nathan Ridge
b65c120429 Bug 438348 - Leave parameter pack of nested template intact when
substituting arguments to enclosing template

Change-Id: I9c5fcca535bc4cecb05186fc498708159954a1a5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31249
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-08 12:45:21 -04:00
Alena Laskavaia
15402f6488 Bug 441385 - Binary editor on big files blocks UI
Change-Id: I4ac0c8eff4e77045657f0fe5921a86a966a22922
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31238
Tested-by: Hudson CI
2014-08-08 11:28:53 -04:00
Marc Dumais
b89c530f09 Bug 441376 - [visualizer] VisualizerViewer#selectVisualizer():
visualizer should be notified when its becoming selected

Change-Id: Ic723fb8f42f65ac0bc7d13fb79df250b100061bb
Reviewed-on: https://git.eclipse.org/r/31227
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-08-08 07:34:55 -04:00
Jeff Johnston
3b458e99b5 Add Autotools test for bug 434275
- add a way to create a linked folder in utilities class
- add new test for virtual folder
- fix markExecutable to handle linked resources when they exist

Change-Id: I88f800f6f4e4f50e754ea0190f558852825bc498
Reviewed-on: https://git.eclipse.org/r/30769
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-07 22:36:37 -04:00
Alena Laskavaia
2a3246fa84 LaunchBar - more tests and refactoring
Change-Id: I7ae632dd6c3c67881066589a721031fdea6ea5c0
Reviewed-on: https://git.eclipse.org/r/31217
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-07 16:32:14 -04:00
Marc Khouzam
4c8e2f3d91 Bug 441379 - Element Number Format option "Restore to Preference" was
not translatable

Change-Id: I7c032ccf5c380c1d2445eb42575e9a6887904590
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31233
2014-08-07 15:25:21 -04:00
Marc Khouzam
b24a49090a Export all packages from launchbar plugins
Change-Id: I6bd238c69131933ca170d955352b7f899b245dfa
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31115
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-07 12:52:12 -04:00
Marc Khouzam
9cafff55d6 Add license to launchbar feature
Change-Id: I36eb28887f47dca62554cb2438b8ed62b044fb52
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/31114
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-07 12:51:57 -04:00
Marc Khouzam
8ec1e82077 Cosmetics
Change-Id: I22f2114d10cd2749a77c932014edd0e1ca00b304
2014-08-07 11:42:47 -04:00
Marc Khouzam
3deafff15b Clarification of javadoc
Change-Id: Id543b62c92c354de3fec62e0044ed33ea1f30190
2014-08-07 11:39:22 -04:00
Marc Khouzam
041a00ea28 Cosmetics
Change-Id: Iedb9b74df9eab3c39f38ebe924549ee297262752
2014-08-07 11:26:23 -04:00
Alena Laskavaia
c819ee49f4 LaunchBar - config selector keep first 3 elements sorted by usage
* added interface for CSelector to show one separator bar at given index
* change ConfigSelector provider to do special sorting 
and set separtor index to 3, so first 3 elements are sorted by usage,
then all descriptors alphabetically (including first 3)
* persist descriptor order

Change-Id: Ib61d43abcb0da52f10d4b1e1ac7c0dc4f0d7958f
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30905
Tested-by: Hudson CI
2014-08-06 09:27:38 -04:00
Alena Laskavaia
b877d85865 LaunchBar - fixing default label provider for configs
* fixing default label provider for config selector, if no
contribution will default to launch config based image/name

Change-Id: I978f4071a2e5f7b25d0a1d345c676fdb7e43b263
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31056
2014-08-05 16:31:00 -04:00
Alena Laskavaia
9d6f5db024 LaunchBar - bugs in handling config and project based descriptors
* added tracing
* added method to get LCType without need for lc
* delete LC is nasty in platform, notificaton is sent after 
it is deleted, have to store parametes somewhere else to be able 
to handle it properly
* added toString to abstract classes
* allow config based type to have null config
* fixed loader for default provider extension (and added test for it)


Change-Id: I223684414eb51e18fe7f54113b1ae2055ddab1ae
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31043
Tested-by: Hudson CI
2014-08-05 15:46:31 -04:00
Alena Laskavaia
5340082453 LaunchBar - junits tests are not running - trying to fix...
Change-Id: I4e2f641ece60920b307c3117739a273a0c4c30b0
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30881
Tested-by: Hudson CI
2014-08-05 10:46:51 -04:00
mazab
597c1dbc69 Bug 436147. Changed the way of handling "Restore Defaults" to reset the
values to default values instead of removing the options.

Change-Id: I748206ab90aa07d161a437af0b6fc4e3d3a7161b
Signed-off-by: mazab <mohamed_azab@mentor.com>
Reviewed-on: https://git.eclipse.org/r/27519
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-08-05 10:19:57 -04:00
Sergey Prigogin
6ff7af7dc6 Cleanup of Messages.properties and Messages.java files continued.
Change-Id: Ia8dd64344b368c00d72006a9abdea7cc2019d637
2014-08-04 12:40:50 -07:00
Sergey Prigogin
5cc7505a12 Cleanup of Messages.properties and Messages.java files.
Change-Id: Iea47d46a3ea201722fbe666a03c89dde7e5e4961
2014-08-04 11:15:40 -07:00
Sergey Prigogin
914dc65ffb More descriptive names of temporary files.
Change-Id: Ib3627818fdff1d2d8c63cabe7ed2c3790448f09d
2014-08-04 09:44:21 -07:00
Sergey Prigogin
af7c0a635b Cosmetics.
Change-Id: I3f589111ad5e765ebfaa56829ff24ec437f084f8
2014-08-01 18:33:31 -07:00
Sergey Prigogin
bfb4854e5d Cleanup of temporary files created by tests.
Change-Id: Iaca298c1fd237787ea06cba5307cc473034ad314
2014-08-01 13:59:17 -07:00
Sergey Prigogin
2ca45300fe Corrected a plugin version in pom.xml
Change-Id: I25ae15419dd08ef11cdd25ba53d8ae55e20aa0fa
2014-08-01 12:24:28 -07:00
Sergey Prigogin
794e81355f Renamed messages.properties to Messages.properties.
Change-Id: I764a4d9b4d1cd17543b92dd6fd53578508337b3d
2014-08-01 12:22:27 -07:00
Sergey Prigogin
1f25d0cb80 Corrected a version in pom.xml
Change-Id: I1f529ed791be34b316a2b151d7f05a57f605d660
2014-08-01 12:12:21 -07:00