Bug 4058 - Java syntax highlighting overkill? (1GH4JZE)
Summary: Java syntax highlighting overkill? (1GH4JZE)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 2.0   Edit
Hardware: All Windows All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-10 23:05 EDT by Lynne Kues CLA
Modified: 2003-06-16 06:02 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2001-10-10 23:05:21 EDT
1. Create the following class.
2. Delete the * at the beginning of the block comment.
	As a result of this change, the entire CU is re-syntax highlighted
	(i.e., StyledText>>setStyleRange gets called for every token).  This
	is unnecessary and very inefficient in a larger CU.

package test;

import java.io.*;

public class TestClass {
/* This is a comment.
 * with more than one line.
 * It has three lines.
 */
 
 public void method1() {};
 public void method2() {};
 public void method3() {};
 public void method4() {};
 public void method5() {};
 public void method6() {};
 public void method7() {};
 
}

Eg (24.07.2001 21:17:18)
	this worst case only happens when there is a single partition following the change in the file.
	this is the case in the above scenario, but it is uncommon for typical larger files.
	KUM pls comment.
	in the a
NOTES:
EG (24.07.2001 21:14:45)
Comment 1 DJ Houghton CLA 2001-10-29 17:29:23 EST
PRODUCT VERSION:
125

Comment 2 Dani Megert CLA 2003-06-16 06:02:48 EDT
This has been fixed: we now call replaceStyleRanges exactly once.