[Esbox-commits] r839 - trunk/common/org.maemo.esbox.core/src/org/maemo/esbox/core/env

eswartz at garage.maemo.org eswartz at garage.maemo.org
Tue Oct 7 22:51:34 EEST 2008


Author: eswartz
Date: 2008-10-07 22:51:33 +0300 (Tue, 07 Oct 2008)
New Revision: 839

Removed:
   trunk/common/org.maemo.esbox.core/src/org/maemo/esbox/core/env/ESboxCommonVariables.java
Log:
Remove dead class.

Deleted: trunk/common/org.maemo.esbox.core/src/org/maemo/esbox/core/env/ESboxCommonVariables.java
===================================================================
--- trunk/common/org.maemo.esbox.core/src/org/maemo/esbox/core/env/ESboxCommonVariables.java	2008-10-07 19:33:58 UTC (rev 838)
+++ trunk/common/org.maemo.esbox.core/src/org/maemo/esbox/core/env/ESboxCommonVariables.java	2008-10-07 19:51:33 UTC (rev 839)
@@ -1,58 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2008 Nokia Corporation
- * 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:
- *    Ed Swartz (Nokia) - initial API and implementation
- *******************************************************************************/
-
-package org.maemo.esbox.core.env;
-
-import org.maemo.esbox.core.HostUtils;
-
-/**
- * This defines commonly used and referenced global variables that are passed
- * to launched processes.
- * @author eswartz
- *
- */
-public class ESboxCommonVariables {
-
-	public static final String XSERVER_PATH = "HOST$XSERVER_PATH";
-	public static final String DISPLAY = "HOST$DISPLAY";
-	public static final String DISPLAY_DEFAULT_VALUE = ":2";
-
-	/**
-	 * Iniitialize by adding missing variables
-	 * @param envBlock
-	 */
-	static void initialize(IEnvironmentModifierBlock envBlock) {
-		initVariable(envBlock, ESboxCommonVariables.DISPLAY, ESboxCommonVariables.DISPLAY_DEFAULT_VALUE);
-		// XXX: need a way to know the IP of the host from a remote machine
-		initVariable(envBlock, "SSH$DISPLAY", "10.0.2.2:2");
-		initVariable(envBlock, "REMOTE$DISPLAY", ":0");
-
-		initVariable(envBlock, "REMOTE$DBUS_SESSION_BUS_ADDRESS", "unix:path=/tmp/session_bus_socket");
-		initVariable(envBlock, "SSH$DBUS_SESSION_BUS_ADDRESS", "unix:path=/tmp/session_bus_socket");
-
-		if (HostUtils.isWindows()) {
-			initVariable(envBlock, XSERVER_PATH, "c:/cygwin/bin");
-		}
-
-	}
-
-	/**
-	 * Initialize a variable if it is not defined already
-	 * @param envBlock
-	 * @param name
-	 * @param value
-	 */
-	private static void initVariable(IEnvironmentModifierBlock envBlock,
-			String name, String value) {
-		if (envBlock.findOperation(name) == null)
-			envBlock.define(name, value);
-	}
-}



More information about the Esbox-commits mailing list