X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2FDataSource.java;h=141f2175938b33e174ef144544af6dd3c20a2ccb;hp=e905de637d396088991cc800d5f831771532e97d;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/DataSource.java b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/DataSource.java index e905de637..141f21759 100644 --- a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/DataSource.java +++ b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/DataSource.java @@ -1,30 +1,30 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 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; - -import java.util.function.Consumer; - -/** - * This interface represents anything that can be used to retrieve data through - * scheduling of callback objects. It is used in the Graph Explorer for - * off-loading of possibly heavy data retrieval tasks into other threads running - * in the background from the the UI thread(s). - * - * @param - */ -public interface DataSource { - - public void schedule(Consumer callback); - - Class getProvidedClass(); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 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; + +import java.util.function.Consumer; + +/** + * This interface represents anything that can be used to retrieve data through + * scheduling of callback objects. It is used in the Graph Explorer for + * off-loading of possibly heavy data retrieval tasks into other threads running + * in the background from the the UI thread(s). + * + * @param + */ +public interface DataSource { + + public void schedule(Consumer callback); + + Class getProvidedClass(); + +}