public abstract class IOSelect extends Object
InputOutput.select() does too much.
Modifier and Type | Class and Description |
---|---|
static class |
IOSelect.AdditionalOperation
Additional operations to perform when issuing
IOSelect.select(org.openide.windows.InputOutput, java.util.Set<org.openide.windows.IOSelect.AdditionalOperation>) . |
Constructor and Description |
---|
IOSelect() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isSupported(InputOutput io)
Checks whether this feature is supported for provided IO
|
static void |
select(InputOutput io,
Set<IOSelect.AdditionalOperation> extraOps)
With an empty 'extraOps' simply selects this io
without involving it's containing TopComponent.
|
protected abstract void |
select(Set<IOSelect.AdditionalOperation> extraOps)
With an empty 'extraOps' simply selects this io
without involving it's containing TopComponent.
|
public static void select(InputOutput io, Set<IOSelect.AdditionalOperation> extraOps)
For example:
if (IOSelect.isSupported(io) { IOSelect.select(io, EnumSet.noneOf(IOSelect.AdditionalOperation.class)); }
If this capability is not supported then regular InputOutput.select() will be called.
io
- InputOutput to operate on.extraOps
- Additional operations to apply to the containing
TopComponent.public static boolean isSupported(InputOutput io)
io
- IO to check onprotected abstract void select(Set<IOSelect.AdditionalOperation> extraOps)
extraOps
- Additional operations to apply to the containing
TopComponent.