Examples of CFMLPropertyManager


Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

  }
 
  private ArrayList getTemplates(){
    ArrayList templates = new ArrayList();
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
   
    Path snipBase = new Path(propertyManager.defaultSnippetsPath());
    File file = snipBase.toFile();
    logger.debug("Getting snippets from " + file.getAbsolutePath());
   
   
    //Now we iterate over the items I guess
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    int startpos = sel.getOffset()+1;

    if ((e.stateMask & SWT.MOD1) != 0) {

      CFMLPropertyManager propertyManager = new CFMLPropertyManager();
      String dict = propertyManager.getCurrentDictionary(((IFileEditorInput) editor.getEditorInput()).getFile().getProject());
      CFMLParser fCfmlParser = CFMLPlugin.newCFMLParser(dict);
      ICFDocument cfd = (ICFDocument) this.fViewer.getDocument();
      CFMLSource cfmlSource = fCfmlParser.addCFMLSource(cfd.getCFDocument().getFilename(),cfd.get());
      ParserTag tag = cfmlSource.getEnclosingTag(startpos);
      int start = 0;
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

            public void run()
            {
                ISelection selection = viewer.getSelection();
                ComponentNode obj = (ComponentNode) ((IStructuredSelection) selection).getFirstElement();
                //showMessage(obj.getDetails());
                CFMLPropertyManager propMan = new CFMLPropertyManager();

                try
                {
                    IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
                    BrowserView browser = (BrowserView) page.showView(BrowserView.ID_BROWSER);
                    String rootURL = propMan.defaultProjectURL();

                    URL projURL = new URL(rootURL);

                    //todo
                    //browser.setUrl("http://" + projURL.getHost() + "/CFIDE/componentutils/cfcexplorer.cfc?METHOD=getcfcinhtml&NAME=" + obj.getPackageName());
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    // super.initializeDefaultPluginPreferences();
    CFMLPreferenceManager preferenceManager = new CFMLPreferenceManager();
    preferenceManager.initializeDefaultValues();

    try {
      CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println(e);
    }
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

  public static IWorkspace getWorkspace() {
    return ResourcesPlugin.getWorkspace();
  }

  public static CFMLParser newCFMLParser(String dict) {
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    CFMLParser parser = new CFMLParser(propertyManager.getDictionaryDir(), dict);
    return parser;
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

   */
  public SnipTreeView() {
    super();
 
   
    propertyManager = new CFMLPropertyManager();
    // By default we want to use cfeclipse style snippets
    snippetType = CFECLIPSE_SNIP_TYPE;

    // This ensures that we are notified when the properties are saved
    CFMLPlugin.getDefault().getPropertyStore().addPropertyChangeListener(this);
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

   */
  public void propertyChange(PropertyChangeEvent event)
    {

      if (event.getProperty().equals(CFMLPreferenceConstants.P_SNIPPETS_PATH)) {
        CFMLPropertyManager propertyManager = new CFMLPropertyManager();
      snipBase = new Path(propertyManager.defaultSnippetsPath());
        treeViewer.setInput(getRootInput())
       
       
       
      }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

       
    //System.out.println("Dictionaries initialized in " + (System.currentTimeMillis() - time) + " ms");
  }
 
  private static String getInitialDictVersion() {
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    IWorkbench workbench = PlatformUI.getWorkbench();
    if (workbench == null) {
      return "";
    }
    IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
    if (window == null) {
      return "";
    }
    IWorkbenchPage page = window.getActivePage();
    if (page == null) {
      return "";
    }
    IEditorPart part = page.getActiveEditor();
    if (part == null) {
      return "";
    }
    IEditorInput input = part.getEditorInput();
    if (input == null) {
      return "";
    }
    if (input instanceof FileEditorInput) {
      FileEditorInput fInput = (FileEditorInput)input;
      return propertyManager.getCurrentDictionary(fInput.getFile().getProject());
    }
    return "";
  }
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

        if (url != null) {
          URLpath = url;
        }

        else {
          CFMLPropertyManager manager = new CFMLPropertyManager();
          URLpath = manager.projectURL(fileInput.getFile().getProject());
        }

        // Check that the url exists, have set the default to nothing so
        // that if it is blank we can show em an error
View Full Code Here

Examples of org.cfeclipse.cfml.properties.CFMLPropertyManager

    }
    return currentTag;
  }

  public void ExpandTagSelectionDown(IDocument doc, ITextSelection sel) {
    CFMLPropertyManager propertyManager = new CFMLPropertyManager();
    String dict = propertyManager.getCurrentDictionary(((IFileEditorInput) editor.getEditorInput()).getFile().getProject());
    CFMLParser fCfmlParser = CFMLPlugin.newCFMLParser(dict);
    ICFDocument cfd = (ICFDocument) doc;
    CFMLSource cfmlSource = fCfmlParser.addCFMLSource(cfd.getCFDocument().getFilename(), cfd.get());
    int offset = sel.getOffset();
    ParserTag currentTag = getNextTagDown(offset+sel.getLength(), cfmlSource);
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.