X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdiagram%2Fhandler%2FCanvasListener.java;h=978bb29274ffc15e48d3194cf66499c59f2710d8;hb=a43df9e895f022132f9b94dfedeae78fb4eed712;hp=8f8ee493dee18508acfbf9b2215cc9a5cf31a0b8;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/CanvasListener.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/CanvasListener.java index 8f8ee493d..978bb2927 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/CanvasListener.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/CanvasListener.java @@ -1,31 +1,31 @@ -/******************************************************************************* - * 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.g2d.diagram.handler; - -import org.simantics.g2d.canvas.ICanvasContext; -import org.simantics.g2d.diagram.IDiagram; - -/** - * Hooks events of adding / removing diagram to/from canvas. - *

- * This handler requires DiagramParticipant. - *

- * Note, diagram may be added to multiple canvases at the same time - * - * @author Toni Kalajainen - */ -public interface CanvasListener extends DiagramHandler { - - public void onAddedToCanvas(IDiagram d, ICanvasContext canvas); - public void onRemovedFromCanvas(IDiagram d, ICanvasContext canvas); - -} +/******************************************************************************* + * 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.g2d.diagram.handler; + +import org.simantics.g2d.canvas.ICanvasContext; +import org.simantics.g2d.diagram.IDiagram; + +/** + * Hooks events of adding / removing diagram to/from canvas. + *

+ * This handler requires DiagramParticipant. + *

+ * Note, diagram may be added to multiple canvases at the same time + * + * @author Toni Kalajainen + */ +public interface CanvasListener extends DiagramHandler { + + public void onAddedToCanvas(IDiagram d, ICanvasContext canvas); + public void onRemovedFromCanvas(IDiagram d, ICanvasContext canvas); + +}