Package org.jboss.ide.eclipse.freemarker.model

Examples of org.jboss.ide.eclipse.freemarker.model.ItemSet


  @Override
  public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,
      int offset) {
    try {
      ItemSet directiveSet = editor.getItemSet();

      Map<String, Class<?>> context = new HashMap<String, Class<?>>();
      ContextValue[] values = ConfigurationManager.getInstance(
          editor.getProject()).getContextValues(editor.getFile(),
          true);
      for (int i = 0; i < values.length; i++) {
        context.put(values[i].name, values[i].objClass);
      }

      Item directive = directiveSet.getSelectedItem(offset);
      if (null != directive) {
        return directive.getCompletionProposals(offset, context);
      } else {
        // we might be starting something
        Item item = editor.getItemSet().getPreviousItem(offset);
View Full Code Here


    if (getEditorInput() instanceof IFileEditorInput) {
      resource = ((IFileEditorInput) getEditorInput()).getFile();
      // } else if (getEditorInput() instanceof JarEntryEditorInput) {
      // resource = null;
    }
    return new ItemSet(getSourceViewer(), regions, resource);
  }
View Full Code Here

    reconcile(regions);
  }

  public void reconcile(List<ITypedRegion> regions) {
    /* re-create the model in the reconciler thread */
    final ItemSet newItemSet = createItemSet(regions);

    Runnable newItemSetTask = new Runnable() {
      @Override
      public void run() {
        Editor.this.itemSet = newItemSet;
View Full Code Here

TOP

Related Classes of org.jboss.ide.eclipse.freemarker.model.ItemSet

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.