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

23 commits

Author SHA1 Message Date
Doug Schaefer
8227915473 Add SWTBot tests including one to test creating launch configs.
Change-Id: Ia5032df7094be215ebefd9c2fb7caa35a9cb7f43
2017-10-14 15:45:06 -04:00
Doug Schaefer
ccc816a442 New Target Management wizard and allow editing of LC names.
Add a new launch target wizard that manages creating and editing of
launch targets (similar to the new CDT toolchain wizard).

Allow editing of launch configuration names in the descriptor edit
dialog.

Change-Id: I1c690a5c5d8a8a6d4e4698b47cd35e6cc40944c5
2017-09-27 14:30:28 -04:00
Alena Laskavaia
a91b8a801a launchbar: added tests, cleaned up API
added some tests for LaunchTarget
hide some API's for LaunchTarget
added some asserts to prevent misuse

Change-Id: I8b5b59ea8901133e79d03afe55e6c1fca2762bc1
2016-05-11 16:53:00 -04:00
Doug Schaefer
83f6bf8deb Refactor LaunchBar Control into it's own plug-in. Adjust APIs.
Added a whole bunch of APIs to the managers to enable this without
exposing internals to the control. Documentation will be added before
release.

Change-Id: I7a643eca3d48643e7a1202d83c7b4818722c54f0
2016-05-09 12:03:39 -04:00
Doug Schaefer
91be36a418 Bug 488348 - fix target remove.
Change-Id: I50d08fcfc46d723aa59fc6cc2f909de73f74d3de
2016-05-05 11:46:02 -04:00
Doug Schaefer
c3f9546a47 Fix removing of targets. Make sure we clear their attributes.
Change-Id: Ie2c6e4bd6168fae95db1680143d4c4cafc159369
2016-04-14 10:26:14 -04:00
Doug Schaefer
77fda006a5 Add attributes to launch targets.
Follows the working copy pattern to ensure changes to the target
are transactional.

Change-Id: Iff4fda10bcebc80efa11bc15f75ad7df7d4f4bca
2016-04-13 20:09:24 -04:00
Alena Laskavaia
3a66908e57 launchbar: public API for launch bar listeners
Change-Id: Ic33a181f679708de2b78aa7a49bde1ab45578b39
2016-01-29 11:01:24 -05:00
Doug Schaefer
3c6d66259a Bug 481352 - reintroduce ILaunchTarget as target selector.
Replace IRemoteConnection with ILaunchTarget. Launch target
providers that want to use IRemoteConnection can adapt to it.
Also removes IHoverProvider since tools tips on the target selector
use the status message for the target.

Change-Id: I117745e61789ef780c742da9b73bded2b598915c
2015-11-04 15:51:50 -05:00
Teodor Madan
117074d323 Fix missing copyright headers
Change-Id: I0ce153ec219cf63a90e2d832080b4aacb2860fde
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2015-10-02 11:19:35 +03:00
Doug Schaefer
e1ac2000de Final LaunchBar 1.0 API. Lots of clean up and simplification.
launchConfigAdded becomes pretty important. Requires providers
to be able to find descriptor and target from the incoming
configuration if they own it. Also added handing for a default
when the target is null.

removed ownsConfiguration in providers since the launchConfigAdd
does that by returning false.

Added enablement for config providers, but that will need work
and some default property testers for it to be useful.

For the correct way to add in a config provider, check out the
Arduino change for this API at:

https://git.eclipse.org/r/#/c/49029/

Change-Id: I46b194a933c846d7d3e4eea8a0213c4ec324816f
2015-05-30 23:34:00 -04:00
Alena Laskavaia
f4944e5e27 launchbar: enablement expressions for desc. type
added ability to define enablement for descriptor type,
to allow lazy loading of plugins



Change-Id: I9a9f494d0720f752c0cfebf20316f9f8274ee23f
2015-05-29 13:16:51 -04:00
Alena Laskavaia
b46cc02560 launch bar: per target provider and test fixes
- fixed tests and added tests for previous API changes
- fixed unsafe call of provider methods without catching exceptions
- added description of priority attribute in the extension point API
- fixed default return values in DefaultLaunchConfigProvider, in case it
is extended
- removed unused import
- fixed per target provider to support persistance
- added test for per target provider

Change-Id: If08b18b939e86757108a800d1092a62621a8c7d0
2015-05-28 16:54:43 -04:00
Doug Schaefer
f6e8b921c3 Bug 467153 - Remove last remnants of per type config providers.
Also adds a tighter check for ownsConfiguration based on class name
of the provider that created the config.

Change-Id: If197246af0906cb5af92819171ee97dc7cd30bee
2015-05-18 23:29:06 -04:00
Doug Schaefer
86c73092fa Bug 467153 - Step one of making configs per target.
WTP needs a new config for every target. That breaks our architecture
of one config per target type. But that's actually already broken
since we can't really get the proper target to the launch config.
Depending on active, we always hoped the target didn't change, but
it can. So one config per target is correct anyway.

Change-Id: I14ba8413b9494a13f3496eed5535debbc330a56c
2015-05-17 23:22:09 -04:00
Rob Stryker
4e67214de3 Bug 466489 - Limit launchbar-visible configs to public launch types; fix unit test
- Cleanup of bad catch block

Change-Id: If5c9adcc6970ffb480312e2453fcb153674cf79b
Signed-off-by: Rob Stryker <rob.stryker@jboss.com>
2015-05-06 09:37:16 -04:00
Doug Schaefer
3c33b772b8 Bug 466095 - Externalize Strings and minimize warnings.
Removed dead code and minimize use of internal interfaces.

Change-Id: Ief9c29bff721940bf5a173dfacf60b715691dcf7
2015-05-01 13:42:54 -04:00
Alena Laskavaia
f2b778e3c7 launchbar: active remote connection is not persisted in the remote
services

- if you select target for given launch config and restart IDE
it is not persistent, because it queries remote services and
it has not been set. Moving setting of target in the correct place
Note: if launch config is not created yet it would not be create
and mapping would not be set but it would be persisted by launch bar
itself
- also added protection against null listener

Change-Id: I41f8651ba2251ca9f841450fc1f511643bfde681
2015-04-27 16:05:04 -04:00
Alena Laskavaia
28985bd18d launch bar: renamed test so it picked by gerrit verifier
- also mocked another target so it does not always test local one

Change-Id: Idf59342aac75bf5c92c5ca63870eade760065f70
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-18 16:28:55 -04:00
Alena Laskavaia
b447d528f8 launch bar: tests restored and test fixes
- restored test module in pom
- fixed tests - xml tag was renamed
- fixed tests - stub functionality that rely on o.e.remote
- fixed NPE when accesssing osname from LaunchTargetTypeInfo
- added guards when calling into user defined classes 
- added more comments in java docs
- restored original launch bar tests
- current provider won't get notified when lc is removed, need to fix
more

Change-Id: I15f1a30e9f965ad5c84bdc51238ef129dc314450
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-03-18 15:24:10 -04:00
Doug Schaefer
9c7de82238 Bug 459972 - Update LaunchBar to use IRemoteConnection for targets.
ILaunchTarget is removed and replaced with IRemoteConnection. You
still have to declare a launch target type to point at a connection
type. It uses os and arch to help decide what toolchains to use for
builds.

Change-Id: I8f21b4e5043ccd8af85be91c643f58ad301c3ac4
2015-02-16 02:17:27 -05:00
Doug Schaefer
bb7f665007 Add tests and make them run (adding hamcrest properly)
Change-Id: Ifc2e5d9cd4289147539d6b90b59f689ffdf69a37
2015-01-13 14:14:56 -05:00
Doug Schaefer
8f8c2e02b6 Initial commit separating the launchbar into it's own git repo. 2014-12-10 11:31:47 -05:00