Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 44691 - [painting] Pressing tab key in Java Editor makes the editor flicker to the top of the Java file briefly
Summary: [painting] Pressing tab key in Java Editor makes the editor flicker to the to...
Status: RESOLVED DUPLICATE of bug 26153
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 45097 49205 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-11 07:49 EDT by Erik Reuter CLA
Modified: 2003-12-21 16:27 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Reuter CLA 2003-10-11 07:49:03 EDT
When I edit any Java file and press the tab key when not in the top of the file,
the editor flickers and shows the top of the file briefly, then it returns to
the correct position again.

This is with 3.0M4 and didnt happen in 3.0M3.

Running RedHat9 2.4.20-20.9 using eclipse-SDK-3.0M4-linux-gtk.zip under KDE 3.1.4
Comment 1 Dani Megert CLA 2003-10-13 10:27:52 EDT
Can be reproduced. Syntax coloring is also temporary removed.

Also happens when using Ctrl+i or format.

Comment 2 Dani Megert CLA 2003-10-13 10:44:39 EDT
same happens (even worse) under motif.
Comment 3 Dani Megert CLA 2003-10-18 09:52:44 EDT
*** Bug 45097 has been marked as a duplicate of this bug. ***
Comment 4 Tom Hofmann CLA 2003-10-20 02:35:57 EDT
IndentAction.run() does a 

IRewriteTarget.setRedraw(false); before and
IRewriteTarget.setRedraw(true); after

the editing the document. Dani, do you know of any issues with setRedraw on Linux?
Comment 5 Dani Megert CLA 2003-10-20 03:29:37 EDT

*** This bug has been marked as a duplicate of 26153 ***
Comment 6 Erik Reuter CLA 2003-11-12 16:01:35 EST
Sure you guys want to mark this as a duplicate of 26153 ?? That bug deals with,
maybe a somewhat similar problem, but that is v2.1 and this is 3.0M4 (and not
3.0M3)?
Comment 7 Tom Hofmann CLA 2003-11-12 18:07:16 EST
The underlying problem is the same: setRedraw is not implemented. I agree that
this is a major problem, but its the same story.

To get around the problem when pressing TAB, you can turn off in the preferences
Java->Work in Progress->Smart Tab. It will still flicker when using Comment or
Correct Indent.
Comment 8 Tom Hofmann CLA 2003-12-21 11:16:41 EST
*** Bug 49205 has been marked as a duplicate of this bug. ***
Comment 9 Erik Reuter CLA 2003-12-21 15:07:00 EST
This bug seemed gone again in the 3.0M6 builds, I verified that the SmartTab was
enabled while I did the testing.
Comment 10 Tom Hofmann CLA 2003-12-21 16:27:31 EST
We have disabled the setRedraw() call for viewers on linux. This gets rid of the
flashing, but slows down some operations that involve many small document
changes like 'Shift Right / Left', 'Comment' etc. As a consequence of the
change, you might see the document being changed line by line when executing
those operations.