HopfieldNetwork hopfield = (HopfieldNetwork) method;
CreateHopfieldDialog dialog = new CreateHopfieldDialog(EncogWorkBench
.getInstance().getMainWindow());
dialog.getNeuronCount().setValue(hopfield.getNeuronCount());
if (dialog.process()
&& (hopfield.getNeuronCount() != dialog.getNeuronCount()
.getValue())) {
HopfieldPattern pattern = new HopfieldPattern();
pattern.setInputNeurons(dialog.getNeuronCount().getValue());
setDirty(true);