Package de.innovationgate.wga.model

Examples of de.innovationgate.wga.model.VersionCompliance


            // select new created design in packages explorer, resource navigator & project explorer 
              if(template.getName().equals("empty")){
                  String wgaDistributionName = runtime.getConfiguration().getWgaDistribution();             
                            WGADeployment wgaDeployment = WGADesignerPlugin.getDefault().getWGADeploymentManager().getDeployment(wgaDistributionName);
                            WGADesignConfigurationModel configModel = helper.createModel();   
                            VersionCompliance vc = WGADesignStructureHelper.wgaVersionToVersionCompliance(wgaDeployment.getWGAVersion());
                            if(vc!=null){
                                configModel.setVersionCompliance(vc);
                                configModel.saveChanges();
                            }
             }
View Full Code Here


    try {
      TMLDocumentProvider provider = new TMLDocumentProvider();   
      IFileEditorInput input = new FileEditorInput(file);     
      provider.connect(input);
     
      VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(file);
     
      Iterator<MarkingHandler> it = allHandlers.iterator();
      while (it.hasNext()) {
        MarkingHandler handler = it.next()
        handler.setWGAVersionCompliance(versionCompliance);
View Full Code Here

  }
 
  public void createMarkers(IFile file, IDocument document) throws CoreException
    updateValidators(file);
    try {
      VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(file);
      // clear markers of all validators
      Iterator<TMLTagValidator> validators = _allValidators.values().iterator();
      while (validators.hasNext()) {
        TMLTagValidator validator = validators.next();
        file.deleteMarkers(validator.getMarkerID(), true, IResource.DEPTH_ZERO);
View Full Code Here

            } else if (tmlInfo.isCursorInAttributeValue()) {
               // check if attribute is tmlscript expression
                IFile activeFile = Plugin.getDefault().getActiveFile();
                String tagName = tmlInfo.getTagName();
                if (activeFile != null && tagName != null) {
                    VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(activeFile);
                    if (versionCompliance != null) {
                        TMLTag tag = TMLTagDefinitions.getInstance(versionCompliance).getTagByName(tagName);
                        if (tag != null) {
                            String attributeAtCursor = tmlInfo.getAttributeAtCursor();
                            if (attributeAtCursor != null) {
View Full Code Here

           
            if (prevPartition != null) {
                region = new Region(previousOffset+1, region.getOffset() - previousOffset + region.getLength() - 1);
            }
           
            VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(Plugin.getDefault().getActiveFile());
            TMLScriptRegion tmlScriptRegion = TMLScriptRegion.parse(region, document, offset, versionCompliance);
            System.out.println(tmlScriptRegion.toString());
            return tmlScriptRegion.createProposals().toArray(new ICompletionProposal[0]);
        }
        catch (Exception e) {
View Full Code Here

                referencePath = reference.replace("::", tmpPath);
                referencePath = referencePath.replaceAll(":", "/");
                //referencePath += "." + scriptType;
            } else {
                VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(referer);       
                if (versionCompliance != null && versionCompliance.toWGAVersion() != null && versionCompliance.toWGAVersion().isAtLeast(5, 4)) {
                    if (reference.endsWith("@base")) {                            
                        IPath path = referer.getFullPath();
                        if (path.toString().contains("/overlay/")) {
                            // this is a base reference in an overlay provider - remove @base marker and add overlay root
                            reference = reference.substring(0, reference.lastIndexOf("@"));               
View Full Code Here

      }
    }
    IFolder tmlFolder = getTmlRoot();
   
    if (referer != null) {
        VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(referer);   
        if (versionCompliance != null && versionCompliance.toWGAVersion() != null && versionCompliance.toWGAVersion().isAtLeast(5, 4)) {
            IPath path = referer.getFullPath().makeRelativeTo(getTmlRoot().getFullPath().append(WGADesignStructureHelper.determineMediaKey(referer)));
                if (path.toString().startsWith("overlay/") && !reference.startsWith("::")) {
                    if (reference.toLowerCase().endsWith("@base")) {
                        reference = reference.substring(0, reference.lastIndexOf("@"));       
                    } else  {
View Full Code Here

        referencePath = reference.replace("::", tmpPath);
        referencePath = referencePath.replaceAll(":", "/");
        referencePath += "." + scriptType;
      } else {
          VersionCompliance versionCompliance = WGADesignStructureHelper.getWGAVersionCompliance(referer);       
          if (versionCompliance != null && versionCompliance.toWGAVersion() != null && versionCompliance.toWGAVersion().isAtLeast(5, 4)) {
              IPath path = referer.getFullPath();
                    if (path.toString().contains("/overlay/")) {
                        if (reference.endsWith("@base")) {                                                
                        reference = reference.substring(0, reference.lastIndexOf("@"));                   
                    } else {
View Full Code Here

        public boolean visit(IResource resource) throws CoreException {
          if (resource.equals(fFilesFolder)) {
            return true;
          } else if (resource instanceof IFolder) {
            fFileContainers.add((IFolder) resource);
            VersionCompliance compliance = WGADesignStructureHelper.getWGAVersionCompliance(getSyncInfo());
            if (compliance != null && compliance.toWGAVersion() != null && compliance.toWGAVersion().isAtLeast(5,4)) {
                return true;
            } else {
                return false;
            }
          } else {
View Full Code Here

      return getWGAVersionCompliance(resource, false) != null;
  }

  private static VersionCompliance getWGAVersionCompliance(IResource resource, boolean fallbackToDefault) { 
    IFile wgaConfFile = WGADesignStructureHelper.determineSyncInfo(resource);   
    VersionCompliance wgaVersionCompliance = null;
    if (wgaConfFile != null) {
      WGADesignConfigurationModel currentWGAConf;
      try {
        currentWGAConf = new WGADesignConfigurationModelWrapper(wgaConfFile);
        wgaVersionCompliance = currentWGAConf.getVersionCompliance();
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.model.VersionCompliance

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.