View Javadoc
1   /*
2    * Copyright 2013-2023 Medical Information Systems Research Group (https://medical.zcu.cz),
3    * Department of Computer Science and Engineering, University of West Bohemia.
4    * Address: Univerzitni 8, 306 14 Plzen, Czech Republic.
5    *
6    * This file is part of Sparkle project.
7    *
8    * Sparkle is free software: you can redistribute it and/or modify
9    * it under the terms of the GNU General Public License as published by
10   * the Free Software Foundation, either version 3 of the License.
11   *
12   * Sparkle is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15   * GNU General Public License for more details.
16   *
17   * You should have received a copy of the GNU General Public License
18   * along with Sparkle. If not, see <http://www.gnu.org/licenses/>.
19   */
20  package cz.zcu.mre.sparkle.gui.query.queryTypes.subselect;
21  
22  import cz.zcu.mre.sparkle.Messages;
23  import cz.zcu.mre.sparkle.data.DataAgent;
24  import cz.zcu.mre.sparkle.gui.evaluation.queryTabs.select.SelectEvaluationTab;
25  import cz.zcu.mre.sparkle.gui.query.QueryTab;
26  import org.apache.jena.query.QuerySolution;
27  
28  /**
29   * The tab controller for a SUBSELECT query.
30   *
31   * @author Josef Kazak
32   * @author Petr Vcelak (vcelak@kiv.zcu.cz)
33   */
34  public class SubSelectQueryTab extends QueryTab<QuerySolution> {
35  
36      public SubSelectQueryTab(final SubSelectQueryFormPane pane) {
37          super(pane);
38      }
39  
40      @Override
41      protected final SelectEvaluationTab createEvaluationTab(final DataAgent dataAgent) {
42          return new SelectEvaluationTab(this, dataAgent);
43      }
44  
45      @Override
46      protected final String getDefaultFileName() {
47          return Messages.getString("SUBSELECT_QUERY_DEFAULT_FILE_NAME"); //$NON-NLS-1$
48      }
49  
50  }