X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.district.maps%2Fsrc%2Forg%2Fsimantics%2Fmaps%2Fquery%2FQuery.java;fp=org.simantics.district.maps%2Fsrc%2Forg%2Fsimantics%2Fmaps%2Fquery%2FQuery.java;h=7f1bf79c0331d375a9ae1874d38f6d81ff58d6c5;hb=e9f74f09e0cedb603c0b4de9e542de8dd64a5ce3;hp=0000000000000000000000000000000000000000;hpb=16ee01dc5a40981c58fd5b478b89552e5814e8bb;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.maps/src/org/simantics/maps/query/Query.java b/org.simantics.district.maps/src/org/simantics/maps/query/Query.java new file mode 100644 index 00000000..7f1bf79c --- /dev/null +++ b/org.simantics.district.maps/src/org/simantics/maps/query/Query.java @@ -0,0 +1,39 @@ +/******************************************************************************* + * Copyright (c) 2007 VTT Technical Research Centre of Finland and others. + * 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.maps.query; + + +/** + * @author Tuukka Lehtonen + * + * @param + * @param + */ +public class Query { + + public final S source; + + public final IQueryListener listener; + + public Query(S source, IQueryListener listener) { + assert source != null; + assert listener != null; + + this.source = source; + this.listener = listener; + } + + @Override + public String toString() { + return getClass().getName() + " [" + source + "]"; + } + +}