com.adobe.flexbuilder.codemodel.swc
Interface ISwcManager


public interface ISwcManager

The swc manager can be used to retrieve icons and swfs embedded in swc files.


Method Summary
 Image getIcon(IProject project, java.lang.String namespaceURI, java.lang.String tagName)
          Gets the icon for the given MXML component, or the default icon is none exists
 Image getIcon(IProject project, XMLName tagName)
          Gets the icon for the given MXML component, or the default icon is none exists
 org.eclipse.core.runtime.IPath[] getSwfPathsForSwcsOnLibraryPath(org.eclipse.core.runtime.IPath swcPath)
          Confusingly named function to get a list of paths to the cached, decompressed swfs from swcs found on the passed in library path.
 

Method Detail

getIcon

public Image getIcon(IProject project,
                     java.lang.String namespaceURI,
                     java.lang.String tagName)
Gets the icon for the given MXML component, or the default icon is none exists

Parameters:
project - the project where the mxml component is located
namespaceURI - the namespace of the MXML component
tagName - the unqualified name of the tag
Returns:
an icon, or null if the project does not exist

getIcon

public Image getIcon(IProject project,
                     XMLName tagName)
Gets the icon for the given MXML component, or the default icon is none exists

Parameters:
project - project the project where the mxml component is located
tagName - the TagName that we want to get an icon for
Returns:
an icon, or null if the project does not exist

getSwfPathsForSwcsOnLibraryPath

public org.eclipse.core.runtime.IPath[] getSwfPathsForSwcsOnLibraryPath(org.eclipse.core.runtime.IPath swcPath)
Confusingly named function to get a list of paths to the cached, decompressed swfs from swcs found on the passed in library path.

Parameters:
swcPath - path to the swc
Returns:
array of paths of decompressed swfs from that swc