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

« back to all changes in this revision

Viewing changes to com/sun/electric/tool/user/tecEditWizard/TechEditWizard.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.tecEditWizard;
25
25
 
26
 
import com.sun.electric.database.text.Setting;
27
26
import com.sun.electric.tool.user.dialogs.EDialog;
28
27
import com.sun.electric.tool.user.ui.TopLevel;
29
28
 
37
36
import java.awt.event.MouseListener;
38
37
import java.awt.event.WindowAdapter;
39
38
import java.awt.event.WindowEvent;
40
 
import java.util.ArrayList;
41
 
import java.util.List;
42
39
 
43
40
import javax.swing.JButton;
44
41
import javax.swing.JPanel;
58
55
{
59
56
        private JSplitPane splitPane;
60
57
        private JTree optionTree;
61
 
    private List<Object> originalContext;
62
 
    private List<Object> currentContext;
 
58
//    private List<Object> originalContext;
 
59
//    private List<Object> currentContext;
63
60
    private TechEditWizardPanel currentOptionPanel;
64
61
        private DefaultMutableTreeNode currentDMTN;
65
62
        private static TechEditWizardData data = new TechEditWizardData();
78
75
        public TechEditWizard(Frame parent)
79
76
        {
80
77
                super(parent, true);
81
 
        originalContext = Setting.getContext();
82
 
        currentContext = new ArrayList<Object>(originalContext);
 
78
//        originalContext = Setting.getContext();
 
79
//        currentContext = new ArrayList<Object>(originalContext);
83
80
                getContentPane().setLayout(new GridBagLayout());
84
81
                setTitle("Technology Creation Wizard");
85
82
                setName("");
198
195
 
199
196
        public TechEditWizardData getTechEditData() { return data; }
200
197
 
201
 
        public List<Object> getContext() { return currentContext; }
202
 
    
 
198
//      public List<Object> getContext() { return currentContext; }
 
199
 
203
200
    private boolean openSelectedPath(DefaultMutableTreeNode rootNode)
204
201
    {
205
202
        for (int i = 0; i < rootNode.getChildCount(); i++)
258
255
        ti.init();
259
256
        splitPane.setRightComponent(ti.getPanel());
260
257
        }
261
 
    
 
258
 
262
259
    private TechEditWizardPanel createOptionPanel(boolean modal)
263
260
    {
264
261
        if (currentTabName.equals("Active"))