X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.workbench%2Fsrc%2Forg%2Fsimantics%2Fworkbench%2Finternal%2FJFaceUserAgent.java;fp=bundles%2Forg.simantics.workbench%2Fsrc%2Forg%2Fsimantics%2Fworkbench%2Finternal%2FJFaceUserAgent.java;h=fcaba78fc8b112564663f39ca3506511c53392b6;hp=372a0903af6f90aef8a95736408b9180fbb13e77;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics.workbench/src/org/simantics/workbench/internal/JFaceUserAgent.java b/bundles/org.simantics.workbench/src/org/simantics/workbench/internal/JFaceUserAgent.java index 372a0903a..fcaba78fc 100644 --- a/bundles/org.simantics.workbench/src/org/simantics/workbench/internal/JFaceUserAgent.java +++ b/bundles/org.simantics.workbench/src/org/simantics/workbench/internal/JFaceUserAgent.java @@ -1,35 +1,35 @@ -/******************************************************************************* - * Copyright (c) 2011 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.workbench.internal; - -import org.eclipse.jface.dialogs.MessageDialog; -import org.simantics.PlatformUserAgent; - -/** - * @author Tuukka Lehtonen - */ -public class JFaceUserAgent implements PlatformUserAgent { - - @Override - public int showPrompt(String title, String message, String[] options, int defaultChoice) { - MessageDialog dialog = new MessageDialog( - null, - title, - null, - message, - MessageDialog.QUESTION, - options, - defaultChoice); - return dialog.open(); - } - -} +/******************************************************************************* + * Copyright (c) 2011 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.workbench.internal; + +import org.eclipse.jface.dialogs.MessageDialog; +import org.simantics.PlatformUserAgent; + +/** + * @author Tuukka Lehtonen + */ +public class JFaceUserAgent implements PlatformUserAgent { + + @Override + public int showPrompt(String title, String message, String[] options, int defaultChoice) { + MessageDialog dialog = new MessageDialog( + null, + title, + null, + message, + MessageDialog.QUESTION, + options, + defaultChoice); + return dialog.open(); + } + +}