Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Some of those information should be able from a Plugin through the <code>org.eclipse.core.runtime.Platform</code> class, as shown by the <a href="http://www.enerjy.com/explorer/projects/eclipse/org/eclipse/debug/internal/core/SystemVariableResolver.java.html" rel="nofollow noreferrer"><code>org.eclipse.debug.internal.core.SystemVariableResolver</code> source code</a>:</p> <pre><code>public String resolveValue(IDynamicVariable variable, String argument) throws CoreException { if ("ARCH".equals(argument)) { //$NON-NLS-1$ return Platform.getOSArch(); } else if ("ECLIPSE_HOME".equals(argument)) { //$NON-NLS-1$ URL installURL = Platform.getInstallLocation().getURL(); IPath ppath = new Path(installURL.getFile()).removeTrailingSeparator(); return getCorrectPath(ppath.toOSString()); } else if ("NL".equals(argument)) { //$NON-NLS-1$ return Platform.getNL(); } else if ("OS".equals(argument)) { //$NON-NLS-1$ return Platform.getOS(); } else if ("WS".equals(argument)) { //$NON-NLS-1$ return Platform.getWS(); } return null; } </code></pre> <p><code>Platform.getCommandLineArgs()</code> should complete the display for the eclipse session (not for your program though).</p> <hr> <p>For a RCP program, see <a href="http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg35628.html" rel="nofollow noreferrer">this thread</a></p> <blockquote> <p>Using the <code>Application start(IApplicationContext context)</code> method:</p> </blockquote> <pre><code>String[] args = (String[]) context.getArguments().get(IApplicationContext.APPLICATION_ARGS); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload