| /*******************************************************************************
|
| * Copyright (c) 2009, 2019 Mia-Software and others.
|
| * All rights reserved. This program and the accompanying materials
|
| * are made available under the terms of the Eclipse Public License v2.0
|
| * which accompanies this distribution, and is available at
|
| * http://www.eclipse.org/legal/epl-v20.html
|
| *
|
| * Contributors:
|
| * Nicolas Bros (Mia-Software)
|
| *******************************************************************************/ |
| package org.eclipse.modisco.infra.browser.queryResultDisplayers;
|
|
|
| import java.util.List;
|
|
|
| import org.eclipse.modisco.infra.browser.editors.table.TableEditorFactory;
|
| import org.eclipse.modisco.infra.query.runtime.ModelQueryResult;
|
| import org.eclipse.modisco.infra.query.ui.views.queryExecution.QueryResultDisplayer;
|
|
|
| public class TableQueryResultDisplayer implements QueryResultDisplayer {
|
|
|
| public TableQueryResultDisplayer() {
|
| // nothing
|
| }
|
|
|
| public void displayQueryResult(final List<ModelQueryResult> result) {
|
| TableEditorFactory.getInstance().openOn(result);
|
| }
|
|
|
| }
|