Method Summary |
|
public static List<? extends ILayer> | addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition) Make layers from the resourceList and adds the layers to the map.
NOTE map may be null. |
public static List<? extends ILayer> | addLayersToMap(IProject project, List<IGeoResource> resourceList) Make layers from the resourceList, creates a new map, adds layers to map and adds map to the
project.
Parameters: project - project that new map should be added to Parameters: resourceList - Resources to add to the map. Parameters: startPosition - z-position of the layers to add. |
public static List<? extends ILayer> | addLayersToMap(IMap map, List<IGeoResource> resourceList, int startPosition, Project project) Make layers from the resourceList and adds the layers to the map.
NOTE map may be null. |
public static List<? extends ILayer> | addLayersToMap(IMap map2, List<IGeoResource> resourceList, int startPosition2, IProject project2, boolean wait) Make layers from the resourceList and adds the layers to the map.
NOTE map may be null. |
public static void | createAndOpenMap(List<IGeoResource> resources) creates a map and opens an editor for the map.
Parameters: a - list of IGeoResources. |
public static void | createAndOpenMap(List<IGeoResource> resources, IProject owner) creates a map and opens an editor for the map.
Parameters: a - list of IGeoResources. |
public static void | createAndOpenMap(List<IGeoResource> resources, IProject owner, boolean wait) creates a map and opens an editor for the map.
Parameters: a - list of IGeoResources. |
public static IToolContext | createContext(IMap map) Creates a Tools Context out of Map. |
public static IMap | getActiveMap() May return null if the active editor is not a Map Editor. |
public static IProject | getActiveProject() Obtains the current project. |
public static List<UDIGEditorInputDescriptor> | getEditorInputs(Class<? extends IProjectElement> type) Returns an editor input for the type passed in. |
public static UDIGEditorInput | getInput(IProjectElement element) Returns the IEditorInput instance that wraps the element argument. |
public static List<? extends IMap> | getOpenMaps() Returns all open maps. |
public static List<? extends IProject> | getProjects() Return all Projects. |
public static IToolManager | getToolManager() Returns the ToolManager singleton. |
public static IViewPart | getView(boolean show, String id) Gets a reference to a view. |
public static IProjectElement | loadProjectElement(URL url, IProject project) Loads the project element indicated by the url and adds the map to the provided project.
Parameters: url - the project element to load Parameters: project - the project to add the project element to. |
public static void | openMap(IMap map) Opens a Map editor for the provided map, This is a non-blocking call. |
public static void | openMap(IMap map, boolean wait) Opens a Map editor for the provided map.
Parameters: map - the map to open. |
public static void | openProjectElement(IProjectElement obj, boolean wait) Opens a
IProjectElement for editing/viewing. |
public static void | run(ISafeRunnable request) Runs the given runnable in a protected mode. |