X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.document.swt.core%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fswt%2Fcore%2Fwidget%2FFillComposite.java;h=2a92068c77baf0eabf5aa2aecbe81a06941fbb48;hp=998be35727487003ea3ca1036557d0aa4b64a1f5;hb=e4ffdffae875e518a4eb070b8bda6ead1a9843d3;hpb=158d6269660a3b415504f1da5a0b8341e761a5be diff --git a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/widget/FillComposite.java b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/widget/FillComposite.java index 998be3572..2a92068c7 100644 --- a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/widget/FillComposite.java +++ b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/widget/FillComposite.java @@ -1,3 +1,14 @@ +/******************************************************************************* + * Copyright (c) 2019 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ package org.simantics.document.swt.core.widget; import java.util.TreeMap; @@ -7,7 +18,6 @@ import org.eclipse.jface.layout.GridLayoutFactory; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; -import org.simantics.document.server.IEventCommand; import org.simantics.document.server.JSONObject; import org.simantics.document.server.client.WidgetData; import org.simantics.document.swt.core.SWTDocument; @@ -29,23 +39,18 @@ public class FillComposite extends HasWidgetsWidgetManager { // result.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_RED)); return result; } - + @SuppressWarnings("unchecked") @Override public void updateChildren(SWTDocument document, JSONObject object, WidgetContainer widget, TreeMap childMap) { - + super.updateChildren(document, object, widget, childMap); WidgetData child = childMap.values().iterator().next(); WidgetContainer container = (WidgetContainer)child.widget; if(container.getControl() == null) return; GridDataFactory.fillDefaults().grab(true, true).minSize(1, 1).applyTo((Control)container.getControl()); - - } - - @Override - public IEventCommand eventCommand(SWTDocument document, JSONObject object, WidgetContainer widget, String command) { - return null; + } - + }