Skip to content
Snippets Groups Projects
Select Git revision
  • dev
  • master default protected
  • gitkeep
  • Issue/2353-dropShapeFix
  • Issue/2583-treeBug
  • Hotfix/2562-organizations
  • Issue/2464-invalidateMeta
  • Issue/2484-filterExtracted
  • Issue/2309-docs
  • Issue/2462-removeTraces
  • Hotfix/2459-EncodingPath
  • Hotfix/2452-linkedDeletion
  • Issue/2328-noFailOnLog
  • Issue/1792-newMetadataStructure
  • v2.5.2-Hotfix2365
  • Hotfix/2365-targetClassWorks
  • Issue/2269-niceKpiParser
  • Issue/2295-singleOrganizationFix
  • Issue/1953-owlImports
  • Hotfix/2087-efNet6
  • v2.9.0
  • v2.8.2
  • v2.8.1
  • v2.8.0
  • v2.7.2
  • v2.7.1
  • v2.7.0
  • v2.6.2
  • v2.6.1
  • v2.6.0
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v2.0.0
40 results

CustomUri.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ita_toolbox_license.m 1.29 KiB
    %% Show the license and its location;
    
    % <ITA-Toolbox>
    % This file is part of the ITA-Toolbox. Some rights reserved.
    % You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder.
    % </ITA-Toolbox>
    
    
    fid = fopen([ita_toolbox_path filesep 'license.txt']);
    funcTemplate = fread(fid, 'uint8=>char')';
    disp(funcTemplate(1:end-1))
    fclose(fid);
    fprintf(2,'********************************************************************************\n')
    disp(['*** The license can be found at ' ita_toolbox_path filesep 'license.txt ***' ])
    fprintf(2,'********************************************************************************\n')
    
    %% ask
    if usejava('desktop') %Only if jvm available (non_cluster)
        commandwindow();
        choice = questdlg('Do you agree to the terms of the license agreement? The complete license ("license.txt") can be found in the root directory of the ITA-Toolbox.','License Agreement - ITA-Toolbox:', ...
            'Yes','No','No');
        switch lower(choice)
            case 'yes'
                fprintf(2,'You accepted the ITA-Toolbox license agreement\n');
            case 'no'
                fprintf(2,'You did NOT accept to the ITA-Toolbox license agreement\n');
                error('License Agreement not accepted.')
        end
    end
    
    %% set accepted flag in preferences
    ita_preferences('license',true);