Bug 362176 - Remove "close editor" buttons on tabs
Summary: Remove "close editor" buttons on tabs
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P5 enhancement with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2011-10-27 07:07 EDT by Dotan Cohen CLA
Modified: 2016-08-04 08:16 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dotan Cohen CLA 2011-10-27 07:07:20 EDT
Build Identifier: 

Please provide an option for removing the "close editor" buttons on tabs. I find that I am closing tabs when I mean to switch to them. Thank you.

Reproducible: Always
Comment 1 Dani Megert CLA 2011-10-28 01:20:01 EDT
-1. This is standard pattern/UI.
Comment 2 Dotan Cohen CLA 2011-10-28 04:04:04 EDT
> This is standard pattern/UI.
> 

The option to remove the dangerous Close buttons is no less standard.
Comment 3 Remy Suen CLA 2011-11-02 15:03:05 EDT
I implemented the show-close attribute for CTabItem two years ago for bug 271490. If we were able to tag the tab items then the user would be able to specify this through CSS.
Comment 4 Patrik Suzzi CLA 2016-08-04 08:16:29 EDT
Closing as Worksforme, as this is already possible in Eclipse Neon. 

Removing the Close button is already possible via CSS.
As example, see: http://i.stack.imgur.com/NzcPv.gif

More details: 

To remove the close button, first check your Preferences > General, to ensure the Styling is enabled. 


1) Locate your current css. In my case the path is: 

	eclipse\plugins\org.eclipse.ui.themes_1.2.0.v20160718-0743\css\e4_classic_win7.css

2) Add the CSS code to disable the close button 

	CTabItem {
		swt-show-close: false !important;   
	}