Examples of CFMLPropertyManager


Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    this.data2Parse = data;
  }

  private void initOrgCFParser() {
    if (parser == null) {
      CFMLPropertyManager propertyManager = new CFMLPropertyManager();
      if (res == null) {
        IEditorPart editor = CFMLPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
        String dict = propertyManager.getCurrentDictionary(((IFileEditorInput) editor.getEditorInput()).getFile().getProject());
        parser = CFMLPlugin.newCFMLParser(dict);
      } else {
        String dict = propertyManager.getCurrentDictionary(res.getProject());
        parser = CFMLPlugin.newCFMLParser(dict);
      }
    }
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

   * Constructor for NewCfmlWizard.
   */
  public NewTemplateFileWizard() {
    super();
    setNeedsProgressMonitor(true);
    propertyManager = new CFMLPropertyManager();
    snipReader = new SnipReader();
   
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
   
   
      snipBase = new Path(propertyManager.defaultSnippetsPath());
     
   
   
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    private String keyComboFilePath = "";
    private String snippetFilePath = "";
    private static String HEADER_TEXT = "These key combos are used by the cfeclipse plugin.";
   
    public SnipKeyCombos() {
      CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    this.snippetFilePath = new File(propertyManager.defaultSnippetsPath()).toString();
    this.keyComboFilePath = this.snippetFilePath + "/keyCombos.properties";
   
      
        loadKeyCombos();
    }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

      //FileEditorInput input = (FileEditorInput)element;
     
      //This is what is WRONG! We need to know what project the document is in so we can get the right library...
     
      //try to load the proper dictionary syntax for this document     
      CFMLPropertyManager pm = new CFMLPropertyManager();
     
      //How do we know which project this goes to?
      //String currentDict = pm.getCurrentDictionary(input.getFile().getProject());
      //if(currentDict == null || currentDict == "")
     
      String currentDict = DictionaryManager.getFirstVersion(DictionaryManager.CFDIC);
     
        if(element instanceof FileEditorInput){
          IProject project = ((FileEditorInput)element).getFile().getProject();
          currentDict = pm.getCurrentDictionary(project);
        }
     
     
     
      DictionaryManager.loadDictionaryFromCache(
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

  protected ITextEditor editor = null;

  private CFMLPropertyManager propertyManager;

  public BrowseToCurrentPageAction() {
    propertyManager = new CFMLPropertyManager();
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

  private CFMLPropertyManager propertyManager;

    public BrowseToProjectRootAction()
  {
        propertyManager = new CFMLPropertyManager();
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    formatprefs.braces_on_own_line(prefs.braces_on_own_line());
    formatprefs.formatCSS(prefs.formatCSS());
    formatprefs.setFormatSQL(prefs.formatSQL());
    formatprefs.setIgnoredTags(ignoredTags);
    formatprefs.setCloseTagsList(prefs.getCloseTagsList());
    CFMLPropertyManager props = new CFMLPropertyManager();
    formatprefs.setDictionaryDir(props.getDictionaryDir());
    formatprefs.setCFDictionary("ColdFusion9");

    fFormatter = new Formatter(formatprefs);
    String formatted = fFormatter.format(contents);
    return formatted;
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

            IEditorInput input = editor.getEditorInput();
           
     
            IFile file = ResourceUtil.getFile(input);
            if (file != null){
              CFMLPropertyManager propman = new CFMLPropertyManager();
              String currentDictionary = propman.getCurrentDictionary(file);
              combo.setText(currentDictionary);
              viewer.setContentProvider(new DictionaryViewContentProvider(viewtype, combo.getText()));
          viewer.expandToLevel(2);
            }
          }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

     *  I couldnt get it working without this.
     *  
     */
    if(!snippetFile.exists()){
     
      CFMLPropertyManager propertyManager = new CFMLPropertyManager();
      this.snippetFile = new File(propertyManager.defaultSnippetsPath() + fileName);
     
     
     
    }
   
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

      }
  
  
  
   private DictionaryViewContentProvider getContentProviderByFile(IFile file){
     CFMLPropertyManager propMan = new CFMLPropertyManager();
     String currentDictionary = propMan.getCurrentDictionary(file);
  //SyntaxDictionary dictionary = DictionaryManager.getDictionaries()getDictionary(key)(currentDictionary);
 
   
      Map dictionaries = DictionaryManager.getDictionaries();
     //Object object = DictionaryManager.getDictionaries().get("CF_DICTIONARY");
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.