X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.document.swt.core%2Fsrc%2Forg%2Fsimantics%2Fdocument%2Fswt%2Fcore%2FSWTDocument.java;h=1e97e22771ced6815a4b55cfadc1d8be1722196f;hb=e4ffdffae875e518a4eb070b8bda6ead1a9843d3;hp=901013fcaec5f6ecfbf3c3ed0c8aa519c4462961;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/SWTDocument.java b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/SWTDocument.java index 901013fca..1e97e2277 100644 --- a/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/SWTDocument.java +++ b/bundles/org.simantics.document.swt.core/src/org/simantics/document/swt/core/SWTDocument.java @@ -1,27 +1,44 @@ -package org.simantics.document.swt.core; - -import java.util.Collections; -import java.util.Map; - -import org.eclipse.jface.viewers.ISelectionProvider; -import org.eclipse.swt.graphics.Color; -import org.eclipse.swt.graphics.Font; -import org.eclipse.ui.IWorkbenchSite; -import org.simantics.document.server.client.Document; -import org.simantics.document.server.handler.AbstractEventHandler; -import org.simantics.document.server.io.CommandContext; - -public interface SWTDocument extends Document { - - public static final Map NO_PARAMETERS = Collections.emptyMap(); - - IWorkbenchSite getSite(); - ISelectionProvider getSelectionProvider(); - Color getColor(org.simantics.datatypes.literal.RGB.Integer bean); - Font getFont(org.simantics.datatypes.literal.Font bean); - void post(AbstractEventHandler handler, CommandContext parameters); - void layout(); - - void displayError(String error); - -} +/******************************************************************************* + * Copyright (c) 2019 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: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.document.swt.core; + +import java.util.Collections; +import java.util.List; +import java.util.Map; + +import org.eclipse.jface.viewers.ISelectionProvider; +import org.eclipse.swt.graphics.Color; +import org.eclipse.swt.graphics.Font; +import org.eclipse.ui.IWorkbenchSite; +import org.simantics.document.server.client.Document; +import org.simantics.document.server.client.WidgetData; +import org.simantics.document.server.io.AbstractEventHandler; +import org.simantics.document.server.io.CommandContext; +import org.simantics.document.server.io.CommandContextMutable; +import org.simantics.document.server.io.ICommand; +import org.simantics.utils.datastructures.Pair; + +public interface SWTDocument extends Document { + + public static final Map NO_PARAMETERS = Collections.emptyMap(); + + IWorkbenchSite getSite(); + ISelectionProvider getSelectionProvider(); + Color getColor(org.simantics.datatypes.literal.RGB.Integer bean); + Font getFont(org.simantics.datatypes.literal.Font bean); + void post(AbstractEventHandler handler, CommandContextMutable context); + CommandContext handleCommands(List> data, CommandContextMutable context, Object component); + void layout(); + + void displayError(String error); + +}