~ubuntu-branches/ubuntu/jaunty/electric/jaunty

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/dialogs/options/DEFTab.java

  • Committer: Bazaar Package Importer
  • Author(s): Onkar Shinde
  • Date: 2009-01-08 02:05:08 UTC
  • mfrom: (1.1.2 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090108020508-0h3li7zt9mu5gf0i
Tags: 8.08-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 */
24
24
package com.sun.electric.tool.user.dialogs.options;
25
25
 
26
 
import com.sun.electric.database.text.Pref;
27
26
import com.sun.electric.tool.io.IOTool;
28
27
 
29
28
import javax.swing.JPanel;
30
29
 
31
 
 
32
30
/**
33
31
 * Class to handle the "DEF" tab of the Preferences dialog.
34
32
 */
72
70
                        IOTool.setDEFPhysicalPlacement(currentValue);
73
71
        }
74
72
 
 
73
        /**
 
74
         * Method called when the factory reset is requested.
 
75
         */
 
76
        public void reset()
 
77
        {
 
78
                if (IOTool.isFactoryDEFLogicalPlacement() != IOTool.isDEFLogicalPlacement())
 
79
                        IOTool.setDEFLogicalPlacement(IOTool.isFactoryDEFLogicalPlacement());
 
80
                if (IOTool.isFactoryDEFPhysicalPlacement() != IOTool.isDEFPhysicalPlacement())
 
81
                        IOTool.setDEFPhysicalPlacement(IOTool.isFactoryDEFPhysicalPlacement());
 
82
        }
 
83
 
75
84
        /** This method is called from within the constructor to
76
85
         * initialize the form.
77
86
         * WARNING: Do NOT modify this code. The content of this method is