<commit_before>/*
 * Copyright 2005-2010 LAMP/EPFL
 */
// $Id$

package scala.tools.eclipse

import org.eclipse.debug.ui.IDebugUIConstants
import org.eclipse.jdt.ui.JavaUI
import org.eclipse.ui.IPageLayout
import org.eclipse.ui.IPerspectiveFactory
import org.eclipse.ui.console.IConsoleConstants
import org.eclipse.ui.navigator.resources.ProjectExplorer

class PerspectiveFactory extends IPerspectiveFactory {
  def createInitialLayout(layout : IPageLayout) = {
    createFolders(layout)
    addShortcuts(layout)
    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET)
    layout.addActionSet(JavaUI.ID_ACTION_SET)
  }
  private def addShortcuts(layout : IPageLayout) = {
    layout.addNewWizardShortcut(ScalaPlugin.plugin.projectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.netProjectWizId)
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard")
    layout.addNewWizardShortcut(ScalaPlugin.plugin.classWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.traitWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.objectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.packageObjectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.applicationWizId)
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder")
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file")
<commit_msg>Added source folder wizard in Scala perspective menu<commit_after>/*
 * Copyright 2005-2010 LAMP/EPFL
 */
// $Id$

package scala.tools.eclipse

import org.eclipse.debug.ui.IDebugUIConstants
import org.eclipse.jdt.ui.JavaUI
import org.eclipse.ui.IPageLayout
import org.eclipse.ui.IPerspectiveFactory
import org.eclipse.ui.console.IConsoleConstants
import org.eclipse.ui.navigator.resources.ProjectExplorer

class PerspectiveFactory extends IPerspectiveFactory {
  def createInitialLayout(layout : IPageLayout) = {
    createFolders(layout)
    addShortcuts(layout)
    layout.addActionSet(IDebugUIConstants.LAUNCH_ACTION_SET)
    layout.addActionSet(JavaUI.ID_ACTION_SET)
  }
  private def addShortcuts(layout : IPageLayout) = {
    layout.addNewWizardShortcut(ScalaPlugin.plugin.projectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.netProjectWizId)
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewPackageCreationWizard")
    layout.addNewWizardShortcut(ScalaPlugin.plugin.classWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.traitWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.objectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.packageObjectWizId)
    layout.addNewWizardShortcut(ScalaPlugin.plugin.applicationWizId)
    layout.addNewWizardShortcut("org.eclipse.jdt.ui.wizards.NewSourceFolderCreationWizard")
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.folder")
    layout.addNewWizardShortcut("org.eclipse.ui.wizards.new.file")

{'fraction_non_alphanumeric': 0.09232905241235682, 'fraction_numerical': 0.0055536272127733426, 'mean_word_length': 6.012165450121654, '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': '7489012', 'n_tokens_mistral': 969, 'n_tokens_neox': 946, 'n_words': 96}