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();
      }
    }

    return result;
  }
View Full Code Here


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

}
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

        }
      }
    }
    finally {
      if (model != null) {
        model.releaseFromRead();
      }
    }
    fEnableSourceValidation = (file != null && isBatchValidatorPreferenceEnabled(file) && shouldValidate(file) && fragmentCheck(file));
  }
View Full Code Here

        adapter.validate(ir);
      }
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
  }

  private IndexedRegion getCoveringNode(IRegion dirtyRegion) {
View Full Code Here

      if (sModel != null)
        indexedRegion = sModel.getIndexedRegion(sdRegion.getStart());
    }
    finally {
      if (sModel != null)
        sModel.releaseFromRead();
    }
    return indexedRegion;
  }

  private boolean hasHTMLFeature(IDOMDocument document) {
View Full Code Here

        }
      }
    }
    finally {
      if (model != null) {
        model.releaseFromRead();
      }
    }
    fEnableSourceValidation = (file != null && isBatchValidatorPreferenceEnabled(file) && shouldValidate(file) && fragmentCheck(file));
  }
View Full Code Here

        return;
      performValidation(file, reporter, model, dirtyRegion);
    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
  }

  /**
   * Gets current validation configuration based on current project (which
View Full Code Here

      }

    }
    finally {
      if (model != null)
        model.releaseFromRead();
    }
    return null;
  }

  /*
 
View Full Code Here

        }
        else if (model != null)
        {
            // only release from read if we don't find a DOMModelForJSP
            // if the model is correct, it will be released in dispose
            model.releaseFromRead();
        }
       
        JSFCorePlugin.log("Couldn't get valid model for file: "+file.toString(), new Exception()); //$NON-NLS-1$
        return null;
    }
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.