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

234 commits

Author SHA1 Message Date
Martin Oberhuber
a3e0c996a1 Merge "Bug 517358 - RFE: method to read TextCanvas content" 2018-01-21 15:42:58 -05:00
Martin Oberhuber
198e9602dc Releng: Revert to jarsigner-1.1.2 since 1.1.4 fails with Java 8
Change-Id: Ifab75c4dd0c96c9217cf8154ab72f79a924c54b7
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2017-06-14 06:35:28 +02:00
Martin Oberhuber
9a423667bc Bug 516330 - Make terminal.connector.serial REQUIRE gnu.io non-optional
As the o.e.tm.terminal.connector.serial , which is based on RXTX,
was taken out of the master terminal.feature, it is now only available
as a separate feature. Consequently, it only makes sense installing
when RXTX is also available - the RXTX dependency was thus made
non-optional.

Change-Id: If6528a6518da57335c7449def359e0f645c77b67
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2017-06-13 15:08:00 +02:00
Martin Oberhuber
7b52e3974c Bug 518121 - Support multiple terminal connectors with identical label
In case multiple terminal launcher delegates are registered with
identical label, the ID of a delegate is used as fallback instead
of the label in order to disambiguate.

This doesn't look pretty in the UI but it works and it's a generic
solution for an atypical problem.

Change-Id: I4028e1819f7405c2cb65eacf4e84f437900d884e
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2017-06-13 10:44:54 +02:00
Martin Oberhuber
3e539b7331 Releng: Fix Terminal Unittests under Tycho with Jacoco
Change-Id: Ib4daa2402917122edb4b561dbf1ae696c80f0c7c
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2017-06-13 10:21:49 +02:00
Doug Schaefer
b63f284ac3 Bug 518116 - Allow user to enter a non-listed port name.
This is a quick fix to allow users to enter cdtserial port
names that we don't pick up in the device list.

Change-Id: I9473278c6e65e2a2bc7bb40c78e41fdf9d349f44
2017-06-12 14:39:16 -04:00
Václav Kadlčík
3ee6618da1 Bug 517358 - RFE: method to read TextCanvas content
Teach TextCanvas to provide all the text contained: getAllText().

The actual change takes place on the level of ITextCanvasModel
(interface) and AbstractTextCanvasModel (implementation); TextCanvas
just redirects the request there.

One bit of the existing code has been refactored: part of
AbstractTextCanvasModel.extractSelectedText() has been extracted
into a separate method - scrubLine() - so it can be reused in the
new code.

The primary (and probably the only one) use case of this new
extension is test automation: SWTBot- or Red Deer-based tests can
read content of TextCanvas instances and verify that they contain
what's expected, e.g. output of Docker containers or gdb sessions.

Change-Id: I92092c0f9837639d13d6bc32ae5b47acd24c54c1
Signed-off-by: Václav Kadlčík <vkadlcik@redhat.com>
2017-06-02 10:24:02 +02:00
Martin Oberhuber
ae68201315 Bug 516330 - Uprev all features to 4.3 and introduce Maven -Pcdtserial
All features are upreved to 4.3 along with the Parent POM for the
upcoming Terminal 4.3 / Oxygen release. Plugin versions remain
unchanged, keeping them as semantic versions. Along the lines, also

- Introduce a Maven Profile -Pcdtserial, which is active by default
  to build the cdtserial plug-ins. This can be de-activated by property
  -Dnocdtserial on the mvn command-line. This is necessary to build /
  validate Terminal against older streams (juno,mars,...,neon) which
  did not have the necessary cdt native serial dependency.
- Update the update site to
  http://download.eclipse.org/tm/terminal/updates/4.3
- Update Copyright Year in all features to 2017
- Update p2 repo URLs of Oxygen and Orbit dependencies.
- Update the terminals.psf project-set file adding the new cdtserial.

Change-Id: I8992fe4bb8ac08abe783d33fbb8b00b4e864fd73
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2017-05-16 11:47:00 +02:00
Doug Schaefer
6908d52f0a Bug 516330 - Serial Connector that uses CDT Serial Port.
A few short cuts taken but it's usable. There's no memento for this
connector since it's usually not a good idea to always connect to the
serial port on startup since there can only be one client at a time.

Change-Id: If8ea1c770597068346bb44a6444a6d231d38bca9
Signed-off-by: Doug Schaefer <dschaefer@blackberry.com>
2017-05-16 06:09:54 +02:00
Martin Oberhuber
c4ee0fb943 Update terminal.ui plugin version after the 4.2 Neon.2 release 2016-12-22 11:53:12 +01:00
Martin Oberhuber
e0cd31ea7d Bug 509631 - Missing Scroll Lock icon in Terminal View on Oxygen
The Terminal used to "re-use" icons from org.eclipse.ui.console -
this did not work any more when that plugin changed .gif icons
to .png for better HiDPI support. Copying icons into the terminal
view plugin resolves the problem for all Eclipse versions.
2016-12-22 11:34:34 +01:00
Doug Schaefer
c0335a085e Bug 507989 - Allow choosing of o.e.remote connection type
Collect the list of connection types that support the command shell
service and pass that to the RemoteConnectionWidget so that you can
select which one you want.

Also adds a fix to the connection manager that was closing the
terminal of read returned 0 bytes. That's generally not an end of
file condition, especially with Serial Ports. There ugliness to them
where you can't close the port while it's blocked on the read, which
means it needs to return once in a while.

Fix setting of title and force new to match the other delegates.

Change-Id: I6b78d789ca28284379d8f1136062ec180e1a8f5c
Signed-off-by: Doug Schaefer <dschaefer@blackberry.com>
2016-11-24 10:27:17 -05:00
Martin Oberhuber
257a90f410 [Releng] Update Terminal version to 4.2
Change-Id: I5524741a709c0c5cdd8860561de0992ff9aa75b6
2016-09-19 16:34:33 +02:00
Martin Oberhuber
e904f465b8 Bug 475422: Fix terminal display on MacOSX Retina
Change-Id: I4ca6cf928840049842542db83b2afbd4dfd0e848
2016-09-19 15:31:31 +02:00
Anton Leherbauer
ad7aa452d3 Fix API tooling issues 2016-06-30 15:03:46 +02:00
Anton Leherbauer
092e089d40 Bug 494108 - [telnet] Telnet line-ending should be configurable 2016-06-30 14:25:49 +02:00
Dirk Fauth
159afcfd92 Bug 494508 - Show in local terminal only available in project explorer
Added the menu contributions to
popup:org.eclipse.jdt.ui.PackageExplorer?before=group.edit additionally
to the ProjectExplorer contributions.

Change-Id: I1438057d82389c332c3678a3568bf0706497b49f
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
2016-06-23 22:13:16 +02:00
Uwe Stieber
0bb01ded3a Fix Bugzilla 496314: "Initial Working Directory" preferences doesn't
work
2016-06-20 09:33:40 +02:00
Martin Oberhuber
da9b43493e Polish: Fix Findbugs Warnings
Change-Id: Ia43fad4721162d3e834d95773ad604247cd92556
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2016-06-06 01:36:16 +02:00
Martin Oberhuber
8854fc9696 Polish: Export all packages
Change-Id: I95258bdb898112c0a78431281fec9e5a687ecf90
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2016-06-06 01:29:33 +02:00
Martin Oberhuber
0742948918 Polish: Fix NewTerminalView Action Label
Change-Id: I09ab930ee8f1428e4109277e5dc4a024031ce7a4
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2016-06-06 00:20:22 +02:00
Martin Oberhuber
63b2c797b7 API Tooling: Add missing @since 4.1 tags
Change-Id: I9bead7f0537bcbff89fca582fc8510d441eeb39c
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2016-06-06 00:20:11 +02:00
Uwe Stieber
838e82efeb Remove unused suppress warning tag 2016-03-19 09:19:19 +01:00
Uwe Stieber
23e5ed3b10 Fix NPE on initializing the external executables state service provider
- part 2
2016-03-19 09:18:30 +01:00
Uwe Stieber
6b26ac987b Fix NPE on initializing the external executables state service provider 2016-03-19 09:15:45 +01:00
Uwe Stieber
b093d30afe Fix casting to the correct type for compatibility with older Eclipse
releases
2016-03-09 09:01:45 +01:00
Uwe Stieber
4f29bbabc0 Fix copyrights 2016-03-08 17:03:20 +01:00
Uwe Stieber
690bb95530 Fix NPE in ExternalExecutablesManager 2016-03-08 17:01:11 +01:00
Dirk Fauth
a02adccef6 Bug 460496 - [TERMINALS] Make it easier to run Git Bash
Added auto-detection of Git installations on Windows

Change-Id: I42702126ffb550dd8b289a45ee552d5095a1a615
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
2016-02-10 21:03:30 +01:00
Dirk Fauth
e25c78d251 Bug 460496 - [TERMINALS] Make it easier to run Git Bash
Added external executables to the terminal combobox on the Open Terminal
Dialog (Ctrl+Alt+Shift+T)

Change-Id: Ia9d9a3959fd95b666c4a1ad4474b519103297920
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
2016-02-10 20:58:08 +01:00
Dirk Fauth
0c1dea7137 Bug 460496 - [TERMINALS] Make it easier to run Git Bash
Moved the code and all related configurations regarding showin from
o.e.tm.terminal.connector.local to o.e.tm.terminal.view.ui

Change-Id: If548ae729173c6127f7cf918aa2f783cd6cb3961
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
2016-02-10 16:02:54 +01:00
Dirk Fauth
8eb7a7f21d Bug 473107 - [TERMINALS] Show-In menu type depends on project type
Introduced an ISourceProvider to check if external executables are
configured. Renamed the Terminal context menu "Show In" to "Show in
Local Terminal". Extended the visibleWhen check so that the "Show in
Local Terminal" menu is only visible in the context menu if an external
executable is configured. Otherwise it is possible to open the Terminal
via the inclusion of the command in the default "Show In" menu.

Change-Id: I618b2352a8973d6591cf9e673dc4eb01aeec072e
Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
2016-02-10 13:37:12 +01:00
Kaloyan Raev
916992ab3d Bug 485658 - NPE prevents displaying the actual error
Change-Id: I66ec6d071a6807e6f90835bdc09e9cc46e6808fe
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-01-12 19:02:29 +02:00
Marc Khouzam
222deaa4e4 Missing string for %TerminalConnector.local
Change-Id: I1f2dc6ba9d59763f78b06c404581ee19a6f311d7
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-12-17 09:45:06 -05:00
Anton Leherbauer
e7939cc360 Fix handling of exported bash functions in environment 2015-12-16 09:34:00 +01:00
Ryan Prichard
44f0083f72 Reply to a DSR(5) request for ready status.
When TM Terminal sees this:

   ESC [ 5 n

It replies indicating that the terminal is OK:

   ESC [ 0 n

This escape sequence is documented here:

   8.3.35 DSR - DEVICE STATUS REPORT.  Page 40.
   http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-048.pdf

Motivation: I'd like to switch winpty from using DSR(6) to DSR(5) as its
ESC flushing command.  When winpty sees a bare ESC, it can either
synthesize a VK_ESCAPE keypress or wait to see if the ESC was part of some
other escape sequence.  It tries to deal with this by generating a DSR(6),
which should flush out the remaining bytes of the sequence, if there are
any.  DSR(6) is suboptimal, though, because the reply collides with the
sequence some terminals use for F3 with a modifier:

    ESC [ nn ; nn R

DSR(5) generates a DSR(0) reply, which does not have the same problem.

DSR(5) is supported by all the terminal emulators I tested, including
xterm, rxvt, rxvt-unicode, gnome-terminal, konsole, putty, mintty,
OS X's Terminal.app, and IntelliJ/jediterm.

Signed-off-by: Ryan Prichard <ryan.prichard@gmail.com>
2015-11-30 20:31:00 -06:00
Anton Leherbauer
194f4e2611 Bug 477702 - Telnet line ending needs to be CRLF 2015-10-01 12:35:46 +02:00
Martin Oberhuber
02cf48046f Cleanup: Fix Terminal API Markup part 2
Mark Terminal Interfaces as @noextend @noimplement where implementation
doesn't make sense (since it's just constants or an abstract base class
exists for extending). This helps giving room for safely extending 
Terminal interfaces in a backward-compatible way in the future, by
leveraging Eclipse API Tooling.

Change-Id: Ia5a99f9379ddd73dd58afe4dec4540ae24633b09
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2015-09-16 16:24:27 -04:00
Uwe Stieber
1a1bcf774b Improve "New Terminal View" handling.
- Add a command to open the new terminal view. Allows to associate a
short cut
- Open the "Open Terminal" dialog on creating a new terminal view
2015-09-14 11:37:32 +02:00
Martin Oberhuber
ec23b12ef2 Cleanup: Fix various API Markup Issues
This fixes API related issues and warnings by adding appropriate markup
where it had been forgotten. This is formally breaking binary
compatibility in some cases, but we are OK releasing as 4.1 since it
just codifies the original intent of the API.

1. org.eclipse.tm.terminal.control/MANIFEST.MF:
   - Replace unintuitive "x-friends" with more obvious "x-internal". 
   - Update the terminal.test/.classpath instead for giving access.
   - Add @noimplement keywords on interfaces where appropriate.
2. org.eclipse.tm.terminal.view.ui:
   - Add missing @since tags, and mark the view.showin package as 
     "x-internal", since it was never meant to be API.
   - Add @noimplement keywords on interfaces where appropriate.
3. Generally, remove unnecessary @suppress("restriction") warnings 
   and fix one "Type Safety (ArrayList)" warning.

Change-Id: I75f8b0fb3a5ff0383bff3bc0a4a8d9fd07b71ac9
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2015-09-10 14:52:06 +02:00
Uwe Stieber
d2350826e8 Fix Bug 476888 - msg on each Terminal open: "bash: mc: line 1: syntax
error: unexpected end of file" ??
2015-09-09 14:39:38 +02:00
Anton Leherbauer
f1f1d06b78 Fix missing @since tags on new mouse listener API 2015-09-08 12:38:52 +02:00
Davy Landman
aacd3c61cd [475267] Added TerminalMouseListener to the VT100TerminalControl
As discussed in bugzilla, this extension allows terminal connectors to
implement special features on mouse events (such as clicking on hyperlinks).

Feature-request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=475267
Signed-off-by: Davy Landman <davy.landman@cwi.nl>
2015-09-08 05:44:44 -04:00
Martin Oberhuber
0efaf9c583 Cleanup: Fix obvious compiler warnings in tm.terminal.control
Change-Id: I26c0c0f049e7617d8ba58701af2efd54aa2d0768
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2015-09-04 16:43:21 +02:00
Martin Oberhuber
3d2cdcc986 Releng: Add API Tooling to Terminal
Enable API Analysis on all Terminal Connectors, and mark
o.e.tm.terminal.control/provisional/api as API in MANIFEST.MF
such that full API Analysis is available on our de-facto API.

Since the conversion of provisional.api to full API triggers errors,
this needs a patched 4.0 baseline to properly compare against. Use
http://archive.eclipse.org/tm/downloads/tm_4.0_api_baseline.zip
for analysis in 4.1 -- after 4.1 a normal baseline will do.


Change-Id: Ibbc2addd59a629d45f676a97339bf27bba07014e
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
2015-09-04 16:18:30 +02:00
Pablo Torregrosa Paez
0a3e104663 SSH Terminal: Default user stored if "Save user" is checked.
Change-Id: I530fe20e288dea3798960b9c9fa3a3ea8f90455b
Signed-off-by: Pablo Torregrosa Paez <pablo.torregrosa@windriver.com>
2015-09-02 10:13:21 -04:00
Uwe Stieber
311b9e027c Tests: Remove obsolete ANT test file 2015-09-02 13:02:24 +02:00
Anton Leherbauer
a495e4bea7 Fix missing since tag 2015-08-13 17:18:32 +02:00
Anton Leherbauer
3a721a060d Bug 474763 - Toggle Command Input Field button is not in sync with active terminal 2015-08-12 10:04:02 +02:00
Uwe Stieber
b1870f60c5 Make terminal listener API changes backward compatible 2015-08-11 17:41:21 +02:00