CloneSet204


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
96230.970class_body_declarations[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19667
E:/TSE/Projects-CloneDR/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java
29461
E:/TSE/Projects-CloneDR/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFPreferencesTab.java
Next
Last
Clone Instance
1
Line Count
96
Source Line
67
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java

/** Plugin preferences object. */
//private LAFPreferences _prefs;
/** Look and Feel register. */
private LAFRegister _lafRegister;

/** Fonts panel to display in the Global preferences dialog. */
private FontSelectionPanel _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 LAFFontsTab(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>.
 */
public void initialize(IApplication app) {
  if (app == null) {
    throw new IllegalArgumentException("Null IApplication passed");
  }
  //_app = app;
  ((FontSelectionPanel) 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 FontSelectionPanel(_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 FontSelectionPanel.i18n.TAB_TITLE;
}

/**
 * Return the hint for this panel.
 *
 * @return  the hint for this panel.
 */
public String getHint() {
  return FontSelectionPanel.i18n.TAB_HINT;
}


First
Previous
Clone Instance
2
Line Count
94
Source Line
61
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFPreferencesTab.java

/** Plugin preferences object. */
//private LAFPreferences _prefs;
/** Look and Feel register. */
private LAFRegister _lafRegister;

/** LAF panel to display in the Global preferences dialog. */
private LAFPreferencesPanel _myPanel;

/**
 * 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 LAFPreferencesTab(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>.
 */
public void initialize(IApplication app) {
  if (app == null) {
    throw new IllegalArgumentException("Null IApplication passed");
  }
  //_app = app;
  ((LAFPreferencesPanel) 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 LAFPreferencesPanel(_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 LAFPreferencesPanel.LAFPreferencesPanelI18n.TAB_TITLE;
}

/**
 * Return the hint for this panel.
 *
 * @return  the hint for this panel.
 */
public String getHint() {
  return LAFPreferencesPanel.LAFPreferencesPanelI18n.TAB_HINT;
}


Clone AbstractionParameter Count: 3Parameter Bindings

/** 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;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d42480]]
FontSelectionPanel 
12[[#18d42480]]
LAFPreferencesPanel 
21[[#18d42400]]
LAFFontsTab 
22[[#18d42400]]
LAFPreferencesTab 
31[[#18d42360]]
i18n 
32[[#18d42360]]
LAFPreferencesPanelI18n