X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.g2d%2Fsrc%2Forg%2Fsimantics%2Fg2d%2Fdiagram%2Fhandler%2FValidator.java;h=b0151c0b921116b6d718b896a55f1e001433b23c;hb=6f11a60dee43d620d500c0cf5af34a1d91c80a8b;hp=cc79e78875eaf096d4bd37432b3b0b29d5c0b684;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Validator.java b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Validator.java index cc79e7887..b0151c0b9 100644 --- a/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Validator.java +++ b/bundles/org.simantics.g2d/src/org/simantics/g2d/diagram/handler/Validator.java @@ -1,40 +1,40 @@ -/******************************************************************************* - * 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 java.util.Collection; - -import org.simantics.g2d.canvas.ICanvasContext; -import org.simantics.g2d.diagram.IDiagram; -import org.simantics.g2d.diagram.handler.impl.DiagramIssue; - -/** - * Validates diagram - * - * @See {@link DiagramIssue} - * @author Toni Kalajainen - */ -public interface Validator extends DiagramHandler { - - public interface Suggestion { - String getMessage(); - boolean fix(IDiagram d, ICanvasContext ctx); - } - - public interface Issue { - String getMessage(IDiagram d, ICanvasContext ctx); - void addSuggestions(IDiagram d, ICanvasContext ctx, Collection suggestionList); - } - - void validate(IDiagram d, ICanvasContext ctx, Collection lst); - -} +/******************************************************************************* + * 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 java.util.Collection; + +import org.simantics.g2d.canvas.ICanvasContext; +import org.simantics.g2d.diagram.IDiagram; +import org.simantics.g2d.diagram.handler.impl.DiagramIssue; + +/** + * Validates diagram + * + * @See {@link DiagramIssue} + * @author Toni Kalajainen + */ +public interface Validator extends DiagramHandler { + + public interface Suggestion { + String getMessage(); + boolean fix(IDiagram d, ICanvasContext ctx); + } + + public interface Issue { + String getMessage(IDiagram d, ICanvasContext ctx); + void addSuggestions(IDiagram d, ICanvasContext ctx, Collection suggestionList); + } + + void validate(IDiagram d, ICanvasContext ctx, Collection lst); + +}