]>
Commit | Line | Data |
---|---|---|
79cb6fdb | 1 | /** @file\r |
2 | \r | |
3 | The file is used to define common opening file type\r | |
4 | \r | |
5 | Copyright (c) 2006, Intel Corporation\r | |
6 | All rights reserved. This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | package org.tianocore.frameworkwizard.common.Identifications;\r | |
17 | \r | |
09ef9242 | 18 | import java.util.LinkedHashSet;\r |
19 | import java.util.Set;\r | |
20 | \r | |
79cb6fdb | 21 | import javax.swing.tree.TreePath;\r |
22 | \r | |
23 | \r | |
24 | public class OpeningFileType {\r | |
25 | //\r | |
26 | // Define class members\r | |
27 | //\r | |
79cb6fdb | 28 | private boolean isSaved = true;\r |
29 | \r | |
30 | private boolean isNew = false;\r | |
31 | \r | |
739c6b04 | 32 | private boolean isOpen = false;\r |
33 | \r | |
09ef9242 | 34 | private Set<TreePath> treePath = new LinkedHashSet<TreePath>();\r |
79cb6fdb | 35 | \r |
36 | public OpeningFileType() {\r | |
37 | \r | |
38 | }\r | |
79cb6fdb | 39 | \r |
79cb6fdb | 40 | public boolean isNew() {\r |
41 | return isNew;\r | |
42 | }\r | |
43 | \r | |
44 | public void setNew(boolean isNew) {\r | |
45 | this.isNew = isNew;\r | |
46 | }\r | |
47 | \r | |
48 | public boolean isSaved() {\r | |
49 | return isSaved;\r | |
50 | }\r | |
51 | \r | |
52 | public void setSaved(boolean isSaved) {\r | |
53 | this.isSaved = isSaved;\r | |
54 | }\r | |
55 | \r | |
739c6b04 | 56 | public boolean isOpen() {\r |
57 | return isOpen;\r | |
58 | }\r | |
59 | \r | |
60 | public void setOpen(boolean isOpen) {\r | |
61 | this.isOpen = isOpen;\r | |
62 | }\r | |
09ef9242 | 63 | \r |
64 | public Set<TreePath> getTreePath() {\r | |
65 | return treePath;\r | |
66 | }\r | |
67 | \r | |
68 | public void setTreePath(Set<TreePath> treePath) {\r | |
69 | this.treePath = treePath;\r | |
70 | }\r | |
79cb6fdb | 71 | }\r |