Package de.innovationgate.eclipse.editors.helpers

Examples of de.innovationgate.eclipse.editors.helpers.HeaderHandler


    _projectBuilderManager = new ProjectBuilderManager();
    ResourcesPlugin.getWorkspace().addResourceChangeListener(_projectBuilderManager, IResourceChangeEvent.POST_CHANGE|IResourceChangeEvent.PRE_BUILD);
    _projectBuilderManager.performPluginStartup();     
    IPath stateLocation = getStateLocation();   

        _headerFileMap.put(HEADER_TML_MODUL, new HeaderHandler(HEADER_TML_MODUL, stateLocation.append("defaultTmlModulLicense.txt").toFile(), "TML-Modules"));
        _headerFileMap.put(HEADER_CSS_MODUL, new HeaderHandler(HEADER_CSS_MODUL, stateLocation.append("defaultCssModulLicense.txt").toFile(), "CSS-Modules"));
        _headerFileMap.put(HEADER_JS_MODUL, new HeaderHandler(HEADER_JS_MODUL, stateLocation.append("defaultJsModulLicense.txt").toFile(), "JS-Modules"));
        _headerFileMap.put(HEADER_TMLSCRIPT_MODUL, new HeaderHandler(HEADER_TMLSCRIPT_MODUL, stateLocation.append("defaultTmlScriptModulLicense.txt").toFile(), "TMLScripts-Modules"));
        _headerFileMap.put(HEADER_VBS_MODUL, new HeaderHandler(HEADER_VBS_MODUL, stateLocation.append("defaultVbsModulLicense.txt").toFile(), "VBS-Modules"));
        _headerFileMap.put(HEADER_XML_MODUL, new HeaderHandler(HEADER_XML_MODUL, stateLocation.append("defaultXmlModulLicense.txt").toFile(), "XML-Modules"));     

  }
View Full Code Here


        if (file != null) {
            try {
                properties.load(new FileInputStream(file));
                for (String key : _headerFileMap.keySet()) {
                    HeaderHandler handler = _headerFileMap.get(key);
                    String headerText = properties.getProperty(handler.getName());
                    handler.setSpecificHeader(_selectedProject, headerText);
                    _headerTabTextMap.get(key).setText(headerText);
                }

            }
            catch (FileNotFoundException e) {
View Full Code Here

                overwrite = MessageDialog.openQuestion(getShell(), "File already exists", "The choosen file already exists. Overwrite?");
            }
            boolean empty = true;
            if (overwrite) {
                for (String key : _headerFileMap.keySet()) {
                    HeaderHandler handler = _headerFileMap.get(key);
                    String headerText = handler.getSpecificHeader(_selectedProject);
                    properties.put(key, headerText);        
                }               
                    
                {
                try {                                   
View Full Code Here

TOP

Related Classes of de.innovationgate.eclipse.editors.helpers.HeaderHandler

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.