-/*******************************************************************************\r
- * Copyright (c) 2007, 2012 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.browsing.ui.swt.widgets;\r
-\r
-import java.util.concurrent.atomic.AtomicBoolean;\r
-\r
-import org.eclipse.swt.widgets.Control;\r
-import org.eclipse.swt.widgets.Layout;\r
-import org.simantics.browsing.ui.swt.widgets.impl.WidgetSupport;\r
-import org.simantics.db.management.ISessionContext;\r
-\r
-public class Composite extends WidgetImpl {\r
-\r
- final private org.eclipse.swt.widgets.Composite composite;\r
-\r
- public Composite(org.eclipse.swt.widgets.Composite parent, WidgetSupport support, int style) {\r
- super(support);\r
- composite = new org.eclipse.swt.widgets.Composite(parent, style);\r
- support.register(this);\r
- }\r
-\r
- public org.eclipse.swt.widgets.Composite getWidget() {\r
- return composite;\r
- }\r
-\r
- @Override\r
- public Control getControl() {\r
- return composite;\r
- }\r
-\r
- private AtomicBoolean inputDisposed;\r
-\r
- @Override\r
- public void setInput(ISessionContext context, Object input) {\r
-\r
- if (this.inputDisposed != null)\r
- this.inputDisposed.set(true);\r
- \r
- }\r
-\r
- public void setLayout(Layout layout) {\r
- composite.setLayout(layout);\r
- }\r
- \r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2012 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:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui.swt.widgets;
+
+import java.util.concurrent.atomic.AtomicBoolean;
+
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Layout;
+import org.simantics.browsing.ui.swt.widgets.impl.WidgetSupport;
+import org.simantics.db.management.ISessionContext;
+
+public class Composite extends WidgetImpl {
+
+ final private org.eclipse.swt.widgets.Composite composite;
+
+ public Composite(org.eclipse.swt.widgets.Composite parent, WidgetSupport support, int style) {
+ super(support);
+ composite = new org.eclipse.swt.widgets.Composite(parent, style);
+ support.register(this);
+ }
+
+ public org.eclipse.swt.widgets.Composite getWidget() {
+ return composite;
+ }
+
+ @Override
+ public Control getControl() {
+ return composite;
+ }
+
+ private AtomicBoolean inputDisposed;
+
+ @Override
+ public void setInput(ISessionContext context, Object input) {
+
+ if (this.inputDisposed != null)
+ this.inputDisposed.set(true);
+
+ }
+
+ public void setLayout(Layout layout) {
+ composite.setLayout(layout);
+ }
+
+}