import javax.jcr.version.VersionManager;
import org.apache.commons.io.IOUtils;
-import org.argeo.ArgeoException;
+import org.argeo.eclipse.ui.EclipseUiException;
import org.argeo.jcr.ArgeoNames;
import org.argeo.jcr.ArgeoTypes;
import org.argeo.jcr.JcrUtils;
session.save();
Node userHome = UserJcrUtils.getUserHome(session);
if (userHome == null)
- throw new ArgeoException("No user home for "
+ throw new EclipseUiException("No user home for "
+ session.getUserID());
Node preferences;
if (!userHome.hasNode(ARGEO_PREFERENCES)) {
} catch (RepositoryException e) {
e.printStackTrace();
JcrUtils.discardQuietly(session);
- throw new ArgeoException("Cannot retrieve preferences", e);
+ throw new EclipseUiException("Cannot retrieve preferences", e);
}
}
load(in);
} catch (Exception e) {
e.printStackTrace();
- throw new ArgeoException("Cannot load preferences", e);
+ throw new EclipseUiException("Cannot load preferences", e);
} finally {
IOUtils.closeQuietly(in);
IOUtils.closeQuietly(out);
vm.checkin(pluginPreferences.getPath());
} catch (Exception e) {
JcrUtils.discardUnderlyingSessionQuietly(pluginPreferences);
- throw new ArgeoException("Cannot save preferences", e);
+ throw new EclipseUiException("Cannot save preferences", e);
} finally {
IOUtils.closeQuietly(in);
IOUtils.closeQuietly(out);
try {
load();
} catch (IOException e) {
- throw new ArgeoException("Cannot initialize preference store", e);
+ throw new EclipseUiException("Cannot initialize preference store", e);
}
}