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

82 commits

Author SHA1 Message Date
Alena Laskavaia
3eb77d17f6 launchbar: track non launch bar launches
- when user runs something not from launch bar, launch bar won't updade
which creates unplesent gap in experience.
This fix makes launchbar track launches and update active
descriptor/mode/target depending on what was launched.

Change-Id: Ie70c6927997bba8ee06a393e767e02ccb4cf4cb7
2016-01-29 10:20:39 -05:00
Alena Laskavaia
ca538d05a5 launchar: launch target wizard fixes
- removed hack with overloading wizard classes
- added wizard contribution, so it can be bound to command or used
without launchbar
- removed hack with using category to identify launch target wizard
- added more comments in schema
- fixed hack when parsing wizard if they categorized

Change-Id: I791679ef30c395db10ec2528a6e2b90370e56a75
2016-01-26 09:47:48 -05:00
Alena Laskavaia
99da8cee74 launchar: action to invoke new launch target wizard
- new extension to contribute a wizard to launchTypeUI extension point
- copied bunch of wizards from platform ui since they cannot be extended

Change-Id: I45f2801fe04a24e7f8d2bbbd3f31ada1de4a1fc3
2016-01-25 16:51:44 -05:00
Doug Schaefer
92d08ca430 Bug 466489 - Filter out external tools builders.
Change-Id: Id14a01246c013fc47c76f693dc7f9d063f361163
2016-01-20 16:55:53 -05:00
Alena Laskavaia
f16f7a86c8 launchbar: launch button - mode overlay
- when mode select - change button to match mode, change tooltip to show
mode name
- also added errors settings

Change-Id: Id537e0fe65d8632dbd97183680d2bc1b3d635c86
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2016-01-19 15:11:40 -05:00
Rafael Peria de Sene
ab9ad3ffba launchbar: fix url to eclipse updates
Fix the wrong URL which was braking the build.

	- <url>http://download.eclipse.org/eclipse/updates/4.5milestones/</url>
	+ <url>http://download.eclipse.org/eclipse/updates/4.5/</url>

Change-Id: I647301fe72432df0a347f7541605eba41bb8baa0
Signed-off-by: Rafael Peria de Sene <rpsene@br.ibm.com>
2016-01-19 13:12:48 -02:00
Alena Laskavaia
7972418551 launchbar: open stanard eclipse launch configs dialog on edit
- when we click gear on launch descriptor we open a custom dialog,
there is no really need for it we can just open standard eclipse launch
configuration dialog and select configuration from the descriptor

Change-Id: I40f52baa5cc161a7281231600c29a4f5609733a5
2016-01-14 13:59:01 -05:00
Alena Laskavaia
cd852c72c5 launchbar: use LinkedHashMap to avoid random order
order of targets returned by target manager some-what important, use
linked hash maps everywhere to avoid randomness of hashmap

Change-Id: I670859854f10006c8591c3ebaa8f036d3127b5b8
2016-01-11 15:09:01 -05:00
Alena Laskavaia
cec2cbf4dc launchbar: more reasonable launch target defaults
- if new descriptor is created check first of current target is suitable
before calling getDefaultTarget
- change method getDefaultTarget to return last target from the list
rather then first, since list is kept in order of addition, meaning last
entry is the most recent

Change-Id: I0d9a7760cf52c7dff761f760f3fce05d9ca4c540
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2016-01-11 11:45:21 -05:00
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