1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.ui.modelBrowser.model;
14 import java.util.Collection;
15 import java.util.Collections;
17 import org.eclipse.jface.resource.ImageDescriptor;
18 import org.simantics.db.ReadGraph;
19 import org.simantics.db.Statement;
20 import org.simantics.db.WriteGraph;
21 import org.simantics.db.exception.DatabaseException;
22 import org.simantics.modeling.ui.Activator;
25 public class ReportFactory extends StatementPredicateNode {
27 public ReportFactory(ReadGraph g, Statement statement) {
32 public Collection<?> getChildren(ReadGraph g) {
33 return Collections.emptyList();
37 public ImageDescriptor getImage(ReadGraph g) {
38 return Activator.QUERY_ICON;
42 // public void open() {
44 // WorkbenchUtils.openEditor(WikiEditor.EDITOR_ID, new ResourceEditorInput(WikiEditor.EDITOR_ID, new ResourceArray(statement.getSubject(), statement.getPredicate())));
45 // } catch (PartInitException e) {
46 // e.printStackTrace();
51 public void handleDelete(WriteGraph graph) throws DatabaseException {