Package org.eclipse.wst.sse.core.internal.provisional

Examples of org.eclipse.wst.sse.core.internal.provisional.IStructuredModel.releaseFromRead()


    catch (CoreException e) {
      Logger.logException(e);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
  }

  public IStatus validateInJob(final IValidationContext helper, final IReporter reporter) throws ValidationException {
    Job currentJob = Job.getJobManager().currentJob();
View Full Code Here


    catch (Exception e) {
      Logger.logException(e);
    }
    finally {
      if (null != model)
        model.releaseFromRead();
    }
  }

  private IPreferencesService fPreferencesService = null;
  private IScopeContext[] fScopes = null;
View Full Code Here

      catch (Exception e) {
        Logger.logException(e);
      }
      finally {
        if (model != null) {
          model.releaseFromRead();
        }
      }
    }
    catch (IOException e1) {
      /* file is unreadable, create no property groups */
 
View Full Code Here

    try {
      IStructuredModel newModel = provider.getModelForRead(baseModel, href);
      if (newModel == null)
        return null;
      if (!(newModel instanceof ICSSModel)) {
        newModel.releaseFromRead();
        return null;
      }

      // notify adapter
      if (adapter != null)
View Full Code Here

    catch (IOException e) {
      Logger.logException(e);
    }
    finally {
      if (m != null)
        m.releaseFromRead();
    }

    return (Map[]) problems.toArray(new Map[problems.size()]);
  }
View Full Code Here

      catch (CoreException e) {
        Logger.logException(e);
      }
      finally {
        if (model != null)
          model.releaseFromRead();
      }
    }

    return result;
  }
View Full Code Here

    catch (CoreException e) {
      Logger.logException(e);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
  }

}
View Full Code Here

    catch (CoreException e) {
      Logger.logException(e);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
  }

  /**
   * Record that the currently validating resource depends on the given
View Full Code Here

          fRegion = model.getIndexedRegion(fDocumentPosition);
        }
      }
      finally {
        if (model != null)
          model.releaseFromRead();
      }
    }
  }
}
View Full Code Here

                }
              }
            }
            finally {
              if (sModel != null)
                sModel.releaseFromRead();
            }             
          }
        }
        catch (BadLocationException e) {
          Logger.log(Logger.WARNING_DEBUG, e.getMessage(), e);
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.