コード例 #1
0
 @Override
 public void setDefaults(IProgressMonitor monitor) {
   super.setDefaults(monitor);
   try {
     getEquinoxConfiguration();
   } catch (CoreException e) {
     Trace.trace(Trace.SEVERE, "Can't setup for Equinox configuration.", e);
   }
 }
コード例 #2
0
  @Override
  public void importRuntimeConfiguration(IRuntime runtime, IProgressMonitor monitor)
      throws CoreException {

    super.importRuntimeConfiguration(runtime, monitor);
    OSGIFrameworkInstanceBehaviorDelegate fsb =
        (OSGIFrameworkInstanceBehaviorDelegate)
            getServer().loadAdapter(EquinoxFrameworkInstanceBehavior.class, null);
    if (fsb != null) {
      IPath tempDir = fsb.getTempDirectory();
      if (!tempDir.isAbsolute()) {
        IPath rootPath = ResourcesPlugin.getWorkspace().getRoot().getLocation();
        tempDir = rootPath.append(tempDir);
      }
      setInstanceDirectory(tempDir.toPortableString());
    }

    try {
      getEquinoxConfiguration();
    } catch (CoreException e) {
      Trace.trace(Trace.SEVERE, "Can't setup for Equinox configuration.", e);
    }
  }