本文整理汇总了Java中net.sf.memoranda.TaskListImpl类的典型用法代码示例。如果您正苦于以下问题:Java TaskListImpl类的具体用法?Java TaskListImpl怎么用?Java TaskListImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TaskListImpl类属于net.sf.memoranda包,在下文中一共展示了TaskListImpl类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: openTaskList
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
public TaskList openTaskList(Project prj) {
String fn = JN_DOCPATH + prj.getID() + File.separator + ".tasklist";
if (documentExists(fn)) {
/*DEBUG*/
System.out.println(
"[DEBUG] Open task list: "
+ JN_DOCPATH
+ prj.getID()
+ File.separator
+ ".tasklist");
Document tasklistDoc = openDocument(fn);
return new TaskListImpl(tasklistDoc, prj);
}
else {
/*DEBUG*/
System.out.println("[DEBUG] New task list created");
return new TaskListImpl(prj);
}
}
开发者ID:cst316,项目名称:spring16project-Modula-2,代码行数:23,代码来源:FileStorage.java
示例2: openTaskList
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
@Override
public TaskList openTaskList(Project prj) {
String fn = JN_DOCPATH + prj.getID() + File.separator + ".tasklist";
if (documentExists(fn)) {
/* DEBUG */
System.out.println("[DEBUG] Open task list: " + JN_DOCPATH + prj.getID() + File.separator + ".tasklist");
Document tasklistDoc = openDocument(fn);
/*
* DocType tasklistDoctype = tasklistDoc.getDocType(); String
* publicId = null; if (tasklistDoctype != null) { publicId =
* tasklistDoctype.getPublicID(); } boolean upgradeOccurred =
* TaskListVersioning.upgradeTaskList(publicId); if
* (upgradeOccurred) { // reload from new file tasklistDoc =
* openDocument(fn); }
*/
return new TaskListImpl(tasklistDoc, prj);
} else {
/* DEBUG */
System.out.println("[DEBUG] New task list created");
return new TaskListImpl(prj);
}
}
开发者ID:cst316,项目名称:spring16project-Fortran,代码行数:25,代码来源:FileStorage.java
示例3: openTaskList
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
public TaskList openTaskList(Project prj) {
String fn = JN_DOCPATH + prj.getID() + File.separator + ".tasklist";
if (documentExists(fn)) {
/*DEBUG*/
System.out.println(
"[DEBUG] Open task list: "
+ JN_DOCPATH
+ prj.getID()
+ File.separator
+ ".tasklist");
Document tasklistDoc = openDocument(fn);
/*DocType tasklistDoctype = tasklistDoc.getDocType();
String publicId = null;
if (tasklistDoctype != null) {
publicId = tasklistDoctype.getPublicID();
}
boolean upgradeOccurred = TaskListVersioning.upgradeTaskList(publicId);
if (upgradeOccurred) {
// reload from new file
tasklistDoc = openDocument(fn);
}*/
return new TaskListImpl(tasklistDoc, prj);
}
else {
/*DEBUG*/
System.out.println("[DEBUG] New task list created");
return new TaskListImpl(prj);
}
}
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:32,代码来源:FileStorage.java
示例4: openTaskList
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
public TaskList openTaskList(Project prj) {
String fn = JN_DOCPATH + prj.getID() + File.separator + ".tasklist";
if (documentExists(fn)) {
/*DEBUG*/
Util.debug(
"Open task list: "
+ JN_DOCPATH
+ prj.getID()
+ File.separator
+ ".tasklist");
Document tasklistDoc = openDocument(fn);
/*DocType tasklistDoctype = tasklistDoc.getDocType();
String publicId = null;
if (tasklistDoctype != null) {
publicId = tasklistDoctype.getPublicID();
}
boolean upgradeOccurred = TaskListVersioning.upgradeTaskList(publicId);
if (upgradeOccurred) {
// reload from new file
tasklistDoc = openDocument(fn);
}*/
return new TaskListImpl(tasklistDoc, prj);
}
else {
/*DEBUG*/
Util.debug("New task list created");
return new TaskListImpl(prj);
}
}
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:32,代码来源:FileStorage.java
示例5: setUpBefore
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
@Before
public void setUpBefore() throws Exception {
tasklist = new TaskListImpl(null);
//start date declarations
sd1 = new CalendarDate(10,2,2016);
sd2 = new CalendarDate(11,2,2016);
sd3 = new CalendarDate(10,2,2016);
//end date declarations
ed1 = new CalendarDate(10,2,2016);
ed2 = new CalendarDate(11,2,2016);
ed3 = new CalendarDate(10,2,2016);
//description declarations
des1 = "This is description 1!";
des2 = "This is description 2!";
des3 = "This is description 3!";
//priority declarations
pri1 = 1;
pri2 = 3;
pri3 = 2;
//effort declarations
ef1 = Util.getMillisFromHours("2");
ef2 = Util.getMillisFromHours("4");
ef3 = Util.getMillisFromHours("6");
}
开发者ID:cst316,项目名称:spring16project-Modula-2,代码行数:30,代码来源:TaskListImplTest.java
示例6: tearDownAfter
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
@After
public void tearDownAfter() throws Exception {
tasklist = new TaskListImpl(null);
//start date declarations
sd1 = null;
sd2 = null;
sd3 = null;
//end date declarations
ed1 = null;
ed2 = null;
ed3 = null;
//description declarations
des1 = "";
des2 = "";
des3 = "";
//priority declarations
pri1 = 0;
pri2 = 0;
pri3 = 0;
//effort declarations
ef1 = Util.getMillisFromHours("0");
ef2 = Util.getMillisFromHours("0");
ef3 = Util.getMillisFromHours("0");
}
开发者ID:cst316,项目名称:spring16project-Modula-2,代码行数:30,代码来源:TaskListImplTest.java
示例7: openTaskList
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
public TaskList openTaskList(Project prj) {
String fn = JN_DOCPATH + prj.getID() + File.separator + ".tasklist";
if (documentExists(fn)) {
/*DEBUG*/
System.out.println(
"[DEBUG] Open task list: "
+ JN_DOCPATH
+ prj.getID()
+ File.separator
+ ".tasklist");
Document tasklistDoc = openDocument(fn);
/*DocType tasklistDoctype = tasklistDoc.getDocType();
String publicId = null;
if (tasklistDoctype != null) {
publicId = tasklistDoctype.getPublicID();
}
boolean upgradeOccurred = TaskListVersioning.upgradeTaskList(publicId);
if (upgradeOccurred) {
// reload from new file
tasklistDoc = openDocument(fn);
}*/
return new TaskListImpl(tasklistDoc, prj);
}
else {
/*DEBUG*/
System.out.println("[DEBUG] New task list created for prj");
return new TaskListImpl(prj);
}
}
开发者ID:cst316,项目名称:spring16project-Korn,代码行数:32,代码来源:FileStorage.java
示例8: setUp
import net.sf.memoranda.TaskListImpl; //导入依赖的package包/类
/**
* @throws java.lang.Exception
*/
@Before
public void setUp() throws Exception {
String id = Util.generateId();
Element elem = new Element("project");
elem.addAttribute(new Attribute("id", id));
Project testPrj = new ProjectImpl(elem);
testTL = new TaskListImpl(testPrj);
}
开发者ID:cst316,项目名称:spring16project-Korn,代码行数:12,代码来源:TaskOperationsTest.java
注:本文中的net.sf.memoranda.TaskListImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论