Package org.springframework.ide.eclipse.webflow.core.model

Examples of org.springframework.ide.eclipse.webflow.core.model.IWebflowConfig


        for (Object p : StringUtils.commaDelimitedListToSet(parent)) {
          IState state = null;

          IWebflowProject project = Activator.getModel().getProject(
              getRootElement().getElementResource().getProject());
          IWebflowConfig parentConfig = project.getConfig((String) p);
          try {
            model = StructuredModelManager.getModelManager().getExistingModelForRead(
                parentConfig.getElementResource());
            if (model == null) {
              model = StructuredModelManager.getModelManager().getModelForRead(
                  (IFile) parentConfig.getElementResource());
            }
            if (model != null) {
              IDOMDocument document = ((DOMModelImpl) model).getDocument();
              IWebflowState parentState = new WebflowState(parentConfig);
              parentState.init((IDOMNode) document.getDocumentElement(), null);
View Full Code Here


  }

  private void acceptSearchMatch(IContentAssistProposalRecorder recorder, String flowId,
      IFile file, String prefix) {
    if (file != null && file.exists()) {
      IWebflowConfig config = Activator.getModel().getProject(file.getProject())
          .getConfig(flowId);
      String fileName = "";
      if (config != null) {
        fileName = config.getResource().getProjectRelativePath().toString();
      }
      String displayText = flowId + " - " + fileName;
 
      Image image = WebflowUIImages.getImage(WebflowUIImages.IMG_OBJS_WEBFLOW);
 
View Full Code Here

    }

    IFile file = context.getFile();
    BeanReferenceSearchRequestor requestor = new BeanReferenceSearchRequestor(recorder);
    if (file != null && file.exists()) {
    IWebflowConfig config = Activator.getModel().getProject(file.getProject()).getConfig(file);
      if (config != null) {
        Set<IBean> beans = WebflowModelUtils.getBeans(config);
        for (IBean bean : beans) {
          requestor.acceptSearchMatch(bean, file, matchString);
        }
View Full Code Here

  protected final IType calculateType(IContentAssistContext context) {
    if (BeansEditorUtils.hasAttribute(context.getNode(), "bean")) {
      String className = null;
      IFile file = context.getFile();
      if (file != null && file.exists()) {
        IWebflowConfig config = Activator.getModel().getProject(file.getProject())
            .getConfig(file);
 
        if (config != null) {
          Set<IBean> beans = WebflowModelUtils.getBeans(config);
          for (IBean bean : beans) {
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.core.model.IWebflowConfig

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.