Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362176

Summary: Remove "close editor" buttons on tabs
Product: [Eclipse Project] Platform Reporter: Dotan Cohen <bugs-eclipse-org-20110117>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P5 CC: daniel_megert, psuzzi, pwebster, remy.suen
Version: 4.2Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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;   
	}