Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Label in status bar is cut off in Mars (works in Indigo)
Label in status bar is cut off in Mars (works in Indigo) [message #1734350] Tue, 07 June 2016 11:07
Kristine Jetzke is currently offline Kristine JetzkeFriend
Messages: 8
Registered: May 2016
Junior Member
Hi,

I'm switching a legacy application from Indigo to Mars using the compatbility layer. We display a label in the status line. This works fine in Indigo. In Mars (and also Neon) the label is cut off.

Indigo: index.php/fa/26094/0/
Mars: index.php/fa/26093/0/

Any ideas on how to fix this?

Cheers,

Kristine

My extension looks like this:
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="toolbar:org.eclipse.ui.trim.status?after=additions">
         <toolbar
               id="tine.test">
            <control
                  class="test.WorkbenchWindowControlContribution1"
                  id="test.WorkbenchWindowControlContribution1">
            </control>
         </toolbar>
      </menuContribution>
   </extension>


The contribution class like this:
package test;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.menus.WorkbenchWindowControlContribution;

public class WorkbenchWindowControlContribution1 extends WorkbenchWindowControlContribution {

	public WorkbenchWindowControlContribution1() {
	}

	public WorkbenchWindowControlContribution1(String id) {
		super(id);
	}

	@Override
	protected Control createControl(Composite parent) {
		Label label = new Label(parent, SWT.NONE);
		label.setText("FOO");
		return label;
	}

}

[Updated on: Tue, 07 June 2016 11:09]

Report message to a moderator

Previous Topic:Can't create workspace under neon
Next Topic:Binding of F3->OpenDeclaration gone from Java editor
Goto Forum:
  


Current Time: Tue Jun 19 14:55:21 GMT 2018

Powered by FUDForum. Page generated in 0.02103 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top