Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-04-10Bug 561990 - Remove dependency on icu from platform.textI20200411-0950I20200411-0720I20200411-0510I20200411-0300I20200410-2300I20200410-1800Alexander Kurtakov2-10/+9
JVM classes do the same for our needs. Change-Id: I4734167c5f113baf1e4fef8cceed88618857a1c4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-19Bug 401391 - ConcurrentModificationException in AnnotationModelI20200319-1800Sebastian Zarnekow3-2/+167
Use a ConcurrentHashMap for the AnnotationModel attachments to avoid a concurrent modification when the AnnotationIterator is created Change-Id: I3ceeebea8cd7c894fe70adae2378db59c2ac1f1b Signed-off-by: Sebastian Zarnekow <sebastian.zarnekow@gmail.com>
2020-03-06Bug 560872 - POM and product version change for 4.16 releaseY20200309-1300Y20200308-0700Y20200308-0520X20200313-0410X20200312-1900X20200312-1530X20200312-1210X20200312-0700X20200311-2150X20200311-1900X20200311-0820X20200306-1900I20200315-2240I20200315-1800I20200314-1800I20200313-1800I20200313-0810I20200312-1835I20200312-1800I20200311-1800I20200310-1800I20200310-0810I20200309-1800I20200309-0810I20200308-1800I20200307-1800I20200307-1145Mat Booth1-1/+1
Change-Id: Idc6390c2c7573e553d6b757732cdb21aec0bec9e Signed-off-by: Mat Booth <mat.booth@redhat.com>
2020-02-10Convert JUnit 3.x style tests to 4.xAlexander Kurtakov2-198/+163
Change-Id: Id92946c5fc43ce53ebf362ee986fa986543686fc Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-01-164.15 update for org.eclipse.text.testsI20200116-1800Lars Vogel2-2/+2
Required for https://git.eclipse.org/r/#/c/154804/ Change-Id: I794b6cb24d13d3c61200cc8398c0aaa482dde780 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-12-06Bug 553742 - POM and product version change for 4.15 releaseY20191208-2315I20191210-0230I20191209-2205I20191209-1600I20191209-1310I20191209-1130I20191209-1110Niraj Modi1-1/+1
Change-Id: Ida060a8dc6a0e22acc8d5d0665eee7b754db89cd Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-10-04Bug 551781 - Change TextUtilities.nextDelimiter return typeI20191009-0300I20191008-1800I20191008-0600I20191007-1800I20191007-0625I20191007-0430I20191006-1800Paul Pazderski1-22/+22
Change-Id: I2673f7ee6b18d2705d6353054ec042a1fe6a1f9c Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-09-25Bug 551438 - Fix files that have ended up with CRLF in the gitI20190929-1800I20190928-1800I20190928-0515I20190928-0205I20190928-0000I20190927-1800I20190927-1530I20190927-0255I20190927-0225I20190927-0145I20190926-1800I20190926-0625Ed Merks1-21/+21
repository Change-Id: I0c9ba3b46833125403eb890ae01cb6d60553147f Signed-off-by: Ed Merks <ed.merks@gmail.com>
2019-09-11Bug 550471 - Improve compatibility of new TextUtilities.indexOfI20190912-1800Paul Pazderski1-0/+19
Old implementation allowed negative offsets then the improved variant must also. Change-Id: Idf732397d62419690f3f870e590178b3ff0bcbbd Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-09-10Bug 550473 - Add faster nextDelimiter utility methodPaul Pazderski1-0/+45
TextUtilities.indexOf is quite often used to search for the default delimiters. While the new MultiStringMatcher is already fast this method can still be up to ten times faster for this special case. Change-Id: Iebd4fcc0efb0d9d1e3031954c8e640bb3a789fa1 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-09-10Bug 550471 - Improve and deprecate TextUtilities.indexOfPaul Pazderski1-11/+43
Existing TextUtilities.indexOf got a quite ugly return value and some strange behaviour in details (e.g. how it match empty strings). It is also superseded by the new MultiStringMatcher. The implementation is slow (especially for larger inputs) but must be retained at least for some years. This change provides a faster and fully compatible reimplementation based on MultiStringMatcher. Change-Id: I54c471ddd29a6aeb111151116e392dc8b8f8033a Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-09-10Bug 550438 - MultiStringMatcher (leftmost-longest): exit earlierThomas Wolf3-4/+74
We may return an existing sub-match right away on a failover if its offset is smaller than the start offset of the path we switched to. Store the node depth in the trie nodes; this gives us access to this information. New tests that verify where in the text searched the algorithm stops searching. scan003 is the test that motivated this change. The new code stops scanning at index 5, while the old code did this check only on the final match on the new path at index 10. Also slightly simplify the implementation of indexOf() by removing the 'failover' flag. Change-Id: I3066680450a2d5027703e06afba7833b81d12127 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2019-09-06Bug 550767 - POM and product version change for 4.14 releaseI20190910-0815I20190910-0145I20190909-1520I20190909-1425I20190909-0925Niraj Modi1-1/+1
Change-Id: I2c4bd92c6c1243366afa1cf5db4d5052794c66fa Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-08-24Bug 545252 - ConfigurableLineTracker: use the Aho-Corasick algorithmI20190826-0640I20190826-0415Thomas Wolf4-1/+552
The ConfigurableLineTracker had quadratic performance characteristics, making line-end detection even only with the standard line terminators extremely slow already on moderately sized sources. Add an efficient MultiStringMatcher using the Aho-Corasick algorithm to efficiently find any of a fixed set of strings in a text. The algorithm is a well-described efficient general-purpose multi-string matching algorithm based on a trie. Its main search loop is very simple; the more tricky bits are in the construction of the auxiliary links in the trie. The algorithm as described in 1975 returns all matches including overlaps within a text, but it can be adapted fairly easily to support the "leftmost longest match" semantics needed by ConfigurableLineTracker. The Aho-Corasick algorithm has a complexity of O(n + m + z), where n is the text length, m the sum of the length of patterns, and z the number of matches. For line end matching, this is roughly O(n + L), where L is the number of lines. Note that it can produce a quadratic number of matches on degenerate input (patterns "x", "xx", "xxx", and so on, and a text consisting only of "x"s). Adapt ConfigurableLineTracker to use the new MultiStringMatcher. The matcher provides a find() operation to find all (possibly overlapping) occurrences of the pattern strings; this is the normal way the Aho-Corasick algorithm works. An indexOf() method provides a way to efficiently find only the leftmost longest match. Since this new matcher is generally useful and fast, provide a builder interface through which pattern strings can be added iteratively before matching. Change-Id: I3e66482cfca271248caaad79157f843bc2c819d7 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch> Also-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-08-14Use StringBuilder in ProjectionDocumentTestI20190814-1800Lars Vogel1-20/+20
Change-Id: I8f6b8ba5d7417b8513541ba1ee95976f0952ce0b Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-07-05Using indexOf char instead of indexOf StringY20190708-0900I20190710-1800I20190710-0610I20190709-1800I20190709-0610I20190708-1800I20190708-1035I20190708-0800I20190707-1800I20190707-0110I20190706-1800I20190705-1800Lars Vogel1-3/+3
See https://sourceforge.net/p/findbugs/feature-requests/300/#cb7f for a performance related discussion Change-Id: If69738a092217087471d6013669c26e1854231d4 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-17StringBuilder instead of StringBufferLars Vogel1-1/+1
Change-Id: Iefefe2b40d406a866e0ce9b7b420b3b74880d536 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-17Remove redundant blockLars Vogel1-41/+35
Change-Id: I01d785405a51605a19429bcd9560232530fc51c1 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-14Use isEmpty() instead of length() to check if collection is emptyI20190615-1800I20190614-1800Lars Vogel3-10/+10
Change-Id: I0106dd0c2ddfa318375877d4562068d82aa9ac5f Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-13Use jdk 5 for-each loopI20190614-0330I20190613-1800Carsten Hammer3-10/+8
Replace simple uses of Iterator with a corresponding for-each loop. Also add missing braces on loops as necessary. Change-Id: Ibde37d56a7962f432ed771f4a215f5903161bde0 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-06-12Activate save actions and Eclipse formatter on org.eclipse.text.testsLars Vogel2-18/+154
Change-Id: Iff7a0b84529df39d32ef73ec2f5a4adc2c0d6798 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-11Removes trailing whitespace from org.eclipse.text.testsI20190612-0115Lars Vogel22-311/+311
Change-Id: Ieb237a6c49182be02a6d722189deddafe93e069f Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2019-06-11String.indexOf can be replaced with String.containsCarsten Hammer1-1/+1
Change-Id: I4fa6df22b0e8c3bd3d59c9f98ca417899366ae03 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-06-11Use StringBuilder instead of StringBuffer where possible.Carsten Hammer6-45/+45
Change-Id: Ifee0c0b2ecbdaad31ea628c4fbe87cec89897012 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
2019-06-10Bug 547928 - Version bumps for 4.13 streamI20190610-1800I20190610-0135Sarika Sinha2-3/+3
Change-Id: Ic98f1d62749421775c99b5d92e709c596f41ce28 Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
2019-06-07Bug 547907 (Part2)- POM and product version change for 4.13 releaseI20190608-0140I20190607-1345I20190607-1000I20190607-0725Niraj Modi1-1/+1
- Fixing JUnit version back to 4.12 from 4.13 Change-Id: If8d2799b15e6a5a9e5779a64cb1e89c6c40ebb02 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-06-07Bug 547907 - POM and product version change for 4.13 releaseNiraj Modi2-2/+2
Change-Id: I16ed9807c1390ccba626efaa09cfa80308667a26 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2019-05-19Bug 547304 - [cleanup] Fix wrong space/tab indentationS4_12_0_RC2S4_12_0_RC1aS4_12_0_RC1S4_12_0_M3R4_12I20190605-1800I20190605-0600I20190604-1800I20190604-0600I20190603-1800I20190603-0600I20190602-1800I20190602-0600I20190601-1800I20190531-1800I20190531-0245I20190529-2005I20190529-1800I20190529-0600I20190528-1800I20190528-0915I20190528-0850I20190528-0600I20190527-1805I20190527-0600I20190526-1800I20190526-0600I20190525-1800I20190525-0600I20190524-1800I20190524-0135I20190522-1800I20190522-0600I20190521-1800I20190521-0600I20190520-1805I20190520-0600R4_12_maintenancePaul Pazderski4-22/+22
This change fixes space or mixed tab/space indentations in all Java files. This also includes two or three space indentations and even fix most stray single spaces in indentations. The change includes only whitespace formatting and no code changes. Change-Id: I3e7b6abb69a1894c402f9123417346a44fc0992a
2019-03-20Bug 545565 - ListLineTracker returns wrong results after content set toI20190321-1800I20190321-0435I20190321-0245I20190320-1800Paul Pazderski3-3/+62
null If tracked text is set to null the tracked content length was not updated. Change-Id: I26ed7b21879ff77a1e3b7828a4e4a4d969608cb8 Signed-off-by: Paul Pazderski <paul-eclipse@ppazderski.de>
2019-03-08Bug 545094 - POM and product version change for 4.12 releaseI20190311-0410I20190309-1830I20190308-1830I20190308-1525I20190308-1055I20190308-0740Niraj Modi1-1/+1
Change-Id: Ideffb628508e4505ec7b55afd5ba9f2c5fd75f3c Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2018-12-07Bug 541822 - POM and product version change for 4.11 releaseY20190116-2200Y20190109-2200Y20190108-0410Y20190108-0135Y20190107-0850Y20190107-0505Y20190102-2200Y20181226-2200Y20181219-2200Y20181212-2200S4_11_0_M1I20190121-1415I20190120-1800I20190119-1800I20190118-1800I20190117-2335I20190116-1800I20190115-1800I20190114-1800I20190113-1800I20190112-1800I20190111-1800I20190111-0850I20190109-1800I20190109-0655I20190108-1800I20190108-0600I20190107-2050I20190107-1800I20190107-0600I20190106-1800I20190106-0600I20190106-0150I20190105-1800I20190105-0810I20190104-1800I20190103-1800I20190102-1800I20190101-1800I20181231-1800I20181230-1800I20181229-1800I20181228-1800I20181227-1800I20181226-1800I20181225-1800I20181224-1800I20181223-1800I20181222-1800I20181221-1800I20181220-1800I20181219-1800I20181218-1800I20181218-0120I20181217-1800I20181216-1800I20181215-1800I20181215-0340I20181214-1800I20181214-0720I20181214-0105I20181213-1800I20181212-1800I20181212-0230I20181211-1800I20181211-0230I20181210-1800I20181210-0755I20181210-0535Niraj Modi1-1/+1
Change-Id: I975429ca29af362e54dee6d31c2c7373e644f397 Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
2018-09-04Bug 538531 - POM version change for 4.10 releaseY20180905-2200I20180906-1400I20180906-0005I20180905-1305I20180905-0410Sravan Kumar Lakkimsetti1-1/+1
Change-Id: I8ea72f1e990039ec24ce2930df788e2e199a9993 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
2018-08-21Bug 530393 - EPL 2.0 update for platform.text test bundlesLars Vogel37-111/+222
Update all sources files except .exsd files, Java pref files and pom files Regex used: git checkout master git reset --hard origin/master git pull find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" -exec sed -i 's/Eclipse Public License v1.0/Eclipse Public License 2.0/g' {} + find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)http:\/\/www.eclipse.org\/legal\/epl-v10.html/\1\2https:\/\/www.eclipse.org\/legal\/epl-2.0\/\ \1\ \1\2SPDX-License-Identifier: EPL-2.0/' {} + # Get rid of the All rights reserved find . -type f ! -name "*.exsd" ! -name "org.eclipse.jdt.ui.prefs" ! -name "pom.xml" -exec sed -i -E 's/([[:blank:]]*[^[:blank:]])*([[:blank:]]*)(All rights reserved. )/\1\n\1\2/' {} + Change-Id: Ib0696b0bfadec3d64cdc0064d35fb952e3953055 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-07-30Bug 109481 - [find/replace] replace doesn't work when using a regex withI20180730-2240I20180730-2000I20180730-0800Kalyan Prasad Tatavarthi1-25/+1
a lookahead or boundary matchers :- Reverting Changes as a result of Bug 537377 Change-Id: I975d326e67f650bc2dddac6948775b3bb3fbdf5a Signed-off-by: Kalyan Prasad Tatavarthi <kalyan_prasad@in.ibm.com>
2018-07-18Sanitize org.eclipse.text.tests.Y20180720-0300Y20180718-2200I20180722-2000I20180721-1500I20180720-2000I20180719-2000I20180718-2000Alexander Kurtakov2-52/+43
Use proper asserts and expected exceptions. Change-Id: Ic3bbc0a8221d40b57e4698f2ed40f0806daa3194 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-07-18Sanitize LinkedPositionTest.Alexander Kurtakov1-56/+45
Use proper asserts and make sure that all the code is actually executed. Change-Id: Idbc388ea3d3c59c88a939b7f24690fed9f47d61b Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-06-11[Sonar] Remove dead stored variablesJonas Hungershausen1-2/+1
see https://sonar.eclipse.org/drilldown/issues/33533?rids%5B%5D=33537&rule=findbugs%3ADLS_DEAD_LOCAL_STORE&rule_sev=CRITICAL&severity=CRITICAL and https://sonar.eclipse.org/drilldown/issues/33533?rids%5B%5D=33535&rule=findbugs%3ADLS_DEAD_LOCAL_STORE&rule_sev=CRITICAL&severity=CRITICAL Change-Id: Ie17acc3f3eefb50f7fba564585f3e41947722168 Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
2018-06-05Bug 535318 - Update license to EPL-2.0 for platform.text for about.htmlI20180607-2000I20180606-1020Lars Vogel1-16/+24
Change-Id: Ie3055f2478633f5b854362b1ab8205ef6e6f28ab Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-06-014.9 version updates for eclipse.platform.text required for EPL 2.0I20180601-0915I20180601-0900Lars Vogel2-2/+2
update Change-Id: I2347c4e9fb76d947449865ebfb35caf759458f9c Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-05-30Bug 535191 - POM version change for 4.9 releaseI20180531-2125I20180531-2000I20180531-1245I20180531-0910Lars Vogel1-1/+1
eclipse.platform.text Change-Id: I424ff63453ab620a5f4461d369a06798ef1264fd Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2018-04-30Improve some constructs for performanceMickael Istria1-43/+45
Issues reported by SonarQube: * iterating on keySet() instead of entrySet() or values() * String += in a loop Change-Id: I3dec0e683305ab3382605168c0505d5ce2bcc35e Signed-off-by: Mickael Istria <mistria@redhat.com>
2018-01-15Bug 529716 - Combine catch blocks in org.eclipse.text.tests.AccessorI20180117-2000I20180116-2000I20180115-2000Lars Vogel1-48/+14
Change-Id: I79a5ac9a67c3e763e27e3102b328a8cf48c0c032 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2017-12-12Bug 528254 - [Java9] Added Automatic-Module-Name HeaderI20171215-0215I20171215-0120I20171214-2000I20171214-0120I20171213-2000I20171212-2000Karsten Thoms1-0/+1
Incremented versions for Eclipse 4.8 Photon Change-Id: I49d086cba48a4b0519cda696b4ab38d66cbd8fef Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-13Bug 109481 - [find/replace] replace doesn't work when using a regex withfingerl3-22/+46
a lookahead or boundary matchers Fixes the bug that matches of a Regular Expression containing lookarounds can't replaced. Change-Id: Ibaf347fbe88b9d9aac14240f67bf5cbb7567e82b Signed-off-by: fingerl <imelflorianingerl@gmail.com>
2017-06-22Bug 517929 - Update POMs in the master for 4.8 releaseAlexander Kurtakov1-1/+1
Point to 4.8 parent pom. Change-Id: Icedc59a139f5fce4e9fef73bb0c396109601abcd Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-06-28Bug 496465: Prep for 4.7 (Oxygen) buildsMarkus Keller1-1/+1
2016-05-03Bug 492875 - Remove the "strictly compatible JRE" per-project overrideI20160504-0035I20160503-2000Lars Vogel1-2/+0
in eclipse.platform.ui project Change-Id: Ifd4b4399d620c32f3ca9e52627f7b940c58557e8 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2016-04-04Bug 487095: Move test bundles to JUnit 4Y20160407-1000I20160405-0800Markus Keller5-34/+39
- implement JUnitSourceSetup as ExternalResource - clean up test suites - update manifests - use @Rule TestName to access test method names FindReplaceDialogTest: - fix test order - fix wrong @Before tearDown() Change-Id: Ibae60f592ea81dbbf2fab0db8daf64f92301dcdd
2016-02-09Bug 486903 - [Templates] Allow specifying a default value in case theI20160209-0800Lars Vogel2-3/+83
word_selection is empty Change-Id: I5a5c2e77f65aa45474362838aa71fc351779dcd7 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
2016-02-03Bug 487095 - Move test bundles to JUnit 4Sopot Cela28-744/+1114
Change-Id: I5e6c9e746f814e7e0a3d58dc2d954d097a181ea1 Signed-off-by: Sopot Cela <scela@redhat.com>

Back to the top