Package org.objectstyle.wolips.variables

Examples of org.objectstyle.wolips.variables.BuildProperties


        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null && activeEditorPart == templateEditor) {
          ITextSelection templateSelection = (ITextSelection) templateEditor.getSourceEditor().getSelectionProvider().getSelection();
          int offset = templateSelection.getOffset();
          WodParserCache cache = templateEditor.getSourceEditor().getParserCache();
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          ConvertInlineToWodRefactoring.run(cache, offset, buildProperties, new NullProgressMonitor());
        }
      }
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here


   *         same method on ProjectAdapter
   */
  public IContainer getWorkingDirFolder() throws CoreException {
    IContainer workingDirFolder;
    IProject project = this.getUnderlyingProject();
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    if (buildProperties.getWOVersion().isAtLeastVersion(5, 6) || !mockBundlesEnabled()) {
      workingDirFolder = project;
    } else {
      if (this.isAntBuilderInstalled() || (WOLipsNatureUtils.getNature(project) instanceof AntApplicationNature)) {
        workingDirFolder = this.getUnderlyingProject().getFolder(IBuildAdapter.FILE_NAME_DIST);
      } else {
View Full Code Here

  }

  public IPath getWOJavaArchive() throws CoreException {
    IPath path = null;
    IProject project = this.getUnderlyingProject();
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    if (buildProperties.getWOVersion().isAtLeastVersion(5, 6) || !mockBundlesEnabled()) {
      path = this.getUnderlyingProject().getLocation();
    } else {
      IResource resource = null;
      String projectName = project.getName();
      // String projectNameLC = projectName.toLowerCase();
View Full Code Here

  protected boolean isHTML() {
    return true;
  }

  protected FuzzyXMLParser createParser(IProject project) {
    BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
    FuzzyXMLParser parser = new FuzzyXMLParser(buildProperties != null ? buildProperties.isWellFormedTemplateRequired() : false, isHTML());
    return parser;
  }
View Full Code Here

      IWodElement wodElement = null;
      if (woTag) {
        className = className + " wo";
        try {
          BuildProperties buildProperties = (BuildProperties)_editor.getParserCache().getProject().getAdapter(BuildProperties.class);
          wodElement = WodHtmlUtils.getWodElement(element, buildProperties, true, cache);
        }
        catch (Throwable t) {
          // IGNORE
          t.printStackTrace();
View Full Code Here

      FuzzyXMLElement element = (FuzzyXMLElement) node;
      String tagName = element.getName();
      if (WodHtmlUtils.isWOTag(tagName)) {
        try {
          WodParserCache cache = _caches.peek();
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          IWodElement wodElement = WodHtmlUtils.getWodElement(element, buildProperties, true, cache);
          if (wodElement == null) {
            return true;
          }
View Full Code Here

            WOLipsNatureUtils.setNatureForProject(WOLipsNatureUtils.ANT_APPLICATION_ID, useTargetBuilder, getProject(), new NullProgressMonitor());
          }
        }
        ProjectAdapter project = getProjectAdapter();
        if (project != null) {
          BuildProperties buildProperties = getBuildProperties();
          buildProperties.setPrincipalClass(_principalClassText.getText());
          buildProperties.setEOAdaptorClassName(_eoAdaptorClassText.getText());
          String projectFrameworkFolderText = _projectFrameworkFolderText.getText();
          if (projectFrameworkFolderText.length() == 0) {
            buildProperties.setProjectFrameworkFolder(null);
          } else {
            buildProperties.setProjectFrameworkFolder(projectFrameworkFolderText);
          }
          buildProperties.setFramework(_bundleTypeFrameworkButton.getSelection());
          buildProperties.setWellFormedTemplateRequired(_wellFormedRequiredButton.getSelection());
          buildProperties.setInlineBindingPrefix(_inlineBindingsPrefixText.getText());
          buildProperties.setInlineBindingSuffix(_inlineBindingsSuffixText.getText());
          buildProperties.save();
        }
      } else {
        WOLipsNatureUtils.removeNaturesFromProject(getProject(), new NullProgressMonitor());
      }
    } catch (Exception up) {
View Full Code Here

    Composite customInfoPListGroup = _createGroupWithLabel(parent, "Custom Info.plist");
    customInfoPListGroup.setLayout(new GridLayout(2, false));

    _customInfoPListText = _addTextArea(customInfoPListGroup, null);
    if (project != null) {
      BuildProperties buildProperties = getBuildProperties();
      if (buildProperties != null) {
        _customInfoPListText.setText(buildProperties.getCustomInfoPListContent(true));
      }
    }
  }
View Full Code Here

  public boolean performOk() {
    // store the value in the owner text field
    try {
      ProjectAdapter projectAdapter = getProjectAdapter();
      if (projectAdapter != null) {
        BuildProperties buildProperties = getBuildProperties();
        buildProperties.setCustomInfoPListContent(_customInfoPListText.getText());
        buildProperties.setServletDeployment(_servletDeploymentCheck.getSelection());
        buildProperties.setWebXML(_generateWebXMLCheck.getSelection());
        buildProperties.setWebXML_CustomContent(_customWebXMLText.getText());

        ProjectFrameworkAdapter projectFrameworkAdapter = getProjectFrameworkAdapter();
        if (buildProperties.isServletDeployment()) {
          projectFrameworkAdapter.addFrameworkNamed("JavaWOJSPServlet");
        } else {
          projectFrameworkAdapter.removeFrameworkNamed("JavaWOJSPServlet");
        }

        for (Root root : _embedButtons.keySet()) {
          Button embedButton = _embedButtons.get(root);
          boolean embed = buildProperties.isServletDeployment() || (embedButton.isEnabled() && embedButton.getSelection());
          buildProperties.setEmbed(root, embed);
        }

        buildProperties.setJavaClient(_javaClientButton.getSelection());
        buildProperties.setJavaWebStart(_javaClientButton.getSelection() && _javaWebStartButton.getSelection());
        buildProperties.save();
      }
    } catch (Exception up) {
      UIPlugin.getDefault().log(up);
      return false;
    }
View Full Code Here

    }
    if (project != null) {
      String templatesFolderName = "Templates";
      ProjectAdapter projectAdapter = (ProjectAdapter) project.getProject().getAdapter(ProjectAdapter.class);
      if (projectAdapter != null) {
        BuildProperties buildProperties = projectAdapter.getBuildProperties();
        if (buildProperties != null) {
          templatesFolderName = buildProperties.get("projectTemplatesFolder", templatesFolderName);
        }
      }
      IFolder projectTemplatesFolder = project.getFolder(templatesFolderName).getFolder(baseFolderName);
      if (projectTemplatesFolder.exists()) {
        templateBaseFolders.add(projectTemplatesFolder.getLocation().toFile());
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.variables.BuildProperties

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.