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

34 commits

Author SHA1 Message Date
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Jonah Graham
6d4f20edd6 Bug 540737: Add 8 and 24-bit color support to terminal
Change-Id: Iab3b648fb3bfa8f43f333371bd118e90a3a182f2
2020-08-03 17:28:59 -04:00
Jonah Graham
d6818fbb03 Bug 549697: Define standard terminal colors with Eclipse preferences
New types TerminalColor and TerminalStyle replace StyleColor and Style
to separate the meta information about styles and colors from the
user currently selected colors.

The StyleMap maps the TerminalColor/Style to the concrete fonts and
colors used in the display.

Colors are now configurable via the terminal preference page using
the new TerminalColorsFieldEditor.

All preferences are now passed in to the VT100 control so that
different terminal consumers can have different preferences and
styles.

Remove dark theme contribution. The colors of the terminal are
now inherited from the editor settings (using SystemDefaultColors)
which come from the theme. If we were to invert colors
too when in Dark theme then the colors actually end up light
background.

Change-Id: I2cf5427ac0be9a189a7f0d3565cfc97ceedb8749
2020-08-03 17:28:59 -04:00
Jonah Graham
56d741a50c Bug 558536: Revert "Bug 549013 - Eclipse menu won't display on Ubuntu 16.04 LTS when SSH/Serial command shells are opened"
Using the mouse and not the focus listeners leads to lots
of weird, unintended consequences. For example:

- If mouse does not exit the control (because, e.g. it was not
in the control) then captureKeyEvents(false) is never issued
- If mouse does leave control, then control stops capturing
events. This means that although the cursor and focus is still
on the control, keyboard shortcuts no longer go to the control,
so Ctrl-C becomes copy again. This means, depending on where you
move the mouse changes the behaviour of the control.

This reverts commit 19351cbc2b.

Change-Id: I4f57c659e21d823df049b095159a34e5c110ef29
2020-05-16 16:40:29 -04:00
Jonah Graham
3201a07fc3 Bug 549697: Mark update font methods in Terminal as deprecated
There are two ways of specifying fonts in the terminal,
one via font definitions, and one via the font directly. The
method via the font directly was already deprecated in the public
API, this commit follows that deprecation chain through to
make it easier to identify which code paths are not likely
relevant anymore.

These methods could simply be removed as part of the major version
bump.

Change-Id: I05d746c429c4e6c3ced5ee7bb7a6172e0a255c2d
2020-05-10 15:18:24 -04:00
Jonah Graham
fc8ed250b1 Bug 540737: Remove false optimization
GC.getForeground / Background always create a new Color object,
so this if expression was always true.

Change-Id: Ief4ccaf1adb70967301411b012c0474608f425cb
2020-05-10 14:01:44 -04:00
Jonah Graham
b3e4e60155 Bug 540737: Rework cache storage of styles
This may need to change to an LRU cache if we end up with
too many potential styles

Change-Id: I66bb6a4b9f67c6fd8656875f138899dd3a67a360
2020-05-10 14:01:44 -04:00
Jonah Graham
963ce943ba Bug 549697: Extract standard colour names
The inconsistency of lower case and upper case in the internal
representation of the colour names made it harder than it should be
to find where colours are used in the code.

Note that the SytleMap creates lower and uppercase entries for each
colour.

Change-Id: I16b4ebe4a97adecd01f835319aa0f0d175ae3bb6
2020-05-10 14:01:44 -04:00
Jonah Graham
0a3e5721d4 Cosmetics.
Change-Id: Ibb31fa697065add6d3341faf5bdc84e24504e1e3
2020-05-10 14:01:44 -04:00
Jonah Graham
f294b6583b Bug 542957: Scroll terminal number of lines indicated in wheel scroll event
The original code used the direction provided by the scroll wheel, but
not the magnitude.

Change-Id: I7f5e2083599990f4f4999aba46ef38602b9fe565
2020-05-10 10:56:35 -04:00
Jonah Graham
39cc3af569 Bug 561319: Remove flickering in terminal when changing selection (fixup)
Dispose of the image used for buffering GC.

Change-Id: I80b6edea3211847265140aa8992546a16474cadf
2020-04-20 16:30:19 -04:00
Jonah Graham
adb7247d5c Fix warnings in o.e.tm.terminal.control bundle
Change-Id: Ief69751ba4affc13240cfdb4b79e190b3356bbd9
2020-03-30 01:47:32 -04:00
Jonah Graham
28268ad589 Bug 561319: Remove flickering in terminal when changing selection
This is done by buffering the drawing of the line of the terminal.

Change-Id: I593a3b99080d779046ea37497d93a25584c472c1
2020-03-29 11:04:23 -04:00
Alexander Kurtakov
a7635221af Move away of deprecated Integer/Boolean
constructor.


Change-Id: Iab91e05314206725d8175d30bfb2866c0d99a8d7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 22:37:24 +02:00
Alexander Kurtakov
ec7775edc7 Move more terminal bundles to Java 8 BREE.
And run save actions to modernize code a bit.

Change-Id: I4a718e73e8472679aa4ead7fdefe4259004ef6d6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 22:32:24 +02:00
Alexander Kurtakov
cc8211514f Lambda conversion in terminal code.
Change-Id: I30c23a89b3e78306d3e05fa65f5d2d8dd9e23540
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 14:45:26 -05:00
Alexander Kurtakov
fa092f2a4a Remove unnecessary SuppressWarning(cast) and casts.
Change-Id: I9248a3fd2481b590e8437bf7f880f936ba88ce6c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 04:01:57 -05:00
Alexander Kurtakov
61d10d11ef Generify some getAdapter implementations.
Change-Id: I2cd3dad7821e3c6ae3f0371edda5e511beff4014
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 00:56:20 -05:00
Alexander Kurtakov
ae8d8b16b8 Get rid of some annoying non-Javadoc comments.
Change-Id: I55b5fcce4948ec17a97a199bb75627e8e7a4c462
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-14 23:09:59 +02:00
Jonah Graham
165fd275fb Bug 559474: Correct feature and bundle provider names
It is now Eclipse CDT providing these, so update to match

Change-Id: I1bc83b77d491d1475db51cbb6396571893d8ee42
2020-01-31 13:22:20 -05:00
Jonah Graham
cab9aa30f2 Bug 559474: Bump all terminal versions to 4.6.0
The 4.6.0 version marks the first version of terminal built in
CDT and in a different git repo - there are no API changes.

Change-Id: Ic6c4089d7e6ccbb2701bf59fedba2b6a8dd4c856
2020-01-31 12:45:38 -05:00
Jonah Graham
c58c28b9cc Bug 559474: Format all TM.terminal code to CDT standard
This is applying the per-project code formatting rules that would
be applied on save in the JDT editor

See also Bug 540373

Change-Id: Id04c972c3b3cb0a6ed1ab8581185359b7cf43f91
2020-01-31 12:20:41 -05:00
Jonah Graham
213770265a Bug 559474: Normalize .settings
Change-Id: I4b8ca8341a3f479a74a06621f68534732cff6957
2020-01-31 12:20:41 -05:00
Jonah Graham
474f886fe2 Bug 559474: Add all file types to .gitattributes
Change-Id: Ib63f010cf5e741beb6a77096e958ab5478133635
2020-01-31 12:20:41 -05:00
Jonah Graham
16674f28cf Bug 559474: Normalize features to match requirements of CDT
Change-Id: I274a6e5f985d60d1ae6fc929af3eb0fdcea868ba
2020-01-31 12:20:41 -05:00
Jonah Graham
6f6ca64ed6 Bug 559474: Integrate tm.terminal into CDT's releng
Change-Id: I46db42560ec0b93bb265f45920d78c97a32338c3
2020-01-31 12:20:41 -05:00
nickboldt
d2884b8150 bump to 4.5.102-SNAPSHOT
Change-Id: I1481ac53d6bd5a0c66eced40acfa77a51c3c73f4
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-17 08:09:50 -04:00
nickboldt
a0e9810512 bump to 4.5.102-SNAPSHOT
Change-Id: I12c461c9d05241629442ae84ea1c2f439a23039d
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-17 07:53:45 -04:00
Julien Dehaudt
19351cbc2b Bug 549013 - Eclipse menu won't display on Ubuntu 16.04 LTS when SSH/Serial command shells are opened
Buglink: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549013
Signed-off-by: Julien Dehaudt <julien.dehaudt@st.com>
2019-07-17 11:21:08 +02:00
nickboldt
302732adfa upversion to .100 as now based on Eclipse 4.11
Change-Id: I99acb204f490355d91a4de3f4233329246a0b9d0
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-01-31 18:04:08 -05:00
nickboldt
cf9fe9e6ac Bug 538094 - update to EPL 2.0 (leave EDL 1.0 unchanged)
Change-Id: I5ef20c1c81c17896e3c73ae0aa8c6cf47a708016
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-11-01 12:21:58 -04:00
nickboldt
c8652e12ba bump up to 4.5.1 since we no longer support 32-bit (breaking change) part 2
Change-Id: Ifa14f8b829bf1859e36ffce719e6cfac14012236
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-09-25 14:01:32 -04:00
nickboldt
0650a82226 add intermediate poms in terminal/plugins and terminal/features; upversion everything to 4.5.0 and fix plugin deps to use new version; fix versions of dstore plugins
Change-Id: Ic5dd336a22e822e848b9fe63f02029c24bd0bf08
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-08-28 21:01:29 -04:00
nickboldt
dd1eaecc6e Move terminal files into subfolder
Change-Id: Ibab77ef2ba53f4fd91363269330955eca5fd2bb3
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-08-28 12:54:02 -04:00