Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.ide.externaltools
Class ContextUtils

java.lang.Object
  extended by oracle.ide.externaltools.ContextUtils

public final class ContextUtils
extends java.lang.Object

Utilities for processing the context, commonly used by external tools macros.

Since:
11.0

Method Summary
static Locatable getLocatable(Context ctx)
           
static Project getProject(Context ctx)
           
static Element getSelectedElement(Context ctx)
          Get the selected element for the specified context.
static java.net.URL getURL(Context ctx)
           
static boolean isLocalFile(java.net.URL url)
          Returns true if the specified URL is allowable in the various file.* macros in external tools.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isLocalFile

public static boolean isLocalFile(java.net.URL url)
Returns true if the specified URL is allowable in the various file.* macros in external tools. By default, only file: protocols are allowed.

Parameters:
url - a url to test. Must not be null.
Returns:
true if the specified URL is a local file.

getSelectedElement

public static Element getSelectedElement(Context ctx)
Get the selected element for the specified context. The first item in the selection (if any) takes precedence over the context element itself.

Returns:
an element, or null if no selection or element.

getLocatable

public static Locatable getLocatable(Context ctx)

getURL

public static java.net.URL getURL(Context ctx)

getProject

public static Project getProject(Context ctx)

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.