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

679 commits

Author SHA1 Message Date
Marc Khouzam
479cd95c3a Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-21 16:07:16 -04:00
Marc Khouzam
37890019cb Remove warnings caused by change to getAdaptable()
getAdaptable() in 4.5 M6 has changed to use generics, making casting its
result no longer necessary.

Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:01:46 -04:00
Teodor Madan
196d978624 Bug 458650 - NPE when creating a "C/C++ Remote Application" launch
config

Change-Id: I72f48aa4fa7b46e0d5ba5e5e8f6e4877269ea7f5
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-01-29 09:50:51 +02:00
Teodor Madan
c00e25a8ad [Bug 457699] Fix NPE when renaming project and executable path LC
attribute is empty

Change-Id: I27405f759a0cdec1d66bc6bc63be0e7dbd183bf8
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-01-23 03:21:17 -05:00
Ungureanu Dan-B07892
f03ce33b71 [457699]. Update C/C++ Application path at project rename
Change-Id: Ia9a2cd7c57a12bb74346915f22b6617fbb42a309
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=457699
Signed-off-by: Dan Ungureanu <dan.ungureanu@freescale.com>
2015-01-22 04:02:44 -05:00
Alena Laskavaia
8e7e750522 CAbstractMainTab: fixed possible NPE if method called direcly
updateBuildConfigCombo originally accepted null as arument, restored
this behavior (it is not called with null from cdt code, but may be
called from overriding classes)

Change-Id: I7d0f271b2bd414d380a1804b838ce38fbdc7c0af
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-01-21 09:14:21 -05:00
Alena Laskavaia
971176c83f abstract main tab: replace auto-config checkbox with combo item
as discussed on cdt-dev I am trying to make ui look better
and more generic by replacing 
"Select configuration using 'C/C++ Application'"
checkbox with Automatic selector.
Launch delegate or subclass on main page can control and override
behaivior of this ui control

This won't break API but it will break UI if subclasses were actually
doing something with original chechbox control 
(besides not creating it).

Change-Id: I36f20bf05ff19e1fd66782e2351f18edc7d507cc
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39619
Tested-by: Hudson CI
2015-01-15 09:09:51 -05:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Doug Schaefer
3c14369a9a Bug 437392 - Remove LaunchBar from CDT repo.
It is now located in the cdt/org.eclipse.launchbar repo. The intention
is to move it to a project lower down the stack so it can be reused
accross Eclipse.

Change-Id: I9d623fa372fcf6e345ba68a8830db190a75e0d28
Reviewed-on: https://git.eclipse.org/r/38266
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-15 14:13:45 -05:00
Alena Laskavaia
8c6bad3c80 Propertly implemented stubs for NewLaunchConfigEditPage
This code is required if any LaunchTab interacts with other tabs in LC


Change-Id: I5d5e3b6d4e51b1f3ee0ac6297ebb4d88ad220224
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/36955
Tested-by: Hudson CI
2014-11-25 10:33:45 -05:00
Jonathan Williams
af395d8676 Bug 449479 - Fix Exceptions and LC cache corruption on LC delete
Change-Id: Icd211eb1c9c34082208a709926b56affee6eac61
Signed-off-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-on: https://git.eclipse.org/r/35748
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-11-05 10:23:16 -05:00
Doug Schaefer
99bab29813 Bug: 448093 Move the initialization of the launch bar manager to job
We've seen a deadlock during startup mainly caused by CDT but triggered
when the launch bar manager initialized. This moves the init to a job
where it should be anyway to ensure smooth startup.

Change-Id: Id4b63e07dca3f96c561d6b4f45d60cf7cbcf530c
Reviewed-on: https://git.eclipse.org/r/35235
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-10-21 12:17:06 -04:00
Alena Laskavaia
572b3e917f Bug 447933 - CMainTab - uncessery restrictions on Browse button
Change-Id: Ic69f12abe7597d34a2354721c8b27166ec0edd5f
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/35143
Tested-by: Hudson CI
2014-10-21 10:19:29 -04:00
Dan Ayson
8251ed4964 Bug 447722 - NewLaunchTargetWizard needs a window title
* Added setWindowTitle("Launch Target Type") to NewLaunchTargetWizard

Change-Id: I3703017f1c282352eb27c87a9e58eae7abea0f2d
Signed-off-by: Dan Ayson <danielayson@gmail.com>
Reviewed-on: https://git.eclipse.org/r/35062
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-10-17 13:37:29 -04:00
Doug Schaefer
671fea7f49 Bug 446104 - Fix target removal. Also fix Config Edit page.
The launch bar manager was missing the line to actually remove the
launch target in launchTargetRemoved. Added a test to detect that.

Also fixed the Config Edit page. Name verification was failing since
it was comparing against the false configs created when the tabs
are initialized. We clean up now right after that init.

Change-Id: I9cff816040f2e1866c9454cb00f69ec4468225d4
Reviewed-on: https://git.eclipse.org/r/34477
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-10-07 21:15:39 -04:00
Mat Booth
fca237edbc Use the org.hamcrest.core BSN to ensure the latest version from orbit
Change-Id: I1dd2d340f15bc2e0e02acf0b16c63447c05bcb73
Signed-off-by: Mat Booth <mat.booth@redhat.com>
Reviewed-on: https://git.eclipse.org/r/34493
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-10-07 16:52:32 -04:00
Doug Schaefer
0a3f35c3ed Launch Bar - fix ordering problem initing launch config edit tabs. 2014-10-01 22:07:05 -04:00
Alena Laskavaia
909315e0c7 Bug 444781 - Fix error marker for invalid launch config name
fixed validation paths of the name/tabs markers

Change-Id: I0e6f1dbcde00ea00c351fdf377429026b8a83bd3
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/33923
Reviewed-by: Jonathan Williams <jonwilliams@qnx.com>
2014-10-01 15:08:28 -04:00
Alvaro Sanchez-Leon
f9db4581fc Bug 445372 - [LaunchBar] Compile with Juno
Change-Id: Ieb915e56b7e1f2b06a84a1db1d6f476977add1b2
Reviewed-on: https://git.eclipse.org/r/34058
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-09-30 14:52:39 -04:00
Doug Schaefer
c84b8cc5d6 Launch Bar - New Target Wizard somewhat like the new resource wizards.
Has a page to select the target type. The INewWizard for the target
type is registered in the launchBarUIContributions extension point.
When selected and nextPage is hit, the wizard starts up.

Also some minor cleanup to the new config wizard.

Change-Id: Ic2bb5164d531a21b7a2a9dd7ecd109e18f2411cd
Reviewed-on: https://git.eclipse.org/r/34017
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-30 13:42:32 -04:00
Doug Schaefer
a104dc4f6d Launch Bar - fix up how the new config wizard runs.
Only change the type when we're flipping to the next page. Also fixes
the order of initialization of the tabs to eliminate the NPEs that
were happening.

Change-Id: I9bb0a5d3ff646e4ca340f9c461e3a3c88f89e557
Reviewed-on: https://git.eclipse.org/r/34010
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-28 11:13:32 -04:00
Doug Schaefer
c5ce43974e Make sure launch bar ui plugin properties gets into build.
Change-Id: I3e63c02b3c9f3da8b20ac4d71d0c1b6144b2f686
Reviewed-on: https://git.eclipse.org/r/33650
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-27 22:45:06 -04:00
Doug Schaefer
f80eeeda61 LOLs, this is just a comment change. But I want the tests to run.
to test a previous commit I made directly accidentally.

Change-Id: Ia78de20a35e8288b58ba802c4215eb8abc2aff1f
Change-Id: I615c2673a0b2d091d71ffcf21a25fcc5b447e4f0
Reviewed-on: https://git.eclipse.org/r/33649
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-21 21:48:18 -04:00
Doug Schaefer
514a4ee209 Bug 437392 - first cut at handling descriptor takeovers.
If a launchObject changes such that a new higher priority descriptor
type wants to take it over, we need to let it. This is handles on
the launchObjectChanged call.

I also added a note to the Project object provider as projects change
a lot and we only care about a subset of those events. Not sure how
to formalize that, though. Need to dig deeper into the deltas and
see what we can ignore.

Change-Id: I964d8785a474c43c917bcd7d8a84abf2b7904aa4
2014-09-21 20:53:28 -04:00
Doug Schaefer
8015431bf1 Put the user invokable launch bar commands into a category. 2014-09-19 11:05:45 -04:00
Doug Schaefer
ddd0df6db8 Get LaunchBar builds off of the UI thread. 2014-09-18 11:55:27 -04:00
Doug Schaefer
d5b3ed1ce7 Extend launch bar tests and fix up one of the Listener methods.
Change-Id: I920f7c08f30d51cff2a5188f81b85839e7d972e3
Reviewed-on: https://git.eclipse.org/r/33289
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-12 11:28:39 -04:00
Doug Schaefer
63b9ba54f5 Bug 437392: Major API changes to turn the Launch Bar Model a beauty
Pretty major changes but heavily reduce the size of the API. Check
out the ILaunchBarManager which now only supports providers. All other
methods are now for internal use by the UI plugin. Also change to the
model. The extension point has much more documentation now. Please see
it for an explanation. But essentially made launch configuration types
part of the model to make a nice cleaner bridge to the platform.

Also includes change to Launch Targets view to make it a common
navigator so different target types can add objects to the tree.

Also a number of changes to try and delay plug-in loading with the
providers.

Change-Id: Icdd300e99f831c84cd0a25a23410aa1cd2ccfd7c
Reviewed-on: https://git.eclipse.org/r/33061
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-09-11 17:22:38 -04:00
Marc-Andre Laperle
97079f6ad0 Add missing arg for jacoco in in tests. Update jacoco.
Jacoco arguments are missing when executing certain tests. This happens when
argLine is being overriden. We had the same problem in Linux Tools. We solved
it by prepending the argLine with ${tycho.testArgLine}. This should help
improving the Code coverage metric in Sonar.

Also update the jacoco version to fix a bug when building with Java 8.

Change-Id: I7f73f40488efc01fc7d643940c1ac0d5950c900d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32507
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-08-28 15:40:26 -04:00
Doug Schaefer
cf448ee139 Launch Targets View clean up including adding properties dialog.
Change-Id: I0299e2cc4886ba04aaa5f8661f45207c5320a8c5
Reviewed-on: https://git.eclipse.org/r/31935
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-08-20 10:27:39 -04:00
Doug Schaefer
3a81f65932 Bug 437392 - Added the Launch Targets View.
This view lists all launch targets that could appear in the Target
selector. It allows us to add context menus to them to perform
operations, such as opening a terminal view to the target. It will
also gives us a cleaner UI to add and remove targets

Change-Id: I538a204ce6f25fd017573c50585ac45cdeeaf554
Reviewed-on: https://git.eclipse.org/r/31856
Tested-by: Hudson CI
Reviewed-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-08-19 10:22:01 -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
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
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
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
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
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
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
Alena Laskavaia
0b62fee46c LaunchBar - added interface to notify launch bar on object changes
* added launchObjectUpdated API
* added tests for it
* changed abstract provider to use it instead of hack that it used
before
* fixed login in launchObjectAdded to correctly update object map 

Change-Id: I697594c34097e5439ca1550d0d68758baf7208e2
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30830
Tested-by: Hudson CI
2014-08-01 09:27:12 -04:00
Alena Laskavaia
86864c02fe LaunchBar - junits - more tweaks and refactoring
Change-Id: Ia786fd63c07b3240c1535036b443675dd4931eca
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30732
Tested-by: Hudson CI
2014-07-30 14:21:10 -04:00
Jonathan Williams
cb5eeb1a5d Bug 440393 - Add update mechanisms to force UI updates for activeTarget
and activeLaunchDescriptor.

Change-Id: Idef23b3e8adc4cc2a580bb052ac364824c088023
Signed-off-by: Jonathan Williams <jonwilliams@qnx.com>
Reviewed-on: https://git.eclipse.org/r/30465
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-29 14:37:16 -04:00
Alena Laskavaia
e26e8a60c0 LaunchBar - added test plugin and refactoring
Initial tests and refactoring to support tests


Change-Id: Ia14961b4a13ad7e8f2e1d75be264243f7432fe2d
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30462
2014-07-28 16:43:44 -04:00
Marc Khouzam
1a48e6064b Update pom.xml of features for which version was changed to 8.5
Change-Id: I6c4e258ac7d86a3df7a064614fa80430219d5561
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-24 13:35:24 -04:00
Marc Khouzam
4a3ec6cd65 Update remaining feature versions to 8.5
Change-Id: I2f81d61650070353ec86159cfa215d58a0dd2c40
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-24 10:50:09 -04:00