Package tk.eclipse.plugin.htmleditor

Examples of tk.eclipse.plugin.htmleditor.HTMLProjectParams


    // add to cache
    cache.put(uri, this);
  }
 
  private static IContainer getBaseDir(IProject project) throws Exception {
    HTMLProjectParams params = new HTMLProjectParams(project);
    String root = params.getRoot();
   
    IContainer basedir = null;
    if(root.equals("") || root.equals("/")){
      basedir = project;
    } else {
View Full Code Here


      try {
        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
          public void run(IProgressMonitor monitor) throws CoreException {
            try {
              IFileEditorInput input = (IFileEditorInput)getEditorInput();
              HTMLProjectParams params = new HTMLProjectParams(input.getFile().getProject());
              if(params.getRemoveMarkers()){
                input.getFile().deleteMarkers(IMarker.PROBLEM,false,0);
              }
            } catch(Exception ex){
            }
          }
View Full Code Here

        manager.generateUniqueLaunchConfigurationNameFrom(file.getName()));
   
    wc.setAttribute(JavaScriptLaunchConstants.ATTR_JAVASCRIPT_FILE, fullPath);
   
    try {
      HTMLProjectParams params = new HTMLProjectParams(file.getProject());
      String[] javaScripts = params.getJavaScripts();
      List<String> includes = new ArrayList<String>();
      for(int i=0;i<javaScripts.length;i++){
        includes.add(javaScripts[i]);
      }
     
View Full Code Here

   */
  public void update(IFile file){
    try {
      functions.clear();
     
      HTMLProjectParams params = new HTMLProjectParams(file.getProject());
      String[] javaScripts = params.getJavaScripts();
      IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
     
      for(int i=0;i<javaScripts.length;i++){
        InputStream in = null;
        Object obj = null;
View Full Code Here

          IFile file = input.getFile();
         
          file.deleteMarkers(IMarker.PROBLEM,false,0);
         
          try {
            HTMLProjectParams params = new HTMLProjectParams(file.getProject());
            if(!params.getValidateDTD()){
              return;
            }
           
            new DTDParser(new StringReader(getHTMLSource())).parse();
          } catch(DTDParseException ex){
View Full Code Here

   *
   * @param project the project
   * @return the <code>IContainer</code> of the web application root folder
   */
  public static IContainer getBaseDir(IProject project) throws Exception {
    HTMLProjectParams params = new HTMLProjectParams(project);
    String root = params.getRoot();
   
    IContainer basedir = null;
    if(root.equals("") || root.equals("/")){
      basedir = project;
    } else {
View Full Code Here

          try {
            IFileEditorInput input = (IFileEditorInput) getEditorInput();
            IFile file = input.getFile();
            file.deleteMarkers(IMarker.PROBLEM, false, 0);

            HTMLProjectParams params = new HTMLProjectParams(file.getProject());
            if (params.getValidateHTML()) {
              new HTMLValidator(input.getFile()).doValidate();
            }
          }
          catch (Exception ex) {
            //HTMLPlugin.logException(ex);
View Full Code Here

      try {
        ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
          public void run(IProgressMonitor monitor) throws CoreException {
            try {
              IFileEditorInput input = (IFileEditorInput) getEditorInput();
              HTMLProjectParams params = new HTMLProjectParams(input.getFile().getProject());
              if (params.getRemoveMarkers()) {
                input.getFile().deleteMarkers(IMarker.PROBLEM, false, 0);
              }
            }
            catch (Exception ex) {
            }
View Full Code Here

  private JSPInfo(IFile file, String source, boolean include) {
    super();
   
    try {
      // load project preference
      HTMLProjectParams params = new HTMLProjectParams(file.getProject());
      String webapproot = params.getRoot();
   
      // processing for include direcive
      IContainer basedir = file.getProject();
      if (!webapproot.equals("") && !webapproot.equals("/")) {
        basedir = basedir.getFolder(new Path(webapproot));
View Full Code Here

   * @param file the editing file
   */
  public void update(IFile file){
    try {
     
      HTMLProjectParams params = new HTMLProjectParams(file.getProject());
      String[] javaScripts = params.getJavaScripts();
      IWorkspaceRoot wsroot = ResourcesPlugin.getWorkspace().getRoot();
      functions.clear();
     
      for(int i=0;i<javaScripts.length;i++){
        InputStream in = null;
View Full Code Here

TOP

Related Classes of tk.eclipse.plugin.htmleditor.HTMLProjectParams

Copyright © 2018 www.massapicom. 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.