GraphDbServiceManager sm = Activator.getDefault().getGraphDbServiceManager();
if ( MessageDialog.openQuestion( null, "Stopping the database",
"There are changes that are not commited to the database. Do you want to commit (save) them?" ) )
{
sm.commit();
}
else
{
sm.rollback();
}