Package org.eclipse.osgi.service.datalocation

Examples of org.eclipse.osgi.service.datalocation.Location.lock()


      }

            // at this point its valid, so try to lock it and update the
            // metadata version information if successful
            try {
                if (instanceLoc.lock()) {
                    writeWorkspaceVersion();
                    return null;
                }
               
                // we failed to create the directory. 
View Full Code Here


      Location workspaceLoc = Platform.getInstanceLocation();
      if (!workspaceLoc.isSet()) {
        // Use default
        workspaceLoc.set(workspaceLoc.getDefault(), false);
      }
      return workspaceLoc.lock();
    } catch (IOException e) {
      MessageDialog.openError(Display.getDefault().getActiveShell(),
          Messages.LogSawApplication_title_internalError,
          NLS.bind(Messages.LogSawApplication_message_internalError, e.getLocalizedMessage()));
      return false;
View Full Code Here

          loc.set(url, false);
        }
        if(loc.isLocked()) {
          return false;
        }
        loc.lock();
        return true;
      } catch (IllegalStateException e) {
        MessageDialog.openWarning(null, "Warning", "Exception trying to lock Vega instance: "+ e.getMessage());
      } catch (IOException e) {
        MessageDialog.openWarning(null, "Warning", "I/O Exception trying to lock Vega instance: "+ e.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.