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

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/dialogs/options/EDIFTab.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:
26
26
import com.sun.electric.database.text.TextUtils;
27
27
import com.sun.electric.tool.io.FileType;
28
28
import com.sun.electric.tool.io.IOTool;
 
29
import com.sun.electric.tool.user.dialogs.EDialog;
29
30
import com.sun.electric.tool.user.dialogs.OpenFile;
30
31
 
31
32
import javax.swing.JPanel;
45
46
                initComponents();
46
47
                textArea = new JTextArea();
47
48
                acceptedParamPane.setViewportView(textArea);
 
49
 
 
50
                // make all text fields select-all when entered
 
51
            EDialog.makeTextFieldSelectAllOnTab(edifInputScale);
 
52
            EDialog.makeTextFieldSelectAllOnTab(edifConfigFile);
48
53
        }
49
54
 
50
55
        /** return the panel to use for this preferences tab. */
107
112
                        IOTool.setEDIFAcceptedParameters(currentAcceptedParams);
108
113
        }
109
114
 
 
115
        /**
 
116
         * Method called when the factory reset is requested.
 
117
         */
 
118
        public void reset()
 
119
        {
 
120
                if (IOTool.isFactoryEDIFUseSchematicView() != IOTool.isEDIFUseSchematicView())
 
121
                        IOTool.setEDIFUseSchematicView(IOTool.isFactoryEDIFUseSchematicView());
 
122
                if (IOTool.getFactoryEDIFInputScale() != IOTool.getEDIFInputScale())
 
123
                        IOTool.setEDIFInputScale(IOTool.getFactoryEDIFInputScale());
 
124
                if (IOTool.isFactoryEDIFCadenceCompatibility() != IOTool.isEDIFCadenceCompatibility())
 
125
                        IOTool.setEDIFCadenceCompatibility(IOTool.isFactoryEDIFCadenceCompatibility());
 
126
                if (!IOTool.getFactoryEDIFConfigurationFile().equals(IOTool.getEDIFConfigurationFile()))
 
127
                        IOTool.setEDIFConfigurationFile(IOTool.getFactoryEDIFConfigurationFile());
 
128
                if (!IOTool.getFactoryEDIFAcceptedParameters().equals(IOTool.getEDIFAcceptedParameters()))
 
129
                        IOTool.setEDIFAcceptedParameters(IOTool.getFactoryEDIFAcceptedParameters());
 
130
        }
 
131
 
110
132
        /** This method is called from within the constructor to
111
133
         * initialize the form.
112
134
         * WARNING: Do NOT modify this code. The content of this method is