X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.procore.ui%2Fsrc%2Forg%2Fsimantics%2Fdb%2Fprocore%2Fui%2FAuxiliary.java;h=36d8966735d01b31b0d79e96d60ed03a12f4482e;hb=refs%2Fchanges%2F02%2F2502%2F3;hp=996c4683fa1cefb8a309df67dcab32694260d17f;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/Auxiliary.java b/bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/Auxiliary.java index 996c4683f..36d896673 100644 --- a/bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/Auxiliary.java +++ b/bundles/org.simantics.db.procore.ui/src/org/simantics/db/procore/ui/Auxiliary.java @@ -1,45 +1,45 @@ -package org.simantics.db.procore.ui; - -import java.io.File; - -import org.eclipse.swt.widgets.Shell; -import org.simantics.db.exception.InternalException; -import org.simantics.db.procore.ui.internal.UI; - -public class Auxiliary { - /** - * @param shell for the user interface. - * @param exception thrown from server. - * @return true if server can be started. - */ - public static boolean beforeStart(Shell shell, File folder) throws InternalException { - boolean skipPurge = "true".equals(System.getProperty("org.simantics.db.procore.ui.skipPurge")); - if (skipPurge) - return true; - return UI.purge(shell, folder); - } - /** - * @param shell for the user interface. - * @param exception thrown from server start. - * @return true if problem with server start was successfully fixed. - */ - public static boolean handleStart(Shell shell, InternalException exception) throws InternalException { - return UI.handleStart(shell, exception); - } - /** - * @param shell for the user interface. - * @param folder of the database. - * @return true if deletion was successful. - */ - public static boolean delete(Shell shell, File folder) { - return UI.delete(shell, folder); - } - /** - * @param shell for the user interface. - * @param folder of the database. - * @return true if purge was successful. - */ - public static boolean purge(Shell shell, File folder) { - return UI.purge(shell, folder); - } -} +package org.simantics.db.procore.ui; + +import java.io.File; + +import org.eclipse.swt.widgets.Shell; +import org.simantics.db.exception.InternalException; +import org.simantics.db.procore.ui.internal.UI; + +public class Auxiliary { + /** + * @param shell for the user interface. + * @param exception thrown from server. + * @return true if server can be started. + */ + public static boolean beforeStart(Shell shell, File folder) throws InternalException { + boolean skipPurge = "true".equals(System.getProperty("org.simantics.db.procore.ui.skipPurge")); //$NON-NLS-1$ //$NON-NLS-2$ + if (skipPurge) + return true; + return UI.purge(shell, folder); + } + /** + * @param shell for the user interface. + * @param exception thrown from server start. + * @return true if problem with server start was successfully fixed. + */ + public static boolean handleStart(Shell shell, InternalException exception) throws InternalException { + return UI.handleStart(shell, exception); + } + /** + * @param shell for the user interface. + * @param folder of the database. + * @return true if deletion was successful. + */ + public static boolean delete(Shell shell, File folder) { + return UI.delete(shell, folder); + } + /** + * @param shell for the user interface. + * @param folder of the database. + * @return true if purge was successful. + */ + public static boolean purge(Shell shell, File folder) { + return UI.purge(shell, folder); + } +}