X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fadapter%2FIDiagramLoader.java;h=b853315f53f14f121caf067bea078f2ee1244b83;hb=617b9475710b80a125597f222f9777224972ce72;hp=5f0bc9ec2d67b93bec9da1c75fb0611a66d0fb1f;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/IDiagramLoader.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/IDiagramLoader.java index 5f0bc9ec2..b853315f5 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/IDiagramLoader.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/adapter/IDiagramLoader.java @@ -1,46 +1,46 @@ -/******************************************************************************* - * 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.diagram.adapter; - -import org.eclipse.core.runtime.IProgressMonitor; -import org.simantics.db.ReadGraph; -import org.simantics.db.Resource; -import org.simantics.db.common.ResourceArray; -import org.simantics.db.exception.DatabaseException; -import org.simantics.g2d.diagram.IDiagram; -import org.simantics.utils.datastructures.hints.IHintObservable; - -/** - * This is a simple interface for loading diagrams from the graph. - * - * @author Tuukka Lehtonen - * @see GraphToDiagramSynchronizer - */ -public interface IDiagramLoader { - - /** - * @param monitor for tracking loading progress - * @param graph for reading the graph database - * @param diagram the diagram resource - * @param structuralPath the structural component path of the diagram to be - * loaded. If there's no structural path, {@link ResourceArray#NONE} - * can be used. - * @param initialHintContext a set of initial hints that are to be set into - * the loaded diagram before the diagram contents are loaded or - * null there are no initial hints to be set - * @return return the loaded diagram - * @throws DatabaseException if something goes wrong while loading the - * diagram from the database - */ - IDiagram loadDiagram(IProgressMonitor monitor, ReadGraph graph, String modelURI, Resource diagram, Resource runtime, ResourceArray structuralPath, IHintObservable initialHints) 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.diagram.adapter; + +import org.eclipse.core.runtime.IProgressMonitor; +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.common.ResourceArray; +import org.simantics.db.exception.DatabaseException; +import org.simantics.g2d.diagram.IDiagram; +import org.simantics.utils.datastructures.hints.IHintObservable; + +/** + * This is a simple interface for loading diagrams from the graph. + * + * @author Tuukka Lehtonen + * @see GraphToDiagramSynchronizer + */ +public interface IDiagramLoader { + + /** + * @param monitor for tracking loading progress + * @param graph for reading the graph database + * @param diagram the diagram resource + * @param structuralPath the structural component path of the diagram to be + * loaded. If there's no structural path, {@link ResourceArray#NONE} + * can be used. + * @param initialHintContext a set of initial hints that are to be set into + * the loaded diagram before the diagram contents are loaded or + * null there are no initial hints to be set + * @return return the loaded diagram + * @throws DatabaseException if something goes wrong while loading the + * diagram from the database + */ + IDiagram loadDiagram(IProgressMonitor monitor, ReadGraph graph, String modelURI, Resource diagram, Resource runtime, ResourceArray structuralPath, IHintObservable initialHints) throws DatabaseException; + +}