diff options
author | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 13:36:50 +0100 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2013-12-12 15:25:03 +0100 |
commit | 41ac47d732eed8392d60d0f6773e5a279d49b999 (patch) | |
tree | cf19d099db9cfdb8d73aa21c31e7aa1cc86ff860 /plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model | |
download | eclipse-poky-juno-master.tar.gz |
Migrated from the internal git server on the dora-enea branch
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model')
-rw-r--r-- | plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/IModelElement.java | 15 | ||||
-rw-r--r-- | plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/ProjectInfo.java | 48 |
2 files changed, 63 insertions, 0 deletions
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/IModelElement.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/IModelElement.java new file mode 100644 index 0000000..2892df5 --- /dev/null +++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/IModelElement.java | |||
@@ -0,0 +1,15 @@ | |||
1 | /***************************************************************************** | ||
2 | * Copyright (c) 2009 Ken Gilmer | ||
3 | * All rights reserved. This program and the accompanying materials | ||
4 | * are made available under the terms of the Eclipse Public License v1.0 | ||
5 | * which accompanies this distribution, and is available at | ||
6 | * http://www.eclipse.org/legal/epl-v10.html | ||
7 | * | ||
8 | * Contributors: | ||
9 | * Ken Gilmer - initial API and implementation | ||
10 | *******************************************************************************/ | ||
11 | package org.yocto.bc.ui.model; | ||
12 | |||
13 | public interface IModelElement { | ||
14 | public void initialize() throws Exception; | ||
15 | } | ||
diff --git a/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/ProjectInfo.java b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/ProjectInfo.java new file mode 100644 index 0000000..3af1e2a --- /dev/null +++ b/plugins/org.yocto.bc.ui/src/org/yocto/bc/ui/model/ProjectInfo.java | |||
@@ -0,0 +1,48 @@ | |||
1 | /***************************************************************************** | ||
2 | * Copyright (c) 2009 Ken Gilmer | ||
3 | * All rights reserved. This program and the accompanying materials | ||
4 | * are made available under the terms of the Eclipse Public License v1.0 | ||
5 | * which accompanies this distribution, and is available at | ||
6 | * http://www.eclipse.org/legal/epl-v10.html | ||
7 | * | ||
8 | * Contributors: | ||
9 | * Ken Gilmer - initial API and implementation | ||
10 | *******************************************************************************/ | ||
11 | package org.yocto.bc.ui.model; | ||
12 | |||
13 | |||
14 | public class ProjectInfo implements IModelElement { | ||
15 | private String name; | ||
16 | private String location; | ||
17 | private String init; | ||
18 | |||
19 | public ProjectInfo() { | ||
20 | } | ||
21 | |||
22 | public String getInitScriptPath() { | ||
23 | return init; | ||
24 | } | ||
25 | public String getProjectName() { | ||
26 | return name; | ||
27 | } | ||
28 | public String getRootPath() { | ||
29 | return location; | ||
30 | } | ||
31 | public void initialize() throws Exception { | ||
32 | name = new String(); | ||
33 | location = new String(); | ||
34 | init = new String(); | ||
35 | } | ||
36 | |||
37 | public void setInitScriptPath(String init) { | ||
38 | this.init = init; | ||
39 | } | ||
40 | |||
41 | public void setLocation(String location) { | ||
42 | this.location = location; | ||
43 | } | ||
44 | |||
45 | public void setName(String name) { | ||
46 | this.name = name; | ||
47 | } | ||
48 | } | ||