1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 08:05:24 +02:00
Commit graph

73 commits

Author SHA1 Message Date
Alena Laskavaia
e9db9389f2 launchbar: fixed widget is disposed exception
Change-Id: I8c39e7bc55e88b8b93f6d445b9b94face7f4d1f1
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2016-01-07 15:39:42 -05:00
Doug Schaefer
83ecb792db Bug 484993 - Add remote ui feature to the build.
Change-Id: I4c1e48fd8018c952d6f743c91b64022274c7e81a
2015-12-31 00:06:11 -05:00
Doug Schaefer
7a1e27eb12 Bug 484993 - Hook up label provider to remote launch target
Since we're using label providers to provide the name and image
for ILaunchTargets, we don't need the dual id, name in the launch
target. Switching to id instead of name tho.

Change-Id: I96071cfd40873494d4cf73f0e845d62bc46ea1cb
2015-12-30 21:59:47 -05:00
Doug Schaefer
b588b08034 Bug 484993 - Feature and build for Remote Launch Target support.
Change-Id: Id07df46546e7852443377f0abd68bd8592e5f9e6
2015-12-29 18:55:11 -05:00
Doug Schaefer
2b373042a4 Bug 484993 - Add support for IRemoteConnection launch targets.
Creates a new core plug-in that bridges the gap between ILaunchTarget
and IRemoteConnection.

Also adds unique id's to ILaunchTarget that are separate from the
user visible name. This is to allow for unique names in o.e.remote
which include the connection type and the connection name. The launch
target type is for all o.e.remote targets.

Change-Id: I08d4c3534fc0947f946bfcdec3f13df04fc4ec98
2015-12-29 18:40:23 -05:00
Alena Laskavaia
b63caf6c72 launchbar: fixed some visual glitches in custom widget list
- list background was not inherited creating spotty list
- removed rectangle around list items which was very custom and non
stylable
- removed paint lister after lazy item initialization to prevent lag


Change-Id: I4e458c816dcb96138871b906e43806b0cf2e72e8
2015-12-11 16:17:33 -05:00
Doug Schaefer
7b5cdff64f Bug 482938 - Add missing getLaunch method to return the TargetedLaunch.
Change-Id: Ifea22b29a24e7afbdd6e60f7e32369b29fe11a5c
2015-11-26 16:15:13 -05:00
Alena Laskavaia
1df3be627f launchbar: API to get text of the custom control for UI testing
Change-Id: I8824070c562dc830b6791e6e7670ed9ebf42b758
2015-11-24 16:45:07 -05:00
Doug Schaefer
632980a73a Bug 482938 - Pass LaunchTarget to launch delegates.
Creates a new standard delegate that implements the targeted launch
delegate interface introduced earlier. Also provided a standard
launch object that stores the launch target to be launched on.

Adds storing of the config to target mapping in the launch target
manager. Sets that mapping as close to build/launch time as we can.

Change-Id: I78a1412af043f0be240d5617fcfc08b81c3fb3ea
2015-11-24 14:52:49 -05:00
Alena Laskavaia
9435e1f802 launchbar: fixing colors to be compatible with skinning
it looked awful in dark skin, now it should be inheriting
system colors properly

Change-Id: If963a19651ac30b20c7a2cb100b285f33f799ca9
2015-11-23 12:16:14 -05:00
Alena Laskavaia
d5c63d386c [launchbar] Support launching without a target
- we should not make assumption about the target and let
delegate deal with it. For example if no targets are
created and you run for the first time, delegate can offer
to create a target
- also if launch bar participants don't care about targets at all we
should be able to still show modes, etc
- so I removed filters on null target and let participant deal with it
(note null target is not the same as Local). To avoid NPEs null target
is actually an object ILaunchTarget.NULL_TARGET

Change-Id: Ie2a4d3430284adbb137a4565d9976a0ba554d41f
2015-11-09 15:42:55 -05:00
elaskavaia
503a393e4e launchbar - widget is disposed exception
Change-Id: I059f5f30d34ab8858fdf6ac61d513f912a56ea19
2015-11-05 15:42:48 -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
Torkild U. Resheim
edd5f69a87 480248: [LaunchBar] Add preference to disable launch bar "target
selector" 

Change-Id: I26d74addc779786403077978f9a44bc88a33b999
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=480248
Signed-off-by: Torkild U. Resheim <torkildr@gmail.com>
2015-10-21 23:06:46 +02:00
Alena Laskavaia
50e08bc7d5 LaunchBar: use o.e.debug control to manage lc tabs
- current wizard page tries to replicate functionality
of lc editor in regards to tabs but it does not work
the same which creates issues for contributed tabs
- for example it never calls "activate" on the tab
- we also have rendering problem - pages are not resized correctly and
show up empty until resized
- I switched to use standard control called
LaunchConfigurationTabGroupViewer to show tabs. Hack with fake
LaunchConfigurationDialog has to remain to interact with this control.
- If we move it to o.e.debug we have to fix these classes to remove some
of the hacks and expose proper APIs to re-use this control

Change-Id: Ia39706fb5972883167f5f39751985d97e1815c86
2015-10-06 11:44:53 -04: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
Alena Laskavaia
ce54f54a33 launchbar: fixed refresh of connection status on toolbar
- when we show icon with connection status it does not refresh
automatically because launchbar does not propogate connection change
events. Fixed that.

Change-Id: I00c580d303460f6ead3a2aa3a91e8f151fd9f38a
2015-09-09 10:20:40 -04:00
Doug Schaefer
3c10977fd9 Upversion launchbar for Mars.1 (launchbar 1.0.1).
Change-Id: I6f24e2c7c67e09ad67a9c7a5096236e293a91557
2015-09-08 11:26:16 -04:00
Alena Laskavaia
806ae521c6 launchbar: when there is no descriptors show all connections
- when you bring IDE in new workspace all drops downs are empty,
so you create new connection from target drop down, but its still
remain empty after connection is created which is quite confusing. 
So its better to show
all connection when descriptor is null (i.e. no descriptor at all)

Change-Id: Idef1b676baef4978f8327135691e485ca287d7fe
2015-09-08 10:51:34 -04:00
Alena Laskavaia
4b6a04fac1 launchbar: resurrect gear on target selector
it will open Properties dialog on connection.
Contributors can adapt connection to their class
to show various property pages and allow to edit "targets"

Change-Id: I0fe486b069450bbf8379930ffdeaabd9c8dbbd6e
2015-08-26 13:49:06 -04:00
Alena Laskavaia
38577c4ec9 NPE in StopActiveCommandHandler when origin is null
Change-Id: Ic6749311328d9521d64c5d339006c0065e200117
2015-08-25 09:30:27 -04:00
Alena Laskavaia
6c7b1ba259 launchbar: make launchbar selectors resizeable
Change-Id: Iba264b3b1a666257663ba36bca9262d0c6339f89
2015-07-27 10:18:58 -04:00
Alena Laskavaia
0fc265dc4e launchbar: fixes in config edit wizard page
- removed code that did nothing
- added dispose code to restore lc dialog otherwise if you cancel cannot
bring any sort of lc dialog again
- added code to have unique lc name as suggestion

Change-Id: Ia33abed6019edb097cc775f00cbfea1629e9720b
2015-07-24 08:40:55 -04:00
Alena Laskavaia
9401e51001 launchbar: fixing some labels
- mode selector tooltip Launch configuration -> Launch Mode
- launch selector Launch configuration -> Launch Configuration
- new text Create New Configuration... -> New Launch Configuration...
(consistent with tooltip for same button in lc dialog)

Change-Id: I339ce4263783a08d10f11f3474abf9f4b468e775
2015-07-24 08:40:55 -04:00
Alena Laskavaia
9986e4d6f6 launchbar: using native toolbar items for buttons
- tested on linux ubuntu 14.04 gtk 3.10, mac os x 10.10.3
and windows 7 - looks good. On linux it has extra
spacing but this is consistent with other toolbar items.

Change-Id: Iafeb1510ce83163f77a09f61c28a4f67d14ab0a1
2015-07-23 14:37:07 -04:00
Alena Laskavaia
3a6a685bdb Bug 470717 - [Launch Bar] NPE in some launch configuration when creating
through launch bar wizard

Change-Id: Ib4627341b3074613dd8e42e71e85161267a37c65
2015-06-22 10:26:10 -04:00
Alena Laskavaia
a637a8a4ef Bug 469522 - [Launch bar] An internal error occurred during: "Stopping
launches" (NPE)

Change-Id: I3d3af8182680a39cccc734015927235bb4bcc227
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2015-06-22 10:26:01 -04:00
Alena Laskavaia
329f20b8c9 launchbar: NPE in ModeSelector is group does not have an image
this prevents mode selector from working at all

Change-Id: Iefc80b8a71cc4550e35fedb2dadcc450f256cb63
2015-06-19 09:56:46 -04:00
Doug Schaefer
d6a022692a Remove 32-bit Mac. It's gone now.
Change-Id: Id2b00af1eda3a5c990a4f7ec774b68628c565d71
2015-06-19 09:56:35 -04:00
Alena Laskavaia
9953b7f05d launchbar: get rid of startup warning about missing enablement expr
Change-Id: Id9cefa69f1cf532d54eb5fd18724d8ae1d50aa52
2015-06-15 09:10:24 -04:00
Alena Laskavaia
01bfa62a4d launchbar: target config provider lc working copies bugs
per target config provider adds working copy into cache on change
notifications which creates problems
a) they never cleaned up
b) now when its searching its picking a wrong config (wc) causing 
it to return invalid config

fix push up higher in launch bar itself, no point propagating
launch change notifications from working copies

Change-Id: I3b7bc94f3ef6ab385fc43cc5482ab4c9b943e8fa
2015-06-03 11:11:45 -04: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
Rob Stryker
652500b200 Bug 468399 - mode selector filled with tostrings
Change-Id: I109b728b2b7e1356c026c11b3b3663089940c5fe
Signed-off-by: Rob Stryker <rob.stryker@jboss.com>
2015-05-26 15:57:11 -04:00
Alena Laskavaia
93a926385f launch bar: API for config added/changed
we missing API to notify provider that configs are added/changed.
it required to keep internal provider map in sync, i.e. restore
the state of config/descriptor map on startup for example.

Change-Id: I3af24a21d5d41084f85731f6da2f7aca2df81f1c
2015-05-26 14:00:16 -04:00
Doug Schaefer
32a1b3134c Fix missing about files. 2015-05-21 10:21:47 -04:00
92a0b1cb0e launcbar: shash does not drag on mac
Change-Id: I89c37ad8ae0a3ea6cc3e2d5b2450fd8ed1bafa33
Signed-off-by: <elaskavaia.cdt@gmail.com>
2015-05-20 16:02:31 -04:00
Doug Schaefer
456b2f42b5 Remove the special launch config delegate for remote.
It's too hard to replicate the entire debug platform launch sequence
in order to insert the target this way. We'll need to come up with
something better if we want to share launch configs between targets.
But that will have to wait until Neon at the earliest.

Change-Id: I208eed527961e172316f0b12b869be5665a6aca5
2015-05-19 10:41:04 -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
899208ac28 Bug 466488 - Clicking edit on launches that have no launch group, tabs,
or have other errors, causes several error dialogs to pop up.

Change-Id: Id5b56c2696e4911143a4daeb93cc8a442b3ebe33
Signed-off-by: Rob Stryker <rob.stryker@jboss.com>
2015-05-07 14:29:11 -04:00
Alena Laskavaia
d7a91f70ee Bug 466490: [launchbar] Color of the sash
Trying to make sash more visible

Change-Id: I6baeb1b05451e808c86204d0b0b1a1c13af5c7de
2015-05-07 08:31:39 -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
Alena Laskavaia
fd58fed7e4 launch bar: corrected edit dialog handling of adding of new LC
- launch bar launch config was not handling add of another launch config
correctly - it was just resetting itself to handle new LC. This cannot
really be done because this dialog is bound to launch group and new lc
may not be part of it and may not even support the mode current dialog
is in. Also that make missyncronization between LC stored in parent and
LC stored in getTabViewer which can cause other nasty problems.
So let parent handle adding (which only handles locatio change) and for
duplication we just open a new dialog and close current one.

Change-Id: I2dde5c3af26d901d1f4b18cad84a83a9857a6ca9
2015-05-05 16:33:56 -04:00
Alena Laskavaia
03ab4beaf8 launch bar: "launch" button name in LC edit dialog
- use same name as in LaunchConfigurationDialog, i.e. Run, Debug, etc.

Change-Id: I497ff5c7913c47e3cfeb736557a3c8e90040d2ef
2015-05-05 11:19:25 -04:00
Alena Laskavaia
3e548fced4 launchbar: hook up connect/disconnect state for target selector
Change-Id: I93240fa2385053454fe9f84279eddc1518290d4f
2015-05-04 13:44: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
Doug Schaefer
e8eec12ec4 Bug 466089 - Stop only launches for the active config.
Turns out to be pretty easy, just check the config for each launch
and stop the ones that match the active config.

Change-Id: Ib74a31405382b2d1996b257f7e8ad1d85a23e6c6
2015-05-01 12:21:04 -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