]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/ReportFactory.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / modelBrowser / model / ReportFactory.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.ui.modelBrowser.model;
13
14 import java.util.Collection;
15 import java.util.Collections;
16
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;
23
24 @Deprecated
25 public class ReportFactory extends StatementPredicateNode {
26
27     public ReportFactory(ReadGraph g, Statement statement) {
28         super(statement);
29     }
30
31     @Override
32     public Collection<?> getChildren(ReadGraph g) {
33         return Collections.emptyList();
34     }
35
36     @Override
37     public ImageDescriptor getImage(ReadGraph g) {
38         return Activator.QUERY_ICON;
39     }
40
41 //    @Override
42 //    public void open() {
43 //        try {
44 //            WorkbenchUtils.openEditor(WikiEditor.EDITOR_ID, new ResourceEditorInput(WikiEditor.EDITOR_ID, new ResourceArray(statement.getSubject(), statement.getPredicate())));
45 //        } catch (PartInitException e) {
46 //            e.printStackTrace();
47 //        }
48 //    }
49
50     @Override
51     public void handleDelete(WriteGraph graph) throws DatabaseException {
52     }
53
54 }