IWorkspaceEventContext Interface

com.bea.ide.workspace
IWorkspaceEventContext Interface

public interface IWorkspaceEventContext

    extends IPopupContext

Represents the current application tree selection. May be used during a popup or drag and drop event.


All Superinterfaces
IPopupContext

Field Summary

public static final String
KEY
Cookie key used by Popup actions to locate this object.
 

Method Summary

public boolean
containsOnlyFilesOrDirectories()
Returns true if *all* of the URIs for items or containers have "file" for the scheme.
public String[]
getContainerNames()
Returns the names of all selected containers
public URI[]
getContainers()
Returns the URIs of all selected containers
public String[]
getDirectoryNames()
Returns the names of all file-based nodes that are directories
public URI[]
getDirectoryURIs()
Returns the URIs of all file-based nodes that are directories, as file-based uris (e.g.
public String[]
getItemNames()
Returns the names of all selected items that are not containers, e.g. files
public URI[]
getItems()
Returns the URIs of all selected items that are not containers, e.g. files
public String[]
getNames()
Returns the names of all selected nodes
public URI[]
getURIs()
Returns the URIs of all selected nodes
public URI
getVirtualURIForItem(int i)
Returns the URI of the virtual node that is the parent of this uri, or null if there is no virtual parent
 
Methods from interface com.bea.ide.actions.IPopupContext
getComponent, getPoint
   

Field Detail

KEY

public static final String KEY
Cookie key used by Popup actions to locate this object.

 

Method Detail

containsOnlyFilesOrDirectories() Method

public boolean containsOnlyFilesOrDirectories()
Returns true if *all* of the URIs for items or containers have "file" for the scheme.


getContainerNames() Method

public String[] getContainerNames()
Returns the names of all selected containers


getContainers() Method

public URI[] getContainers()
Returns the URIs of all selected containers


getDirectoryNames() Method

public String[] getDirectoryNames()
Returns the names of all file-based nodes that are directories


getDirectoryURIs() Method

public URI[] getDirectoryURIs()
Returns the URIs of all file-based nodes that are directories, as file-based uris (e.g. Project directories change from "project:/c:/foo" to "file:/c/foo")


getItemNames() Method

public String[] getItemNames()
Returns the names of all selected items that are not containers, e.g. files


getItems() Method

public URI[] getItems()
Returns the URIs of all selected items that are not containers, e.g. files


getNames() Method

public String[] getNames()
Returns the names of all selected nodes


getURIs() Method

public URI[] getURIs()
Returns the URIs of all selected nodes


getVirtualURIForItem(int) Method

public URI getVirtualURIForItem(int i)
Returns the URI of the virtual node that is the parent of this uri, or null if there is no virtual parent