public class InitSnapinInfo
extends java.lang.Object
The InitSnapinInfo reference is passed to the initSnapin() method of the Snapin interface. The InitSnapinInfo object contains information that a snap-in may need when it initializes.
Snapin.initSnapin(InitSnapinInfo)| Modifier and Type | Field and Description |
|---|---|
protected com.novell.application.console.snapin.context.SnapinContext |
context |
boolean |
exportMapping |
protected Shell |
shell |
protected java.lang.Object |
snapinType |
protected boolean |
track |
| Constructor and Description |
|---|
InitSnapinInfo(Shell shell,
java.lang.Object snapinType)
Creates a new InitSnapinInfo object with references to the shell and the snap-in
type.
|
InitSnapinInfo(Shell shell,
java.lang.Object snapinType,
com.novell.application.console.snapin.context.SnapinContext context)
Creates a new InitSnapinInfo object with references to the shell, the snap-in
type, and the snap-in context.
|
| Modifier and Type | Method and Description |
|---|---|
Shell |
getShell()
Returns a reference to the ConsoleOne shell.
|
com.novell.application.console.snapin.context.SnapinContext |
getSnapinContext()
Returns a reference to the snap-in context of the participating snap-in.
|
java.lang.Object |
getSnapinType()
Returns a reference to the snap-in type of the participating snap-in.
|
boolean |
getTracking() |
void |
setTracking(boolean track) |
protected Shell shell
protected java.lang.Object snapinType
protected com.novell.application.console.snapin.context.SnapinContext context
protected boolean track
public boolean exportMapping
public InitSnapinInfo(Shell shell, java.lang.Object snapinType)
The shell and snap-in type references are required.
shell - The reference to the shell that snap-ins can use to interact
with the ConsoleOne shell.snapinType - The reference to the type of the participating snap-in.public InitSnapinInfo(Shell shell, java.lang.Object snapinType, com.novell.application.console.snapin.context.SnapinContext context)
shell - The reference to the shell that snap-ins can use to interact
with the ConsoleOne shell.snapinType - The reference to the type of the participating snap-in.context - The reference to the snap-in context.public Shell getShell()
This reference can be used by snap-ins to interact with the shell.
public java.lang.Object getSnapinType()
This snapinType can be used when a snap-in implements more than one type; for example:
Shell.SNAPIN.VIEW
public com.novell.application.console.snapin.context.SnapinContext getSnapinContext()
The snap-in context is dependent upon the snap-in type. For a particular snap-in type you need to cast the return to the correct SnapinContext. For some snap-in types there is no defined snap-in context, therefore a null can be returned.
SnapinContextpublic void setTracking(boolean track)
track - A boolean flag indicating the status of the initSnapin()
registry call.public boolean getTracking()
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.