<commit_before>package org.lamport.tla.toolbox.tool.tlc.ui.modelexplorer;

import java.util.HashMap;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.ui.navigator.CommonNavigator;
import org.lamport.tla.toolbox.tool.tlc.handlers.OpenModelHandlerDelegate;
import org.lamport.tla.toolbox.tool.tlc.launch.TLCModelLaunchDelegate;
import org.lamport.tla.toolbox.util.UIHelper;

public class ModelExplorer extends CommonNavigator
{
    public static String VIEW_ID = "toolbox.tool.tlc.ModelView";

    /**
     * Return the initial input for the model explorer (the Launch config Type)
     */
    protected IAdaptable getInitialInput()
    {
        ILaunchConfigurationType launchConfigurationType = DebugPlugin.getDefault().getLaunchManager()
                .getLaunchConfigurationType(TLCModelLaunchDelegate.LAUNCH_ID);
        return launchConfigurationType;
    }

    /**
     * Open a model on double-click
     */
    protected void handleDoubleClick(DoubleClickEvent anEvent)
    {
        super.handleDoubleClick(anEvent);
        // open the model
        UIHelper.runCommand(OpenModelHandlerDelegate.COMMAND_ID, new HashMap());
    }
    
    

}<commit_msg>moved to 3.5, double-click enabled<commit_after>package org.lamport.tla.toolbox.tool.tlc.ui.modelexplorer;

import java.util.HashMap;

import org.eclipse.debug.core.DebugPlugin;
import org.eclipse.debug.core.ILaunchConfigurationType;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.ui.navigator.CommonNavigator;
import org.lamport.tla.toolbox.tool.tlc.handlers.OpenModelHandlerDelegate;
import org.lamport.tla.toolbox.tool.tlc.launch.TLCModelLaunchDelegate;
import org.lamport.tla.toolbox.util.UIHelper;

/**
 * Implementation of the model explorer
 * @author <NAME>
 * @version $Id$
 */
public class ModelExplorer extends CommonNavigator
{
    public static String VIEW_ID = "toolbox.tool.tlc.ModelView";

    /**
     * Return the initial input for the model explorer (the Launch config Type)
     */
    protected Object getInitialInput()
    {
        ILaunchConfigurationType launchConfigurationType = DebugPlugin.getDefault().getLaunchManager()
                .getLaunchConfigurationType(TLCModelLaunchDelegate.LAUNCH_ID);
        return launchConfigurationType;
    }

    /**
     * Open a model on double-click
     */
    protected void handleDoubleClick(DoubleClickEvent anEvent)
    {
        super.handleDoubleClick(anEvent);
        // open the model
        UIHelper.runCommand(OpenModelHandlerDelegate.COMMAND_ID, new HashMap());
    }
}
{'fraction_non_alphanumeric': 0.09309198374584411, 'fraction_numerical': 0.0007388252678241596, 'mean_word_length': 3.8530465949820787, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4945990', 'n_tokens_mistral': 806, 'n_tokens_neox': 795, 'n_words': 145}