/** Plugin preferences object. */
//private LAFPreferences _prefs;
/** Look and Feel register. */
private LAFRegister _lafRegister;
/** Fonts panel to display in the Global preferences dialog. */
/** LAF panel to display in the Global preferences dialog. */
private [[#variable18d42480]] _myPanel;
/** Application API. */
//private IApplication _app;
/**
* Ctor.
*
* @param plugin The LAF plugin.
* @param lafRegister Look and Feel register.
*
* @throws IllegalArgumentException
* if <TT>LAFPlugin</TT>, or <TT>LAFRegister</TT> is <TT>null</TT>.
*/
public [[#variable18d42400]](LAFPlugin plugin, LAFRegister lafRegister) {
super();
if (plugin == null) {
throw new IllegalArgumentException("Null LAFPlugin passed");
}
if (lafRegister == null) {
throw new IllegalArgumentException("Null LAFRegister passed");
}
_plugin = plugin;
//_prefs = plugin.getLAFPreferences();
_lafRegister = lafRegister;
}
/**
* Load panel with data from plugin preferences.
*
* @param app Application API.
*
* @throws IllegalArgumentException
* if <TT>IApplication</TT> is <TT>null</TT>.
*/
/**
* Load panel with data from plugin preferences.
*
* @param app Application API.
*
* @throws IllegalArgumentException
* if <TT>IApplication</TT> is <TT>null</TT>.
*/
public void initialize(IApplication app) {
if (app == null) {
throw new IllegalArgumentException("Null IApplication passed");
}
//_app = app;
(( [[#variable18d42480]]) getPanelComponent()).loadData();
}
public void uninitialize(IApplication app) {
}
/**
* Return the component to be displayed in the Preferences dialog.
*
* @return the component to be displayed in the Preferences dialog.
*/
public synchronized Component getPanelComponent() {
if (_myPanel == null) {
_myPanel = new [[#variable18d42480]](_plugin, _lafRegister);
}
return _myPanel;
}
/**
* User has pressed OK or Apply in the dialog so save data from
* panel.
*/
public void applyChanges() {
_myPanel.applyChanges();
}
/**
* Return the title for this panel.
*
* @return the title for this panel.
*/
public String getTitle() {
return [[#variable18d42480]]. [[#variable18d42360]].TAB_TITLE;
}
/**
* Return the hint for this panel.
*
* @return the hint for this panel.
*/
public String getHint() {
return [[#variable18d42480]]. [[#variable18d42360]].TAB_HINT;
}
|