Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-09-13Bug 575641 - restore silence on error in readDocument()Andrey Loskutov1-2/+0
That produces lot of irrelevant log entries with async editor diff operations on quickly changing resources. Change-Id: I7eee3163df092256f367c48400df453525e6f868 Signed-off-by: Andrey Loskutov <loskutov@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185357 Tested-by: Platform Bot <platform-bot@eclipse.org>
2021-09-09Bug 575641 - Text editor fails to open for very large text filesSimeon Andreev1-7/+12
This change adds a catch for OutOfMemoryError to setDocumentContent() in ResourceTextFileBuffer, FileStoreTextFileBuffer and LastSaveReferenceProvider. The OOM is wrapped in an IOException and is rethrown as a CoreException, relying on the CoreException handling further up in the call stack trace. Change-Id: I1ad32be1c1733106c3516c5914ab7784fcc57972 Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/184513 Tested-by: Andrey Loskutov <loskutov@gmx.de> Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Jörg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-by: Andrey Loskutov <loskutov@gmx.de>
2021-09-09Bug 575893 - fixed CharSequence.toString contractsJoerg Kubitz1-0/+6
An implementation of CharSequence has to fullfill the CharSequence.toString contract. Change-Id: I23022218dba00c1e7c0ad32cfbfe358981481371 Signed-off-by: Joerg Kubitz <jkubitz-eclipse@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185262 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Mickael Istria <mistria@redhat.com>
2021-09-09Bug 575641 - bump versions for 4.22Andrey Loskutov1-1/+1
Change-Id: If5fade133d3d07e236553afca0ddb843d597f3d9 Signed-off-by: Andrey Loskutov <loskutov@gmx.de> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/185260 Tested-by: Platform Bot <platform-bot@eclipse.org>
2021-06-22Use JDT static inner class clean up forY20210629-0800Y20210623-0320Y20210622-1150I20210629-0210I20210628-1800I20210627-1800I20210626-1800I20210625-1800I20210624-1800I20210624-1210I20210622-1800Lars Vogel3-3/+3
ui.editors This ticket uses and tests the "Use static inner class" cleanup feature: - It reviews the feature - It reduces the memory consumption as it avoids the pointer to the outer class Example: Before: public class Outer { public class InnerClass { int i; public boolean anotherMethod() { return true; } } } After: public class Outer { public static class InnerClass { int i; public boolean anotherMethod() { return true; } } } Change-Id: Id13454b3c8e1e8ca6628d4f15cc6f0aec37cd62a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181573 Tested-by: Platform Bot <platform-bot@eclipse.org>
2021-06-084.21 update of ui.editorsLars Vogel1-1/+1
Required for https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181573 Change-Id: Ifa3eebf3c7416b89d5cf257db54342d0348d828d Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com> Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/181574 Tested-by: Platform Bot <platform-bot@eclipse.org>
2021-05-13Remove no longer needed api filter.S4_20_0_RC2aS4_20_0_RC2S4_20_0_RC1S4_20_0_M3R4_20I20210611-1600I20210610-1250I20210610-1220I20210610-0400I20210609-0520I20210609-0400I20210609-0220I20210603-0040I20210602-1800I20210602-0600I20210601-1800I20210601-0600I20210531-1800I20210531-0600I20210530-1800I20210529-1800I20210529-0600I20210528-1800I20210526-2310I20210526-1800I20210526-0600I20210525-1800I20210525-0730I20210524-1800I20210524-0600I20210523-1800I20210523-0600I20210522-1800I20210522-0600I20210521-1800I20210521-0150I20210521-0110I20210519-1800I20210519-0600I20210518-1800I20210518-0850I20210518-0600I20210518-0200I20210517-1800I20210517-0600I20210516-1800I20210516-0600I20210515-1800I20210515-0600I20210514-1800I20210513-1800R4_20_maintenanceAlexander Kurtakov2-9/+1
Change-Id: I26ddff6b79d4e366b23eec99666fc1565fc4cfc7 Reviewed-on: https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/180563 Tested-by: Platform Bot <platform-bot@eclipse.org> Reviewed-by: Alexander Kurtakov <akurtako@redhat.com>
2021-02-15Bug 544309 - [API] Mark EncodingActionGroup and related interfaces forY20210316-1310Y20210316-0510Y20210315-1000Y20210314-1000Y20210313-1000Y20210312-2250Y20210312-1250Y20210312-1000Y20210311-1000Y20210310-1000Y20210309-1000Y20210307-1000Y20210306-1000Y20210305-1000Y20210304-1000Y20210303-1000Y20210301-1000Y20210228-1000Y20210227-1000Y20210226-1000Y20210225-1000Y20210224-1000Y20210223-1050Y20210222-1000Y20210221-1000Y20210220-1000Y20210219-1000Y20210218-1000Y20210217-1000Y20210216-1000Y20210215-1020S4_19_0_RC2S4_19_0_RC1S4_19_0_M3R4_19I20210303-1800I20210303-0600I20210302-1800I20210302-0930I20210302-0720I20210302-0600I20210301-1800I20210301-0600I20210228-1800I20210228-0600I20210227-1800I20210227-0600I20210226-2140I20210226-1800I20210226-0220I20210224-1800I20210224-0840I20210224-0600I20210223-1800I20210223-0650I20210223-0600I20210222-1800I20210222-0600I20210221-1800I20210221-0600I20210220-1800I20210220-0600I20210219-1800I20210219-0300I20210217-1800I20210217-0600I20210216-2020I20210216-1800I20210216-1340I20210216-1140I20210216-1030I20210216-0600I20210215-1800I20210215-0700I20210215-0600Lars Vogel5-4/+14
deletion Change-Id: I1e33ca679abf384258eafa3d4c06c0110f0fa06c Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2021-01-21Editors: Don't use AbstractUIPlugin#getDialogSettingsI20210121-2140Matthias Becker1-1/+2
JavaDoc of this method says it should no longer be used. This is one step further to remove Activators. Change-Id: I7e8a9514228178a2c413e06cb40a423618ef1b45
2020-12-16Bug 569739 - Fix duplicate handlerY20210108-1200Y20210105-1200Y20210101-1200Y20201229-1200Y20201229-0040Y20201225-1200Y20201222-1200Y20201218-1200S4_19_0_M1I20210108-1800I20210108-0220I20210106-1800I20210106-0600I20210105-1800I20210105-0600I20210104-1800I20210104-0600I20210103-1800I20210103-0600I20210102-1800I20210102-0600I20210101-1800I20210101-0720I20201231-1800I20201230-2150I20201230-1800I20201229-1800I20201228-1800I20201227-1800I20201226-1800I20201226-0940I20201225-1800I20201225-0450I20201225-0130I20201224-1800I20201223-1800I20201222-1800I20201221-1800I20201220-1800I20201219-1800I20201218-1800I20201217-1800I20201216-2110Mickael Istria1-2/+2
Change-Id: I40d408f48b9c23800d5061344c6fbc79bcbd0ad7 Signed-off-by: Mickael Istria <mistria@redhat.com>
2020-12-15Bug 569701 - Generic Editor misses collapse/expandI20201215-1800Mickael Istria6-0/+221
This change adds a generic handlers bound to various folding commands. This handler is enabled whenever activePart adapts to ITextOperationTarget, so it enables folding commands on most views and editors that leverage folding. Change-Id: I0c054a66b93a45f34497a6dd4f488f650d9de0db Signed-off-by: Mickael Istria <mistria@redhat.com>
2020-12-15Added icons for collapseAll/expandAllY20201215-1200Mickael Istria12-11/+45
Icons taken for platform.ui, used also for collapse/expand all in tree. + Move to Java 11 as BREE Change-Id: I7862f1ce917a242e88a7e4e770164b8c605535ef Signed-off-by: Mickael Istria <mistria@redhat.com>
2020-09-23Removes dispose call for color in TextEditorDefaultsPreferencePageI20200924-1800I20200924-0430I20200924-0340Lars Vogel1-1/+0
Change-Id: I597bb277e6acc66d3c01f9cab32e0746a196f175
2020-09-10Bug 566757 - Remove encoding migration inLars Vogel3-38/+2
FileDocumentProvider#getPersistedEncoding from 2004 (Bug 54058) Change-Id: Ia38c21a513b19b981dfc867a80cb0ec6ffe55971 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-09-07Bug 566667 - Remove migration code for Bug 82987 (Eclipse 3.1)I20200910-0100I20200909-1800I20200908-1800I20200908-0440Lars Vogel1-21/+0
Change-Id: If8cb62efd415333f91a02a3eb6c16cb50a63741a Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-09-074.18 update of org.eclipse.ui.editorsLars Vogel1-1/+1
Requires for https://git.eclipse.org/r/c/platform/eclipse.platform.text/+/168802 Change-Id: I5d071d6f5c4259ccc19b22f06976f07b3c097306
2020-08-12Bug 565954: rename Last Edit Location to Previous Edit LocationY20200825-1200Y20200824-1310Y20200823-1200Y20200822-1200Y20200821-1200Y20200820-1200Y20200819-1200Y20200818-1200Y20200817-1210Y20200817-0450Y20200816-1200Y20200815-1200Y20200814-1200Y20200814-0650Y20200814-0630Y20200813-1200S4_17_0_RC1S4_17_0_M3I20200828-0150I20200826-1800I20200826-0600I20200825-1800I20200825-0600I20200824-1900I20200824-0600I20200823-1800I20200823-0600I20200822-1800I20200822-0600I20200821-1800I20200821-0440I20200820-0230I20200819-1800I20200819-0600I20200818-1800I20200818-0900I20200818-0600I20200818-0340I20200817-1800I20200817-0920I20200817-0600I20200817-0450I20200816-1800I20200816-0600I20200815-1800I20200815-0600I20200814-1800I20200814-1040I20200814-0640I20200814-0330I20200813-1800Ari Kast2-15/+15
Change-Id: I0baeef3d4eae193cf9af2c1c18854eb1839d9b4f
2020-08-07Bug 72773: store and navigate multiple edit history locationsAri Kast6-0/+15
This expands existing "last edit location" navigation to now store an ordered queue of multiple last edit locations. The size of the list is configurable (currently set at 15). Once the list is filled, each new location insertion evicts the oldest location to make room for the new. Thus only the last 15 edit locations are ever stored. To avoid wasting list space on multiple similar locations in close proximity to each other, similar edit locations (as determined by a parameterized proximity function) are merged to a single location. Ctrl+Q key mapping still navigates to the last edit location same as before. However, now continuing to hold ctrl and then pressing Q again begins the traversal thru history of prior edit locations. Once traversal stops, future Ctrl+Q actions are now temporarily anchored to this older historical location. M3+Ctrl+Q conversely moves the anchor forward thru edit history, so after traversing backward with Ctrl+Q, you can go forward again by repeatedly pressing Alt/Opt+Ctrl+Q. New edit locations are always inserted at the end of the queue, so that insertion order is always maintained. Insertion of a new edit location also resets the last location "anchor" back to the most recent edit, so that pressing Ctrl+Q once again brings you to the most recent edit rather than a historical one. Change-Id: I885e209b9d9300f8e6226e6cdf64616751ead944
2020-08-06Remove no longer needed API filters.Alexander Kurtakov1-38/+0
Change-Id: I0634e6c56c058c23b0807caa00bf0d93adc6d110 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-07-31Bug 565208: Remove calls to Color.disposeY20200801-1200I20200803-0210I20200801-1800I20200801-0010I20200731-2040I20200731-1800Lars Vogel1-11/+3
As these calls are no longer needed, remove the calls and related code around such dispose that is also now redundant. Change-Id: Ifd82694346e546185768256eba526027f5bd9f4f
2020-07-31[Bug 565465] Remove ISharedTextColors#dispose for colorsI20200731-0520Lars Vogel1-8/+3
Change-Id: Ic318c0aef9fc05f3d88602657a6426467dcbaa4e Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-06-12[Bug 550832] Remove gif which we left during the move to png filesLars Vogel12-0/+0
Change-Id: I2c694f85273dbbb1a12a021155c67f76b4b10afc Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-06-09Bug 564063 - Using ArrayContentProvider.getInstance() instead of newI20200612-0400I20200611-1800I20200610-1800I20200609-1800Lars Vogel2-2/+2
instance ArrayContentProvider does not hold any data, hence it can be shared across instances. Change-Id: I2defc10db7bdb8f3a2083e59f335743915d92f88 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-06-09Bug 533429 - [printing] Add date to print headerAlexander Kurtakov1-1/+1
Version bump for 4.17 stream. Change-Id: Ib548f4e4a7e028666edef8f9af0c1730ad8b9c2d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-06-08Bug 533429 - [printing] Add date to print headerI20200609-0150I20200608-1800Paul Pazderski1-1/+4
Change-Id: I81a384b64ee997dcda2917502a05132e86a5480f Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2020-05-01Bug 34747 - [MenuMgmt] Go To Last Editor Position incorrectly enabledI20200519-1130I20200519-1010I20200518-2220I20200518-1800I20200516-0600I20200515-1930I20200514-1800I20200513-1800I20200512-1800I20200511-1800I20200511-0700I20200510-1800I20200509-1800I20200509-0600I20200509-0450I20200506-1800I20200505-1800I20200504-1800I20200503-1800I20200502-1800Paul Pazderski1-1/+2
Change-Id: Ifd9eea8c1c4b2df058bef3669c044d6023db0e13 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2020-04-10Bug 561990 - Remove dependency on icu from platform.textI20200411-0950I20200411-0720I20200411-0510I20200411-0300I20200410-2300I20200410-1800Alexander Kurtakov7-13/+7
JVM classes do the same for our needs. Change-Id: I4734167c5f113baf1e4fef8cceed88618857a1c4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-21Improved code mining annotation flickeringI20200327-1800I20200326-1800I20200325-1800I20200324-1800I20200323-1800I20200322-1800I20200322-1150I20200322-0300I20200321-1800Niko Stotz2-5/+27
Change-Id: I6a665e89814ff4403474428e3142e8e50b173f30 Signed-off-by: Niko Stotz <eclipse@nikostotz.de>
2020-01-30Bug 559714: No enabledWhen necessary for AnnotationCodeMiningProviderY20200204-0035I20200209-1800I20200208-1800I20200207-1800I20200206-1805I20200205-1800I20200205-0030I20200204-1800I20200203-1800I20200202-1800I20200201-1800I20200131-1800Matthias Becker1-8/+0
Change-Id: Ic4278ffbdc1010c9cbac64f5223df0e4437cee77
2020-01-29Bug 559665: Remove workaround for bug 552760Y20200130-0045I20200129-1800Matthias Becker1-7/+1
Bug 552760 is fixed in the meantime. In addition just catching NPEs hides other bugs. Change-Id: I64446ff9b212bc1f619250ae8033deb3385b57c7 Signed-off-by: Matthias Becker <ma.becker@sap.com>
2020-01-24Bug 559508: Annotations Code Mining shouldn't check content typeI20200129-0935Matthias Becker1-5/+0
Change-Id: Ibc8ca36b66e0f410b1ff47e9bf6aff0955d2cd6f Signed-off-by: Matthias Becker <ma.becker@sap.com>
2020-01-23Optimize lambdasI20200123-1800Lars Vogel3-3/+3
Uses method references if possible Removes unnecessary brackets Using the upcoming JDT cleanup from https://git.eclipse.org/r/#/c/148248/ Method references are faster in execution and shorter. Change-Id: I4b8edca1ad34eb1c8788e6729c9bb76f1eefb335 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-01-17Use lambdas where possibleY20200120-0020I20200120-0445I20200120-0355I20200120-0115I20200119-2330I20200119-1800I20200118-1800I20200117-1800Lars Vogel15-200/+67
Using the batch cleanup operation via Source -> Cleanup -> "Use lambdas where possible" from standard JDT. Change-Id: I609127e1d7267230c8741a155b81e4b004d7ee15 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-01-15Remove unnecessary array creation for varargs in bundlesI20200116-0930I20200116-0330I20200116-0310I20200115-1800Lars Vogel4-8/+8
Using the batch cleanup operation via Source -> Cleanup -> "Remove unnecessary array creation for varargs " from standard JDT. See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=559175 applying this cleanup to LinkedModeConfigurationBlock results in a syntax error Change-Id: I097502952bbb3263c8b3253efff95a0d1981acf2 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2020-01-13Use System.lineSeparator()Lars Vogel1-1/+1
Benefit of this way rather than System.getProperty("line.separator") is that there are no security checks. Change-Id: I3ff085c291a6c279f3a434134c3bfdd6ffea0353 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-12-20Bug 548056 - Add space in "Show whitespace" preference labelI20191230-1800I20191229-2200I20191229-1800I20191228-1800I20191227-1800I20191226-1800I20191225-1800I20191224-1800I20191223-1800Jens Lidestrom1-1/+3
There is no space in the GUI label between the "Show whitespace characters" text and the "(configure visibility)" text on GTK. Change-Id: I74f4b747c8fc6f6de09e6549cb417bb03336f39a Signed-off-by: Jens Lidestrom <jens@lidestrom.se>
2019-12-10Use jdk 5 for-each loopCarsten Hammer13-70/+42
Replace simple uses of Iterator with a corresponding for-loop. Also add missing braces on loops as necessary. Change-Id: Ic1786fe30ea297b4686015c1ac5b909f92a528a7 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-12-10Version updates for 4.15 streamKarsten Thoms1-1/+1
Required for - https://git.eclipse.org/r/#/c/152786/ - https://git.eclipse.org/r/#/c/152787/ - https://git.eclipse.org/r/#/c/152788/ Change-Id: I8150cda7932eacd29effb73b239e2a13c54c7dd5 Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-12-03Bug 553691 - Code Minings for Annotations pref use sentence style andMickael Istria1-2/+2
have a mnemonic Change-Id: Icba4749cb8741f93eba3a26a8ee7270dfc0bc9f1 Signed-off-by: Mickael Istria <mistria@redhat.com>
2019-11-27Bug 553000 - added annotation code mining preference search termsY20191127-0140S4_14_0_RC1I20191203-0600I20191202-1800I20191202-0600I20191201-1800I20191201-0600I20191130-1800I20191130-0600I20191129-1800I20191127-1800I20191127-0600Niko Stotz2-0/+5
Change-Id: I106f12ed98168625ecb0f32e92314735f5b4bca1 Signed-off-by: Niko Stotz <eclipse@nikostotz.de>
2019-11-27bug 552984 - added annotation code mining label sanitationNiko Stotz1-2/+6
Change-Id: Ie0748e35ab29ddeb2698413f9fa974a35d09cff4 Signed-off-by: Niko Stotz <eclipse@nikostotz.de>
2019-11-22Bug 548250 - Javadoc problems in platform.textI20191125-1800I20191125-0600I20191124-1800I20191124-0600I20191123-1800I20191123-1115I20191123-0600I20191123-0100Paul Pazderski1-4/+4
Change-Id: I84f9f4c00e81494dc69134e660e261fcab1dc493 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-11-21Bug 553309 - Default editor print margin is set to 50 (instead of 80)Andrey Loskutov1-1/+1
This reverts commit 4fd07bfb4de9ce993173aa1d8d752ca27c8537e0 that was supposed to be "Bug 552379 - Reduce default weight/alpha of whitespace characters" but did something completely different. Change-Id: I02b5e3118d1056883cef493949bfa2a1f860b5e3
2019-11-14Whitespace removal for plug-ins in platform.textLars Vogel18-81/+81
Done via running the cleanup action on the code base Change-Id: Ia04eb1b87ab8e9b66125c646fca817a193851e85 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-11-10Bug 552886 - Improve wording of new code mining for annotationsY20191112-0030Michael Keppler3-5/+5
Also fix a typo in one of the related localization string keys. Change-Id: I3954dc9f20ba425f319e92e4b6333d32f97da971 Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2019-11-07Show info, warning, and error Annotations as line header code minings.Niko Stotz11-1/+957
Implements bug 547665 Based on code of bug 540443 Generic implementation for code mining-enabled editors. Amends text editor user settings page for configuration. Change-Id: Ia20c4b0712bdb45d1061daa6d9af4b4ab21be655 Signed-off-by: Niko Stotz <eclipse@nikostotz.de>
2019-11-06Bug 552704 - Use pomless builds in eclipse.platform.textY20191107-0420I20191106-1805Christoph Läubrich1-23/+0
Change-Id: I15a8b94a9c546ba5fd372b1e8a2636580accac38 Signed-off-by: Christoph Läubrich <laeubi@laeubi-soft.de>
2019-10-24Bug 552379 - Reduce default weight/alpha of whitespace charactersI20191024-1800Mickael Istria1-1/+1
Change-Id: I869b3c90b773e38e2ebdaaf5b5a8b2bbe9aa01ea Signed-off-by: Mickael Istria <mistria@redhat.com>
2019-10-17Bug 537617 - Minimap should appear in editor's 'Show In' context menuI20191020-1800Nitin Dahyabhai2-1/+30
Change-Id: I089bfdd23c1358f597fc322924d6098e5d6f5293 Signed-off-by: Nitin Dahyabhai <nitind@us.ibm.com>
2019-10-11Remove unnecessary NON-NLS.Alexander Kurtakov1-2/+2
Change-Id: I20ea2fdee8e59d2cc669f4207dd6565842eab1b2 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>

Back to the top