blob: edfe3391b6dcfd5e6badd85cd683d530163aa698 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2013 Sierra Wireless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Sierra Wireless - initial API and implementation
*******************************************************************************/
package org.eclipse.ldt.debug.core.internal;
/**
* Constant for attribute of Lua launch configuration
*/
public interface LuaDebugConstants {
/**
* Extension point constants
*/
String ATTACH_LAUNCH_CONFIGURATION_ID = "org.eclipse.ldt.debug.core.luaattachdebug"; //$NON-NLS-1$
String LOCAL_LAUNCH_CONFIGURATION_ID = "org.eclipse.ldt.debug.core.lualocaldebug"; //$NON-NLS-1$
/**
* Launch Configuration constant
*/
String ATTR_LUA_SOURCE_MAPPING_TYPE = "source_mapping_type"; //$NON-NLS-1$
/**
* Source mapping type
*/
String LOCAL_MAPPING_TYPE = "local"; //$NON-NLS-1$
String MODULE_MAPPING_TYPE = "module"; //$NON-NLS-1$
String REPLACE_PATH_MAPPING_TYPE = "replace_path"; //$NON-NLS-1$
/**
* Type name constants
*/
String TYPE_TABLE = "table"; //$NON-NLS-1$
String TYPE_SEQUENCE = "sequence"; //$NON-NLS-1$
String TYPE_MULTIVAL = "multival"; //$NON-NLS-1$
String TYPE_LUAFUNC = "function (Lua)"; //$NON-NLS-1$
String TYPE_SPECIAL = "special"; //$NON-NLS-1$
/**
* Plug-in path
*/
String SCRIPT_PATH = "script"; //$NON-NLS-1$
String DEBUGGER_PATH = SCRIPT_PATH + "/external"; //$NON-NLS-1$
String DEBUGGER_FILE_NAME = "debugger.lua"; //$NON-NLS-1$
/**
* Environment variables
*/
String LUA_PATH = "LUA_PATH"; //$NON-NLS-1$
String LUA_CPATH = "LUA_CPATH"; //$NON-NLS-1$
String LUA_LDLIBRARYPATH = "LD_LIBRARY_PATH"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_IDE_KEY = "DBGP_IDEKEY"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_IDE_PORT = "DBGP_IDEPORT"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_IDE_HOST = "DBGP_IDEHOST"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_PLATFORM = "DBGP_PLATFORM"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_WORKINGDIR = "DBGP_WORKINGDIR"; //$NON-NLS-1$
String ENV_VAR_KEY_DBGP_TRANSPORT = "DBGP_TRANSPORT"; //$NON-NLS-1$
String ENV_VAR_DEBUGGING = "DEBUG_MODE"; //$NON-NLS-1$
/**
* Path constant
*/
String WILDCARD_PATTERN = "?"; //$NON-NLS-1$
String LUA_PATTERN = WILDCARD_PATTERN + ".lua;"; //$NON-NLS-1$
String LUAC_PATTERN = WILDCARD_PATTERN + ".luac;"; //$NON-NLS-1$
String LUA_INIT_PATTERN = "init.lua;"; //$NON-NLS-1$
String LUAC_INIT_PATTERN = "init.luac;"; //$NON-NLS-1$
/**
* Default working directory pattern (for Lua Application Launch configuration) <br>
* {0} => projectname
*/
String LAUNCH_CONFIGURATION_WORKING_DIRECTORY = "$'{'workspace_loc:{0}'}'"; //$NON-NLS-1$
}