Package org.objectstyle.wolips.variables

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


    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

  }

  // 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

  }

  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

  }

  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

      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

  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

        ITextSelection templateSelection = (ITextSelection) getSelectionProvider().getSelection();
        if (templateSelection != null) {
          int offset = templateSelection.getOffset();
          FuzzyXMLElement element = getElementAtOffset(offset, true);
          if (element != null) {
            BuildProperties buildProperties = (BuildProperties)getParserCache().getProject().getAdapter(BuildProperties.class);
            DeleteTagRefactoring.run(element, false, buildProperties, getParserCache(), new NullProgressMonitor());
          }
        }
      }
      catch (Exception e) {
View Full Code Here

        ITextSelection templateSelection = (ITextSelection) getSelectionProvider().getSelection();
        if (templateSelection != null) {
          int offset = templateSelection.getOffset();
          FuzzyXMLElement element = getElementAtOffset(offset, true);
          if (element != null) {
            BuildProperties buildProperties = (BuildProperties)getParserCache().getProject().getAdapter(BuildProperties.class);
            DeleteTagRefactoring.run(element, true, buildProperties, getParserCache(), new NullProgressMonitor());
          }
        }
      }
      catch (Exception e) {
View Full Code Here

public class InlineWodElementHyperlinkProvider implements IHyperlinkProvider {
  public HTMLHyperlinkInfo getHyperlinkInfo(IFile file, FuzzyXMLDocument doc, FuzzyXMLElement element, String attrName, String attrValue, int offset) {
    HTMLHyperlinkInfo hyperlinkInfo = null;
    try {
      if (WodHtmlUtils.isWOTag(element.getName()) && WodHtmlUtils.isInline(element.getName())) {
        BuildProperties buildProperties = (BuildProperties)file.getProject().getAdapter(BuildProperties.class);
        if (attrName == null) {
          WodParserCache cache = WodParserCache.parser(file);
          SimpleWodElement wodElement = new FuzzyXMLWodElement(element, buildProperties);
          if (wodElement.isTypeWithin(new Region(offset, 0))) {
            hyperlinkInfo = new HTMLHyperlinkInfo();
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.