Bug 264256 [CSS] Need margins
Build ID: M1 Steps To Reproduce: This code is a problem because it expects there to be a FillLayout on the parent if(property.equals("border-width")) { ((FillLayout) parent.getLayout()).marginWidth = pixelValue; }
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/SWTPartFactory.java
});
			newToolItem.getDisplay().timerExec(250, new Runnable() {
				public void run() {
					if (newToolItem.isDisposed()) {
						return;
					}
					newToolItem.setEnabled(canExecuteItem(newToolItem
							.getDisplay(), toolBarItem));
					newToolItem.getDisplay().timerExec(100, this);
				}
			});
		}
	}
	protected boolean canExecuteItem(Display display, final MHandledItem item) {
		IEclipseContext execContext = null;
		Object o = context.get(IServiceConstants.ACTIVE_PART);
		if (o instanceof MContributedPart) {
			execContext = ((MContributedPart) o).getContext();
		} else {
			execContext = getFocusContext(display);
		}
		EHandlerService hs = (EHandlerService) execContext
				.get(EHandlerService.class.getName());
		return hs.canExecute(item.getCommand().getId());
	}
	protected Object executeItem(Display display, final MHandledItem item) {
		IEclipseContext execContext = null;
		Object o = context.get(IServiceConstants.ACTIVE_PART);
		if (o instanceof MContributedPart) {
			execContext = ((MContributedPart) o).getContext();