<commit_before>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jme3.gde.blender;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;

@ActionID(
    category = "jMonkeyEngine",
id = "com.jme3.gde.blender.OpenBlender")
@ActionRegistration(
    iconBase = "com/jme3/gde/blender/blender.png",
displayName = "#CTL_OpenInBlender")
@ActionReferences({
    @ActionReference(path = "Menu/Tools", position = 3333),
    @ActionReference(path = "Toolbars/File", position = 335),
    @ActionReference(path = "Loaders/application/blender/Actions", position = 9)
})
@Messages("CTL_OpenInBlender=Open in Blender")
public final class OpenInBlender implements ActionListener {

    private static final Logger logger = Logger.getLogger(OpenInBlender.class.getName());
    private final BlenderDataObject context;

    public OpenInBlender(BlenderDataObject context) {
        this.context = context;
    }

    @Override
    public void actionPerformed(ActionEvent ev) {
        if (!BlenderTool.openInBlender(context.getPrimaryFile())) {
            logger.log(Level.INFO, "Could not open file in blender, already running?");
        }
    }
}
<commit_msg>SDK - remove "Open In Blender" from Tools menu (dafuq?)<commit_after>/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jme3.gde.blender;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.awt.ActionRegistration;
import org.openide.util.NbBundle.Messages;

@ActionID(
    category = "jMonkeyEngine",
id = "com.jme3.gde.blender.OpenBlender")
@ActionRegistration(
    iconBase = "com/jme3/gde/blender/blender.png",
displayName = "#CTL_OpenInBlender")
@ActionReferences({
    @ActionReference(path = "Toolbars/File", position = 335),
    @ActionReference(path = "Loaders/application/blender/Actions", position = 9)
})
@Messages("CTL_OpenInBlender=Open in Blender")
public final class OpenInBlender implements ActionListener {

    private static final Logger logger = Logger.getLogger(OpenInBlender.class.getName());
    private final BlenderDataObject context;

    public OpenInBlender(BlenderDataObject context) {
        this.context = context;
    }

    @Override
    public void actionPerformed(ActionEvent ev) {
        if (!BlenderTool.openInBlender(context.getPrimaryFile())) {
            logger.log(Level.INFO, "Could not open file in blender, already running?");
        }
    }
}

{'fraction_non_alphanumeric': 0.11336032388663968, 'fraction_numerical': 0.006072874493927126, 'mean_word_length': 4.470479704797048, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4891015', 'n_tokens_mistral': 921, 'n_tokens_neox': 896, 'n_words': 200}