X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.ui%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Fui%2FmodelBrowser%2Fmodel%2FReportFactory.java;h=5fc9540ad7d065f72f6f4d6c6aae5f4781b2b288;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hp=57a252cd85db93c805cd18a429b8da9751b183a1;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/ReportFactory.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/ReportFactory.java index 57a252cd8..5fc9540ad 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/ReportFactory.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/modelBrowser/model/ReportFactory.java @@ -1,54 +1,54 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * 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.modeling.ui.modelBrowser.model; - -import java.util.Collection; -import java.util.Collections; - -import org.eclipse.jface.resource.ImageDescriptor; -import org.simantics.db.ReadGraph; -import org.simantics.db.Statement; -import org.simantics.db.WriteGraph; -import org.simantics.db.exception.DatabaseException; -import org.simantics.modeling.ui.Activator; - -@Deprecated -public class ReportFactory extends StatementPredicateNode { - - public ReportFactory(ReadGraph g, Statement statement) { - super(statement); - } - - @Override - public Collection getChildren(ReadGraph g) { - return Collections.emptyList(); - } - - @Override - public ImageDescriptor getImage(ReadGraph g) { - return Activator.QUERY_ICON; - } - -// @Override -// public void open() { -// try { -// WorkbenchUtils.openEditor(WikiEditor.EDITOR_ID, new ResourceEditorInput(WikiEditor.EDITOR_ID, new ResourceArray(statement.getSubject(), statement.getPredicate()))); -// } catch (PartInitException e) { -// e.printStackTrace(); -// } -// } - - @Override - public void handleDelete(WriteGraph graph) throws DatabaseException { - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * 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.modeling.ui.modelBrowser.model; + +import java.util.Collection; +import java.util.Collections; + +import org.eclipse.jface.resource.ImageDescriptor; +import org.simantics.db.ReadGraph; +import org.simantics.db.Statement; +import org.simantics.db.WriteGraph; +import org.simantics.db.exception.DatabaseException; +import org.simantics.modeling.ui.Activator; + +@Deprecated +public class ReportFactory extends StatementPredicateNode { + + public ReportFactory(ReadGraph g, Statement statement) { + super(statement); + } + + @Override + public Collection getChildren(ReadGraph g) { + return Collections.emptyList(); + } + + @Override + public ImageDescriptor getImage(ReadGraph g) { + return Activator.QUERY_ICON; + } + +// @Override +// public void open() { +// try { +// WorkbenchUtils.openEditor(WikiEditor.EDITOR_ID, new ResourceEditorInput(WikiEditor.EDITOR_ID, new ResourceArray(statement.getSubject(), statement.getPredicate()))); +// } catch (PartInitException e) { +// e.printStackTrace(); +// } +// } + + @Override + public void handleDelete(WriteGraph graph) throws DatabaseException { + } + +}