blob: 9f9475e2e121961a9e2ac8fe5f6cc7fd5e338b58 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2016 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.jsdt.js.node.internal;
import java.util.ArrayList;
import java.util.List;
/**
* @author "Adalberto Lopez Venegas (adalbert)"
*/
public final class NodeConstants {
public static final String CONSOLE_ENCODING = "org.eclipse.debug.ui.ATTR_CONSOLE_ENCODING"; //$NON-NLS-1$
public static final String CHARSET_UTF_8 = "UTF-8"; //$NON-NLS-1$
public static final String ID_NODEJS_PROCESS_TYPE = "Node.js"; //$NON-NLS-1$
// Node.js constants and launch parameters
public static final String LAUNCH_CONFIGURATION_TYPE_ID = "org.eclipse.wst.jsdt.js.node.NodeLaunchConfigurationType"; //$NON-NLS-1$
public static final String EMPTY = ""; //$NON-NLS-1$
public static final String ATTR_WORKING_DIRECTORY = "attr_working_directory"; //$NON-NLS-1$
public static final String ATTR_APP_PATH = "attr_app_path"; //$NON-NLS-1$
public static final String ATTR_NODE_ARGUMENTS = "attr_node_arguments"; //$NON-NLS-1$
public static final String ATTR_APP_ARGUMENTS = "attr_app_arguments"; //$NON-NLS-1$
public static final String ATTR_APP_PROJECT = "attr_app_project"; //$NON-NLS-1$
public static final String ATTR_APP_PROJECT_RELATIVE_PATH = "attr_app_project_relative_path"; //$NON-NLS-1$
public static final String ATTR_HOST_FIELD = "attr_host_field"; //$NON-NLS-1$
public static final String ATTR_PORT_FIELD = "attr_port_field"; //$NON-NLS-1$
public static final String ATTR_ADD_NETWORK_CONSOLE_FIELD = "attr_add_network_console_field"; //$NON-NLS-1$
public static final String ATTR_BREAK_FIELD = "attr_break_field"; //$NON-NLS-1$
public static final String PROCESS_MESSAGE = "Node.js process"; //$NON-NLS-1$
public static final String PACKAGE_JSON = "package.json"; //$NON-NLS-1$
public static final String DEFAULT_HOST = "localhost"; //$NON-NLS-1$
public static final int DEFAULT_PORT = 5858;
// Chromium V8 constants and launch parameters
public static final String CHROMIUM_LAUNCH_CONFIGURATION_TYPE_ID = "org.eclipse.wst.jsdt.chromium.debug.ui.LaunchType$StandaloneV8"; //$NON-NLS-1$
public static final String CHROMIUM_DEBUG_HOST = "debug_host"; //$NON-NLS-1$
public static final String CHROMIUM_DEBUG_PORT = "debug_port"; //$NON-NLS-1$
public static final String ADD_NETWORK_CONSOLE = "add_network_console"; //$NON-NLS-1$
public static final String BREAKPOINT_SYNC_DIRECTION = "breakpoint_startup_sync_direction"; //$NON-NLS-1$
// By default Node.js debug launch should merge local and remote breakpoints
public static final String MERGE = "MERGE"; //$NON-NLS-1$
public static final String SOURCE_LOOKUP_MODE = "source_lookup_mode"; //$NON-NLS-1$
public static final String WIP_BACKEND_ID = "wip_backend_id"; //$NON-NLS-1$
// By default Node.js debug launch should use exact match detection of workspace resources
public static final String EXACT_MATCH = "EXACT_MATCH"; //$NON-NLS-1$
public static final String CONFIG_PROPERTY = "predefined_source_wrapperd_ids"; //$NON-NLS-1$
// By default source wrappers from {@link HardcodedSourceWrapProvider} must be enabled
@SuppressWarnings("serial")
public static final List<String> PREDEFIENED_WRAPPERS = new ArrayList<String>() {
{
add("org.eclipse.wst.jsdt.chromium.debug.core.model.HardcodedSourceWrapProvider$NodeJsStandardEntry"); //$NON-NLS-1$
add("org.eclipse.wst.jsdt.chromium.debug.core.model.HardcodedSourceWrapProvider$NodeJsWithDefinedEntry"); //$NON-NLS-1$
}
};
// NodeUtil constants
public static final String NODE = "node"; //$NON-NLS-1$
public static final String NODE_WINDOWS = "node.exe"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_CONSTANTS_WHERE_COMMAND = "where"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_CONSTANTS_WHICH_LOCATION_1 = "/usr/bin/which"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_CONSTANTS_WHICH_LOCATION_2 = "/bin/which"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_CONSTANTS_WHICH_LOCATION_3 = "/usr/local/bin/which"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_ENV_VAR = "PATH"; //$NON-NLS-1$
public static final String FIND_NODE_SYSTEM_PATH_CONSTANTS_NODE_EXTRA_LOCATION = "/usr/local/bin"; //$NON-NLS-1$
private NodeConstants() {
}
}