src/main/java/uk/co/chamberlain/netbeans/nsis/netbeans/lexer/NsisFoldManagerFactory.java
/*
* NSIS 4 NetBeans
* Copyright (C) 2016 Stephen Chamberlain
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package uk.co.chamberlain.netbeans.nsis.netbeans.lexer;
import java.util.logging.Logger;
import org.netbeans.api.editor.mimelookup.MimeRegistration;
import org.netbeans.spi.editor.fold.FoldManager;
import org.netbeans.spi.editor.fold.FoldManagerFactory;
@MimeRegistration(mimeType = "text/x-nsi", service = FoldManagerFactory.class, position = Integer.MAX_VALUE)
public class NsisFoldManagerFactory implements FoldManagerFactory {
private static final Logger LOGGER = Logger.getLogger(NsisFoldManagerFactory.class.getName());
@Override
public FoldManager createFoldManager() {
LOGGER.info("Instantiating NsisFoldManager");
return new NsisFoldManager();
}
}