1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00
Commit graph

2739 commits

Author SHA1 Message Date
Alexander Kurtakov
07488984d9 autotools: Tests improvements.
* assertNotNull instead of assertTrue(var != null)
* better types for swtbot api to prevent useless casts after that
* LanguageSettingsManager.getLanguages instead of deprecated api
* assertFalse instead of assertTrue(!var)


Change-Id: Icdde01f10617b6ec51938bc1998a690cfe7ff1d4
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-18 09:06:26 -05:00
Alexander Kurtakov
76f53cecce autotools: Add api filters for implementing make bundles interfaces.
Change-Id: Id8cffb0df983e6e5e2a752aac0aea5b66cf4bee2
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-18 08:12:08 -05:00
Alexander Kurtakov
4f9dbedc0a autotools: Cosmetics
Try-with-resources for ErrorParserManager.

Change-Id: I5c36d3d68545cb50fcd416caefdc878212b57a88
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-18 13:21:25 +02:00
Alexander Kurtakov
e11035409f autotools: Creating default config doesn't need project.
AutotoolsConfigurationManager.createDefaultConfiguration doesn't need
the project as parameter, that's why it's default one :).

Change-Id: I55f39edf5867f874e38524042572329bc7e34f66
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-18 13:03:25 +02:00
Alexander Kurtakov
f616c9e74e autotools: Move tests using UI components to ui tests.
Change-Id: Ia23389578520c8e21223eb1f9d8e2291a453caf4
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-15 00:09:11 -05:00
John Dallaway
e62e2772fe Bug 366039: Internal Builder reduced build step input resource count
Change-Id: I7c7c8ba5d1bf7b96bbef66449ea6470f3c266f98
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2015-12-14 10:30:43 -05:00
Alexander Kurtakov
8a834d5970 Cleanups.
Remove useless:
* casts.
* suppress warnings unchecked.
* @see comments 

Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 11:06:00 +02:00
Alexander Kurtakov
34281a96e0 autotools: Additional generification.
Properly generify now that o.e.text is generified. This alows removing a
number of suppressed warnings. In a few places it is better to use
wildcard than suppressing warnings.
Also remove DefaultNoDependencyCalculator as it was suppressing warnings
but better to remove directly as it's not use anywhere.

Change-Id: I70c4ac073ce5b6c2a45443372037fa61b7c36c76
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 08:49:09 +02:00
Alexander Kurtakov
81ff40486e autotools: Revive sorting action in automake/conf editor.
Remove the sorting action from the MakefileContentOutlinePage because
the action was changed in a way to be addable in init method instead of
deprecated setActionBars. 
Hooked it properly in AutomakefileContentOutlinePage.
Bonus point - hooked into AutoconfContentOutlinePage as it was just too
easy to get it there too.

Change-Id: I873864f3978ae7cb1d8aa4143edf604244c0a4bc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-08 21:04:15 +02:00
Doug Schaefer
6ba6157708 Bug 481126 - Add hyperlink support to open decl in QML editor.
Also moved the text package contents to the editor package.

Change-Id: I352f8cfa78e937fb4046f86df8c7767df6c5eff2
2015-12-08 11:27:15 -05:00
Alexander Kurtakov
48f520d54c autotools: Make automake editor use make.[core|ui] interfaces.
Duplicating this interfaces just creates confusion due to interfaces in
autotools were copied from make bundles but staled in the years.
Implementation is kept as it is but at least the door is open for some
interoperability. 

Change-Id: I1eb4a7c7dc7511aa6cb15ec0716d0bae8a64389c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-08 10:38:34 -05:00
Alexander Kurtakov
422b68793d Revert "Revert "autotools: Make tests fragments.""
This reverts commit c41d0e50f3.

Change-Id: I22ed3b63530107e442b6bf16f2cbbb67f018ac15
2015-12-08 02:23:55 -05:00
Alexander Kurtakov
06208afa79 autotools: Convert the last JUnit 3.x style test.
And hook it in the test suite.

Change-Id: I4a9b533ff3122e667dbad65655189afcca8dc28e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-05 01:29:57 -05:00
Doug Schaefer
6f36a51b5b Bug 174176 - initial contrib of CMake support.
Change-Id: I7f0417bd92415aa9abb24ebabe849d9e4f75cea5
2015-12-04 20:30:44 -05:00
Alexander Kurtakov
c41d0e50f3 Revert "autotools: Make tests fragments."
This reverts commit 375b162ea2.

Change-Id: I3638f4baebd0b7975da77f95af8c436bec9d9af2
2015-12-04 03:23:03 -05:00
Alexander Kurtakov
2df732fe9a autotools: Custom pde.prefs for autotools.ui.tests.
Main reason is to ignore warning about not exported packages which
doesn't make sense for tests bundles at all.

Change-Id: I99ceeb8e7b5c363e89c697655e7782c7c929405f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 12:35:51 +02:00
Alexander Kurtakov
77c5c4d13f autotools: Doc bundle shouldn't be Java project.
This removes all kind of warnings regarding BREE and etc.

Change-Id: I62851092e22b135dc2e921a61281f3f2fc0346e7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 12:31:57 +02:00
Alexander Kurtakov
425a843061 autotools: Saner handlers.
Old IActions were just wrapped in handlers which created insane amount
of interactions. This is one idea better by moving the implementations
in the handlers themselves.

Change-Id: Ieb7fc465c8a23af09cb6a3d809f157289c65d2ae
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 04:25:45 -05:00
Alexander Kurtakov
e01d886f1e autotools: Bin dead code in property pages.
Removing unused code, making methods private to make it obvious when no
longer used (uncovered few cases), delete commented code and remove
methods that were simply one line invoking some method as they don't
create anything more but pollution.

Change-Id: I9aa0feedaedeb6509fe27772b1015ec953efa9e8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 10:35:51 +02:00
Alexander Kurtakov
375b162ea2 autotools: Make tests fragments.
This allows direct access to everything in the bundles and doesn't
require exporting the packages.
Update test to directly call methods.

Change-Id: I58ecdb68ba5058caf6c7baaa3ff22eb539d296cd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-02 14:03:13 +02:00
Alexander Kurtakov
e061d97881 autotools: Sanitize activators.
Reduce coupling by changing UI bundle to use UI activator and drop UI
getters (e.g. workbench, window, shell) from the core bundle.
Also remove other unused methods.

Change-Id: Ida510d5a0e991c08332a998aefaba5843743172a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-02 04:59:32 -05:00
Alexander Kurtakov
7f30fb8efa cosmetics: Autotools core bundle cleanups.
Various improvements:
* Remove useless comments
* Remove unused methods
* Use String.isEmpty
* Multi-catch


Change-Id: I5d4e6ca5d4bcc925aad4db5c47f82d5d51d24522
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-01 08:08:05 -05:00
Alexander Kurtakov
ca3aa5de95 autotools: Cosmetics.
Various small readability improvements in autotools.ui bundle:
* Remove useless comments
* Remove methods merely calling super().
* Use SelectionAdapter when only one method of SelectionListener
implemented
* Multi-catch exceptions
* Specialize return types to reduce casting after that
* Remove commented code
* Remove unused methods
* Use String.isEmpty



Change-Id: Iacda4094ee8b3bf80e1509cc3b39f55b6fcb96c9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-01 13:09:03 +02:00
Marc-Andre Laperle
5656acd253 Bug 481971 - Detect cc compiler in the build output parser
Change-Id: If667583eb3f720aa9ad7907af4673da8437d15d7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-26 09:01:33 -05:00
Doug Schaefer
e3496e1246 Bug 481978 - Big overhaul of new build system to work with Qt.
Moved new build system to it's own plug-ins. Cleaned up the root
build configuration and toolchain classes and use them for Qt local
run builds. Also hooks Qt local run launch delegate to launch target
manager and associated delegate interface.

Change-Id: I0c0f711ee53005edd399f6d24ba96658d606e1e5
2015-11-24 22:11:33 -05:00
Alexander Kurtakov
ef76cdac14 Use varargs MessageFormat.format method.
Removes few warnings from codebase.

Change-Id: I432bda487b7eed9adfdbe10086776a54fd37b7b8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-21 03:05:38 -05:00
Alexander Kurtakov
ba862975c1 autotools: Fix dialogs run from Actions to have proper parent.
Creating new Shell as parent of every dialog is waste of resources,
complicates window management and have negative effects in terms of
positioning and stacking of dialogs.
While at it remove dead/unused code from these classes.

Change-Id: I62f9a6430f230e18e5b2f949afe97b46fb9e4ac1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-21 00:43:00 -05:00
Alexander Kurtakov
728a032bde Generify getAdapter methods.
Not all instances handled but the patch is big enough already. Drop the
useless casts thanks to the generification too.

Change-Id: I608c93a317135a8738ad770de71d9c3cda24791a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-14 00:04:50 +02:00
Alexander Kurtakov
85bb1512f9 autotools: Drop old Linux Tools compat bundle.
People that would have migrated did it in the last 4 years it is no
longer even known whether this is of any use anymore so better to drop
it now that there is major release on the horizon.

Change-Id: Ic68606582b426be10125fe6a6de345358fc57755
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-13 19:27:39 +02:00
Alexander Kurtakov
8f169e452a autotools: Change order of binary parsers.
Putting ELF before GNU_ELF by default means that the former will never
be used (unless manually configured by user) as the first match will
serve. This patch puts GNU_ELF first giving objdump and all other
benefits. 
Inspired by 4303bc5cbb .

Change-Id: Ib37c174c216758f36cd0574c7980a38461794837
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-12 11:23:00 -05:00
Alexander Kurtakov
8b32e36ed7 autotools: Remove unused wizards.
These extend deprecated classes and are not hooked anywhere so better to
remove directly.

Change-Id: I3be280cb7c24a92c633b2b055424609f99889412
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-12 10:02:19 -05:00
Marc-Andre Laperle
4303bc5cbb Bug 481621 - Linux GCC toolchain should use Gnu Elf binary parser by default
-Projects with default settings for binary parser will see their binary parser
changed to Gnu Elf automatically.
-New projects will have Gnu Elf binary parser enabled.
-Projects overriding the settings will not change

Change-Id: Ie5db969e68da20d16f565923ecb0ec1edf8b79f3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-09 13:07:58 -05:00
Doug Schaefer
26014d3ff3 Fix API baseline error in autotools UI.
Change-Id: I303a2e71cd6bf6527b22544fc1b220a78cdda565
2015-11-02 12:40:03 -05:00
Alexander Kurtakov
65a52dfa48 autotools: Cleanups of the ui bundle.
* Remove useless instanceof check.
* Use collections interfaces to loose coupling.
* Remove useless overriding methods that simply call super.
* Unnecessary local before return.
* Stop useless coupling between wizards and pages.

Change-Id: I83c6240259a7805caeadda5503ea3ae2fa6adafb
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-31 10:21:29 +02:00
Alexander Kurtakov
ae53f82634 autotools: Cleanups in the ui bundle.
* Do not check for null variables that are known to be non-null already.
* Stop using SubProgressMonitor in favor of SubMonitor.
* Non-javadoc removed.
* Commented code removed.
* Multi-catch.

Change-Id: Ib0aa433fbdfa8581c89161225f83a1f1640dd2dc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-30 16:39:13 -04:00
Alexander Kurtakov
e0516f3084 autotools: Improve import wizard to generate missing files.
Calling AutotoolsNewMakeGenerator.reconfigure in the wizard ensures that
autogen.sh/configure etc. will be called at import time to make build
work after that without further intervention.

Change-Id: I3f89f84e2f698ebe1c26cb4427de421b29225030
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-29 01:47:16 -04:00
Alexander Kurtakov
904d0df63d autotools: Another round of core bundle cleanups.
* Use try-with-resources.
* More efficient cycles.
* Use collections interfaces instead of concrete classes.
* Turn non-javadoc with actual comments into javadoc.
* Adapt to proper Java naming conventions.
* Modifiers order.
* Unused modifiers.

Change-Id: I5e4ca3e5f2900b72b53338a455dbaaa65273d812
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-28 18:14:27 -04:00
Alexander Kurtakov
59263ecc02 autotools: Remove redundant and unused modifiers.
Reducing sonar warnings is good strategy to keep new warnings easily
noticable. 
Interface methods/fields have strict modifiers so no need to specify it.

Change-Id: I8c453b5dbdc3c7fcc37e4e0a4fdf1c600e23fb1a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-27 18:45:17 -04:00
Marc Khouzam
cf7cb39de6 Allow autotools.ui to use autotools.core
This change removes around 300 warnings

Change-Id: I5704e99307e8d9117328a76e705a4ba25201be51
2015-10-27 13:02:27 -04:00
Alexander Kurtakov
c44b570504 autotools: Bump o.e.cdt.autotools.ui BREE to 1.8.
* Use lambdas.
* Remove non-javadoc comments.

Change-Id: I5a2542f331b40c50460ba93dd34aecff5d68a161
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-23 14:55:55 -04:00
Marc-Andre Laperle
e18311d2a2 Add missing buildModel tracing option
managedbuilder.core was already calling getDebugOption with this key
but it was not exposed in the launch configutation.

Change-Id: Ib9e983ea9240bf6d911b2e2b94fc5929d91bcea1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-22 15:24:47 -04:00
Alexander Kurtakov
9f03bd1ee2 Use *Scope INSTANCE fields.
Recommended way is to use e.g. InstanceScope.INSTANCE instead of new
InstanceScope() which is deprecated now.

Change-Id: I9fa8e53e180a480805bd0a57903e65b5c2de5f75
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-22 01:54:54 -04:00
Marc Khouzam
ac06de029f Missing @since tags in autotools
Change-Id: Ifd660175e636a05d8d304b7462099b9a84e298a8
2015-10-21 13:14:32 -04:00
Alexander Kurtakov
508ee9fd44 autotools: Migrate core bundle to SubMonitor.
Migrate org.eclipse.cdt.autotools.core from deprecated
SubProgressMonitor to SubMonitor.

Change-Id: Icad7c666fc88852554c5d7dbc70b4ecf26b9bc88
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-20 20:01:26 +03:00
Alexander Kurtakov
62f349f013 autotools: Modernize o.e.cdt.autotools.ui.tests bundle.
* Bump BREE to Java 1.8.
* Enable more warnings and save actions.
* Use lambdas.
* Use try-with-resources.

Change-Id: I688dd1865353380a9791ff28779b4c98f21403f6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-20 11:11:20 -04:00
Alexander Kurtakov
6839fa9c6b autotools: Modernize o.e.cdt.autotools.ui.
* Enable warnings and save actions.
* Replace useless @see comments with proper Override annotations.
* Remove redundant type declarations.
* Add missing Deprecated annotations.
* Remove useless throws declarations.
* Remove useless casts.
* Remove useless method parameters.

Change-Id: Ic93548f0d0b20706b36efb921a7a86adbe1b2608
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-20 11:10:56 -04:00
Alexander Kurtakov
c6a1fab921 autotools: Bump o.e.cdt.autotools.core BREE to 1.8.
Change-Id: I38ed3dfc834bcdbc77ebe0f2f11645d734c6ea0d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-20 10:16:40 +03:00
Marc-Andre Laperle
646f1813f8 autotools: Fix API errors. Make internal packages actually internal.
Change-Id: I014a7e778f247124239b7c6087b2f0107a11a7fc
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-19 14:34:20 -04:00
Alexander Kurtakov
495766631c autotools: Modernize o.e.cdt.autotools.core.
* Enable warnings and save actions. 
* Replace useless @see comments with proper Override annotations. 
* Remove redundant type declarations. 
* Add missing Deprecated annotations. 
* Remove useless throws declarations. 
* Remove useless casts. 
* Remove useless method parameters.

Change-Id: I632c1c811b5d01c80279fab30010cec7d285a971
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-16 12:07:00 -04:00
Alexander Kurtakov
41d04dd376 autotools: Modernize o.e.cdt.autotools.tests bundle. (take 2)
* Bump BREE to Java 1.8.
* Start using lambdas.
* Removed unused helper methods/activator/etc.
* More JUnit 4 migration.
* Enable more warnings by default and fix them.


Change-Id: If2df6114fb18b66822849ce2e1b956dd0ce6b514
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-10-09 16:03:51 +03:00