Examples of BuildProperties


Examples of org.objectstyle.wolips.variables.BuildProperties

        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

Examples of org.objectstyle.wolips.variables.BuildProperties

        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

Examples of org.objectstyle.wolips.variables.BuildProperties

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

Examples of org.objectstyle.wolips.variables.BuildProperties

            FuzzyXMLElementWithWodElement data;
            String tagName = stackElement.getName();
            boolean isWOTag = WodHtmlUtils.isWOTag(tagName);
            String displayName = null;
            if (isWOTag) {
              BuildProperties buildProperties = (BuildProperties)cache.getProject().getAdapter(BuildProperties.class);
              IWodElement wodElement = WodHtmlUtils.getWodElement(stackElement, buildProperties, true, cache);
              if (wodElement != null) {
                displayName = wodElement.getElementType();
              }
              data = new FuzzyXMLElementWithWodElement(stackElement, wodElement);
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

  @Override
  protected HTMLAssistProcessor createAssistProcessor() {
    try {
      IFile file = ((FileEditorInput) getEditorPart().getEditorInput()).getFile();
      WodParserCache parserCache = WodParserCache.parser(file);
      BuildProperties buildProperties = (BuildProperties)parserCache.getProject().getAdapter(BuildProperties.class);
      return new TemplateAssistProcessor(getEditorPart(), parserCache, buildProperties);
    }
    catch (Exception e) {
      throw new RuntimeException("Failed to create assist processor.", e);
    }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

    return processedHtmlContents;
  }

  @Override
  protected FuzzyXMLDocument _parse(String contents) {
    BuildProperties buildProperties = (BuildProperties)getCache().getProject().getAdapter(BuildProperties.class);
    FuzzyXMLParser parser = new FuzzyXMLParser(buildProperties != null ? buildProperties.isWellFormedTemplateRequired() : false, true);
    parser.addErrorListener(this);
    FuzzyXMLDocument htmlXmlDocument = parser.parse(contents);
    return htmlXmlDocument;
  }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

    }
    roots.add(_projectRootCache);

    ProjectAdapter projectAdapter = this.project != null ? (ProjectAdapter) this.project.getAdapter(ProjectAdapter.class) : null;
    if (projectAdapter != null) {
      BuildProperties buildProperties = projectAdapter.getBuildProperties();
      if (buildProperties != null) {
        String projectFrameworkFolderPath = buildProperties.getProjectFrameworkFolder();
        if (projectFrameworkFolderPath != null) {
          IFolder projectFrameworkFolder = this.project.getFolder(projectFrameworkFolderPath);
          if (projectFrameworkFolder.exists()) {
            roots.add(getCachedFolderRoot(Root.PROJECT_LOCAL_ROOT, "Project Local Frameworks", projectFrameworkFolder.getLocation().toFile(), projectFrameworkFolder.getLocation().toFile()));
          }
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

*/
public abstract class WOLipsPropertyPage extends PropertyPage implements IAdaptable {
  private BuildProperties _buildProperties;

  protected BuildProperties getBuildProperties() {
    BuildProperties buildProperties = _buildProperties;
    if (buildProperties == null) {
      ProjectAdapter projectAdapter = getProjectAdapter();
      if (projectAdapter != null) {
        buildProperties = projectAdapter.getBuildProperties();
        _buildProperties = buildProperties;
View Full Code Here

Examples of org.objectstyle.wolips.variables.BuildProperties

      boolean fullBuild = (kind == IncrementalProjectBuilder.FULL_BUILD || kind == IncrementalProjectBuilder.CLEAN_BUILD || patternsetDeltaVisitor().isFullBuildRequired());
      String oldPrincipalClass = getArg(args, BuilderPlugin.NS_PRINCIPAL_CLASS, "");
      if (oldPrincipalClass.length() == 0) {
        oldPrincipalClass = null;
      }
      BuildProperties buildProperties = project.getBuildProperties();
      String principalClass = buildProperties.getPrincipalClass(true);
      if (principalClass == null && oldPrincipalClass != null) {
        principalClass = oldPrincipalClass;
        buildProperties.setPrincipalClass(principalClass);
      }
     
      if (buildProperties.getWOVersion().isAtLeastVersion(5, 6)) {
        IContainer infoPListContainer = getProject().getFolder(IWoprojectAdapter.FOLDER_NAME);
        createInfoPlist(infoPListContainer);
      }
      else {
        if (_buildVisitor == null) {
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.