Mercurial > projects > dwt-linux
comparison dwt/program/Program.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | 5a30aa9820f3 |
children | 602a4fd8538f |
comparison
equal
deleted
inserted
replaced
257:cc1d3de0e80b | 259:c0d810de7093 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2007 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
172 | 172 |
173 /** | 173 /** |
174 * Instances of this class represent programs and | 174 * Instances of this class represent programs and |
175 * their associated file extensions in the operating | 175 * their associated file extensions in the operating |
176 * system. | 176 * system. |
177 * | |
178 * @see <a href="http://www.eclipse.org/swt/snippets/#program">Program snippets</a> | |
179 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
177 */ | 180 */ |
178 public final class Program { | 181 public final class Program { |
179 String name; | 182 String name; |
180 String command; | 183 String command; |
181 String iconPath; | 184 String iconPath; |
831 } | 834 } |
832 return programList; | 835 return programList; |
833 } | 836 } |
834 | 837 |
835 /** | 838 /** |
836 * Launches the executable associated with the file in | 839 * Launches the operating system executable associated with the file or |
837 * the operating system. If the file is an executable, | 840 * URL (http:// or https://). If the file is an executable then the |
838 * then the executable is launched. Note that a <code>Display</code> | 841 * executable is launched. Note that a <code>Display</code> must already |
839 * must already exist to guarantee that this method returns | 842 * exist to guarantee that this method returns an appropriate result. |
840 * an appropriate result. | 843 * |
841 * | 844 * @param fileName the file or program name or URL (http:// or https://) |
842 * @param fileName the file or program name | |
843 * @return <code>true</code> if the file is launched, otherwise <code>false</code> | 845 * @return <code>true</code> if the file is launched, otherwise <code>false</code> |
844 * | 846 * |
845 * @exception IllegalArgumentException <ul> | 847 * @exception IllegalArgumentException <ul> |
846 * <li>ERROR_NULL_ARGUMENT when fileName is null</li> | 848 * <li>ERROR_NULL_ARGUMENT when fileName is null</li> |
847 * </ul> | 849 * </ul> |