]>
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 | |
18 | import javax.swing.tree.TreePath;\r | |
19 | \r | |
20 | \r | |
21 | public class OpeningFileType {\r | |
22 | //\r | |
23 | // Define class members\r | |
24 | //\r | |
79cb6fdb | 25 | private boolean isSaved = true;\r |
26 | \r | |
27 | private boolean isNew = false;\r | |
28 | \r | |
739c6b04 | 29 | private boolean isOpen = false;\r |
30 | \r | |
79cb6fdb | 31 | private TreePath treePath = null;\r |
32 | \r | |
33 | public OpeningFileType() {\r | |
34 | \r | |
35 | }\r | |
36 | \r | |
739c6b04 | 37 | public OpeningFileType(TreePath treePathValue) {\r |
79cb6fdb | 38 | this.treePath = treePathValue;\r |
39 | }\r | |
40 | \r | |
79cb6fdb | 41 | public boolean isNew() {\r |
42 | return isNew;\r | |
43 | }\r | |
44 | \r | |
45 | public void setNew(boolean isNew) {\r | |
46 | this.isNew = isNew;\r | |
47 | }\r | |
48 | \r | |
49 | public boolean isSaved() {\r | |
50 | return isSaved;\r | |
51 | }\r | |
52 | \r | |
53 | public void setSaved(boolean isSaved) {\r | |
54 | this.isSaved = isSaved;\r | |
55 | }\r | |
56 | \r | |
57 | public TreePath getTreePath() {\r | |
58 | return treePath;\r | |
59 | }\r | |
60 | \r | |
61 | public void setTreePath(TreePath treePath) {\r | |
62 | this.treePath = treePath;\r | |
63 | }\r | |
739c6b04 | 64 | \r |
65 | public boolean isOpen() {\r | |
66 | return isOpen;\r | |
67 | }\r | |
68 | \r | |
69 | public void setOpen(boolean isOpen) {\r | |
70 | this.isOpen = isOpen;\r | |
71 | }\r | |
79cb6fdb | 72 | }\r |