|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.dialogs.ContainerGenerator
public class ContainerGenerator
For creating folder resources that currently do not exist, along a given workspace path.
This class may be instantiated; it is not intended to be subclassed.
Example usage:
ContainerGenerator gen = new ContainerGenerator(new Path("/A/B"));
IContainer res = null;
try {
res = gen.getContainer(monitor); // creates project A and folder B if required
} catch (CoreException e) {
// handle failure
} catch (OperationCanceledException e) {
// handle cancelation
}
| Constructor Summary | |
|---|---|
ContainerGenerator(IPath containerPath)
Creates a generator for the container resource (folder or project) at the given workspace path. |
|
| Method Summary | |
|---|---|
IContainer |
generateContainer(IProgressMonitor monitor)
Ensures that this generator's container resource exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContainerGenerator(IPath containerPath)
Call getContainer to create any missing resources along the
path.
containerPath - the workspace path of the container| Method Detail |
|---|
public IContainer generateContainer(IProgressMonitor monitor)
throws CoreException
Note: This method should be called within a workspace modify operation since it may create resources.
monitor - a progress monitor
CoreException - if the operation fails
OperationCanceledException - if the operation is canceled
|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.