Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to remove the close button from main editor tabs? I've heard there is a new UI model in Eclipse Juno (e4) that uses CSS for tuning, so is it possible to write some CSS to remove close button from the tabs?

I didn't found anything useful regarding available css rules and selector for the new UI.

share|improve this question
add comment

2 Answers

Just found a solution:

  1. First you need to install E4 tools (from update site http://download.eclipse.org/e4/updates/0.12/): Er CSS Editor (Incubation) and restart Eclipse
  2. Now go to Preferences (menu WindowPreferences, then Appearance), there you should find CSS editor for Eclipse UI
  3. Add the following piece of code at the end of CSS code:

    CTabItem {
        swt-show-close: false !important;   
    }
    
  4. Restart eclipse.

share|improve this answer
add comment

In addition to Sergey,

You don't have to install any plugin to actually edit the CSS file. If you goto

(eclipse-folder)/plugins/org.eclipse.platform_4.2.*/css/e4_default_gtk.css

and edit this file you will get the same result.

CTabItem {
    swt-show-close: false !important;   
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.