Examples of BuildProperties


Examples of org.objectstyle.wolips.variables.BuildProperties

    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

Examples of org.objectstyle.wolips.variables.BuildProperties

  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

Examples of org.objectstyle.wolips.variables.BuildProperties

    }
    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

Examples of org.objectstyle.wolips.variables.BuildProperties

      } catch (Throwable t) {
        JdtPlugin.getDefault().getPluginLogger().log(t);
      }
    }
    else {
      BuildProperties buildProperties = (BuildProperties)this.project.getAdapter(BuildProperties.class);
      if (buildProperties != null) {
        version = buildProperties.getVersion();
      }
      if (version == null) {
        version = super.getVersion();
      }
    }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

    ProjectAdapter projectAdapter = (ProjectAdapter) this.project.getAdapter(ProjectAdapter.class);
    Map<String, Object> propertyList = null;
    if (projectAdapter != null) {
      try {
        File infoPlist;
        BuildProperties buildProperties = (BuildProperties)project.getAdapter(BuildProperties.class);
        if (buildProperties.getWOVersion().isAtLeastVersion(5, 6)) {
          infoPlist = this.project.getLocation().append("Info.plist").toFile();
        }
        else {
          infoPlist = projectAdapter.getWOJavaArchive().removeLastSegments(1).append("Info.plist").toFile();
        }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  }

  // MS: This should probably move up to a higher level utility method
  protected static boolean getBooleanProperty(String propertiesKey, String preferencesKey, IProject project, IPreferenceStore preferenceStore) {
    boolean value;
    BuildProperties buildProperties = (BuildProperties) project.getAdapter(BuildProperties.class);
    String buildPropertiesValueStr = buildProperties.get(propertiesKey);
    if (buildPropertiesValueStr != null) {
      value = "true".equalsIgnoreCase(buildPropertiesValueStr);
    }
    else {
      String globalPropertiesValueStr = VariablesPlugin.getDefault().getGlobalVariables().getString(propertiesKey + "." + project.getName());
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  }

  public String _changeValue(String oldValue, String value) throws CoreException, InvocationTargetException, InterruptedException {
    String newValue = value;
    if (!ComparisonUtils.equals(oldValue, newValue, true)) {
      BuildProperties buildProperties = (BuildProperties)_cache.getProject().getAdapter(BuildProperties.class);
      newValue = RefactoringWodBinding.toBindingValue(_wodElement.isInline(), buildProperties.getInlineBindingPrefix(), buildProperties.getInlineBindingSuffix(), newValue);
      ChangeBindingValueRefactoring.run(newValue, _wodElement, _wodBinding, _cache, new NullProgressMonitor());
      _wodBinding.setValue(newValue);
    }
    return newValue;
  }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  }

  public FuzzyXMLDocument getHtmlXmlDocument(boolean refreshModel) throws Exception {
    FuzzyXMLDocument doc;
    if (refreshModel || isDirty()) {
      BuildProperties buildProperties = (BuildProperties)getParserCache().getProject().getAdapter(BuildProperties.class);
      FuzzyXMLParser parser = new FuzzyXMLParser(buildProperties != null ? buildProperties.isWellFormedTemplateRequired() : false, true);
      doc = parser.parse(getHTMLSource());
      getParserCache().getHtmlEntry().setModel(doc);
      setCacheOutOfSync(false);
    }
    else {
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

      if (realSelection instanceof ITextSelection) {
        ITextSelection textSelection = (ITextSelection) realSelection;
        FuzzyXMLDocument document = getHtmlXmlDocument(refreshModel);
        if (document != null) {
          FuzzyXMLElement element = document.getElementByOffset(textSelection.getOffset());
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          wodElement = WodHtmlUtils.getWodElement(element, buildProperties, resolveWodElement, cache);
        }
      }
      else if (realSelection instanceof IStructuredSelection) {
        IStructuredSelection structuredSelection = (IStructuredSelection) realSelection;
        Object obj = structuredSelection.getFirstElement();
        if (obj instanceof FuzzyXMLElement) {
          FuzzyXMLElement element = (FuzzyXMLElement) obj;
          BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
          wodElement = WodHtmlUtils.getWodElement(element, buildProperties, resolveWodElement, cache);
        }
      }
    }
    return wodElement;
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  public IWodElement getWodElementAtPoint(Point point, boolean resolveWodElement, boolean refreshModel) throws Exception {
    IWodElement wodElement = null;
    FuzzyXMLElement element = getElementAtPoint(point, refreshModel);
    if (WodHtmlUtils.isWOTag(element)) {
      WodParserCache cache = getParserCache();
      BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
      wodElement = WodHtmlUtils.getWodElement(element, buildProperties, resolveWodElement, cache);
    }
    return wodElement;
  }
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.