Commit 3dfb429d authored by Klaus Hamberger's avatar Klaus Hamberger
Browse files

Removed deprecated "extract segment" function.

git-svn-id: svn+ssh://svn.code.sf.net/p/tip-puck/code/trunk@2337 fbf60bc9-78ff-467a-80f5-d9f1d8e511fc
parent fa3a1d82
......@@ -2767,7 +2767,7 @@ public class NetUtils {
* @return
* @throws PuckException
*/
public static Net extract(final Net source, final Segment segment, final String segmentLabel) {
/* public static Net extract(final Net source, final Segment segment, final String segmentLabel) {
Net result;
if ((source == null) || (segment == null)) {
......@@ -2836,7 +2836,7 @@ public class NetUtils {
//
return result;
}
}*/
/**
*
......@@ -4035,7 +4035,7 @@ public class NetUtils {
for (Family family : source.families().toSortedList()) {
if (!family.isSterile() && !family.isSingleParent() && !family.hasMarried()) {
family.setMarried();
list.appendln(family.toNameString());
list.appendln(family.signatureTab());
result++;
}
}
......
......@@ -3486,24 +3486,6 @@ public class MainWindow {
JMenu mnExtract = new JMenu(ResourceBundle.getBundle("org.tip.puckgui.messages").getString("MainWindow.mnExtract.text")); //$NON-NLS-1$ //$NON-NLS-2$
mnTransform.add(mnExtract);
JMenuItem mntmExtractCurrentSegment = new JMenuItem(ResourceBundle
.getBundle("org.tip.puckgui.messages").getString("MainWindow.mntmExtractCurrentSegment.text")); //$NON-NLS-1$ //$NON-NLS-2$
mnExtract.add(mntmExtractCurrentSegment);
mntmExtractCurrentSegment.addActionListener(new ActionListener() {
@Override
public void actionPerformed(final ActionEvent event) {
// Extract current segment.
//
Segment segment = MainWindow.this.netGUI.getSegmentation().getCurrentSegment();
String segmentLabels = MainWindow.this.netGUI.getSegmentation().getSegmentLabels().toStringSeparatedBy("; ");
Net newNet = NetUtils.extract(MainWindow.this.netGUI.getNet(), segment, segmentLabels);
//
NetGUI newNetGui = PuckGUI.instance().createNetGUI(MainWindow.this.netGUI.getFile(), newNet);
newNetGui.setChanged(true, " " + MainWindow.this.netGUI.getSegmentation().getCurrentSegment().getShortShortLabel().replace("*", "out"));
}
});
JMenuItem mntmCurrentCluster = new JMenuItem(ResourceBundle.getBundle("org.tip.puckgui.messages").getString("MainWindow.mntmCurrentCluster.text_1")); //$NON-NLS-1$ //$NON-NLS-2$
mntmCurrentCluster.addActionListener(new ActionListener() {
@Override
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment