当前位置: 首页>>代码示例>>Java>>正文


Java ExceptionDialog类代码示例

本文整理汇总了Java中net.sf.memoranda.ui.ExceptionDialog的典型用法代码示例。如果您正苦于以下问题:Java ExceptionDialog类的具体用法?Java ExceptionDialog怎么用?Java ExceptionDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExceptionDialog类属于net.sf.memoranda.ui包,在下文中一共展示了ExceptionDialog类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initTable

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public void initTable(CalendarDate d) {  
  	try {
  	timelogs = (Vector)TimeLogManager.getTimeLogsForDate(d);
  	}
  	catch (Exception ex) {
	new ExceptionDialog(ex);
}
      getColumnModel().getColumn(0).setPreferredWidth(80);
      getColumnModel().getColumn(0).setMaxWidth(80);
      getColumnModel().getColumn(1).setPreferredWidth(60);
      getColumnModel().getColumn(1).setMaxWidth(60);
      getColumnModel().getColumn(2).setPreferredWidth(60);
      getColumnModel().getColumn(2).setMaxWidth(60);
      getColumnModel().getColumn(3).setPreferredWidth(100);
      getColumnModel().getColumn(3).setMaxWidth(100);
      getColumnModel().getColumn(4).setPreferredWidth(100);
      getColumnModel().getColumn(4).setMaxWidth(100);
      getColumnModel().getColumn(5).setPreferredWidth(100);
      getColumnModel().getColumn(5).setMaxWidth(100);
      clearSelection();
      updateUI();
  }
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:23,代码来源:TimeLogTable.java

示例2: saveDocument

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public static void saveDocument(Document doc, String filePath) {
    /**
     * @todo: Configurable parameters
     */
    try {
        /*The XOM bug: reserved characters are not escaped*/
        //Serializer serializer = new Serializer(new FileOutputStream(filePath), "UTF-8");
        //serializer.write(doc);
        OutputStreamWriter fw =
            new OutputStreamWriter(new FileOutputStream(filePath), "UTF-8");
        fw.write(doc.toXML());
        fw.flush();
        fw.close();
    }
    catch (IOException ex) {
        new ExceptionDialog(
            ex,
            "Failed to write a document to " + filePath,
            "");
    }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:22,代码来源:FileStorage.java

示例3: openMimeTypesList

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
/**
 * @see net.sf.memoranda.util.Storage#openMimeTypesList()
 */
public void openMimeTypesList() {
    if (!new File(JN_DOCPATH + ".mimetypes").exists()) {
        try {
            MimeTypesList._doc =
                openDocument(
                    FileStorage.class.getResourceAsStream(
                        "resources/default.mimetypes"));
        }
        catch (Exception e) {
            new ExceptionDialog(
                e,
                "Failed to read default mimetypes config from resources",
                "");
        }
        return;
    }
    /*DEBUG*/
    System.out.println(
        "[DEBUG] Open mimetypes list: " + JN_DOCPATH + ".mimetypes");
    MimeTypesList._doc = openDocument(JN_DOCPATH + ".mimetypes");
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:25,代码来源:FileStorage.java

示例4: getNoteBody

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
private String getNoteBody() {
   String text = "";
   StringWriter sw = new StringWriter();
   AltHTMLWriter writer = new AltHTMLWriter(sw, doc, charset, num);
   try {
       writer.write();
       sw.flush();
       sw.close();
   }
   catch (Exception ex) {
       new ExceptionDialog(ex);
   }
   text = sw.toString();
   text = Pattern
           .compile("<body(.*?)>", java.util.regex.Pattern.DOTALL
                   + java.util.regex.Pattern.CASE_INSENSITIVE).split(text)[1];
   text = Pattern
           .compile("</body>", java.util.regex.Pattern.DOTALL
                   + java.util.regex.Pattern.CASE_INSENSITIVE).split(text)[0];
   return text;
}
 
开发者ID:ser316asu,项目名称:SER316-Aachen,代码行数:22,代码来源:HTMLFileExport.java

示例5: getTemplateString

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
private String getTemplateString(String templF) {		
   if ((templF != null) && (templF.length() >0)) {
  		File f = new File(templF);			
	String text = "";	
	try {
		BufferedReader fr = new BufferedReader(new InputStreamReader(new FileInputStream(f)));		
		String s = fr.readLine();
		while (s != null) {				
			text = text + s;
			s = fr.readLine();
		}
		fr.close();
	}
	catch (Exception ex) {
		new ExceptionDialog(ex, "Cannot read template file from "+templF, null);
	}	
	if (text.length() > 0)
		return text;
}
   String t = (String)Configuration.get("DEFAULT_EXPORT_TEMPLATE");
   if ((t != null) && (t.length() > 0))
       return t;
return "<html>\n<head>\[email protected]@\n<title>@[email protected] - @[email protected]</title>\n</head>\n<body>\[email protected]@\n</body>\n</html>";
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:25,代码来源:HTMLFileExport.java

示例6: getBody

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
private String getBody() {
   String text = "";
   StringWriter sw = new StringWriter();
   AltHTMLWriter writer = new AltHTMLWriter(sw, doc, charset, num);
   try {
       writer.write();
       sw.flush();
       sw.close();
   }
   catch (Exception ex) {
       new ExceptionDialog(ex);
   }
   text = sw.toString();
   text = Pattern
           .compile("<body(.*?)>", java.util.regex.Pattern.DOTALL
                   + java.util.regex.Pattern.CASE_INSENSITIVE).split(text)[1];
   text = Pattern
           .compile("</body>", java.util.regex.Pattern.DOTALL
                   + java.util.regex.Pattern.CASE_INSENSITIVE).split(text)[0];
   return text;
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:22,代码来源:HTMLFileExport.java

示例7: openMimeTypesList

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
/**
 * @see net.sf.memoranda.util.Storage#openMimeTypesList()
 */
public void openMimeTypesList() {
    if (!new File(JN_DOCPATH + ".mimetypes").exists()) {
        try {
            MimeTypesList._doc =
                openDocument(
                    FileStorage.class.getResourceAsStream(
                        "/util/default.mimetypes"));
        }
        catch (Exception e) {
            new ExceptionDialog(
                e,
                "Failed to read default mimetypes config from resources",
                "");
        }
        return;
    }
    /*DEBUG*/
    Util.debug("Open mimetypes list: " + JN_DOCPATH + ".mimetypes");
    MimeTypesList._doc = openDocument(JN_DOCPATH + ".mimetypes");
}
 
开发者ID:ser316asu,项目名称:SER316-Dresden,代码行数:24,代码来源:FileStorage.java

示例8: getTemplateString

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
private String getTemplateString(String templF) {		
   if ((templF != null) && (templF.length() >0)) {
  		File f = new File(templF);			
	String text = "";	
	try {
		BufferedReader fr = new BufferedReader(new InputStreamReader(new FileInputStream(f)));		
		String s = fr.readLine();
		while (s != null) {				
			text = text + s;
			s = fr.readLine();
		}
		fr.close();
	}
	catch (Exception ex) {
		new ExceptionDialog(ex, "Cannot read template file from "+templF, null);
	}	
	if (text.length() > 0)
		return text;
}
   String t = (String)Configuration.get("DEFAULT_EXPORT_TEMPLATE");
   if ((t != null) && (t.length() > 0))
       return t;
return "<html>\n<head>\[email protected][email protected]\n<title>@[email protected] - @[email protected]</title>\n</head>\n<body>\[email protected]@\n</body>\n</html>";
}
 
开发者ID:ser316asu,项目名称:SER316-Ingolstadt,代码行数:25,代码来源:HTMLFileExport.java

示例9: EstimatePanel

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public EstimatePanel(PspPanel _parentPanel) {
    try {
        parentPanel = _parentPanel;
        jbInit();
    }
    catch (Exception ex) {
        new ExceptionDialog(ex);
    }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:10,代码来源:EstimatePanel.java

示例10: TimeLogPanel

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public TimeLogPanel(PspPanel parentPanel) {
    try {
        this.parentPanel = parentPanel;
        init();
    }
    catch (Exception ex) {
        new ExceptionDialog(ex);
    }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:10,代码来源:TimeLogPanel.java

示例11: LanguageDialog

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public LanguageDialog(Frame frame, String title) {
	super(frame, title, true);
	
	try {
		init();
		pack();
	}
	catch (Exception ex) {
		new ExceptionDialog(ex);
	}
	
	super.addWindowListener(this);
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:14,代码来源:LanguageDialog.java

示例12: PspPanel

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public PspPanel(DailyItemsPanel parentPanel) {		
	try {
		this.parentPanel = parentPanel;
           init();
       }
       catch (Exception ex) {
           new ExceptionDialog(ex);
       }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:10,代码来源:PspPanel.java

示例13: LocPanel

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public LocPanel(PspPanel parentPanel) {
	try {
           this.parentPanel = parentPanel;
           init();
       }
       catch (Exception ex) {
           new ExceptionDialog(ex);
       }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:10,代码来源:LocPanel.java

示例14: refresh

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
public void refresh() {
  try {
     timeLogs = TimeLogManager.getTimeLogsForProject(CurrentProject.get());
     totalMinActual = timeLogs.stream().mapToLong(timeLogs -> timeLogs.deltaTimeMin()).sum();
     estimates = EstimateManager.getEstimatesForProject(CurrentProject.get());
     totalMinEstimate = estimates.stream().mapToLong(estimates -> estimates.getMinutes()).sum();
   }
   catch (Exception e) {
     new ExceptionDialog(e);
   }
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:12,代码来源:TimeSummaryTable.java

示例15: fetchData

import net.sf.memoranda.ui.ExceptionDialog; //导入依赖的package包/类
private void fetchData() {
	try {
		mActualLoc = LocManager.getActualLocForProject(CurrentProject.get());
		mEstimates = EstimateManager.getEstimatesForProject(CurrentProject.get());
		mTimeLogs = TimeLogManager.getTimeLogsForProject(CurrentProject.get());
		mDefectLogs = DefectLogManager.getDefectLogsForProject(CurrentProject.get());
	}
	catch (Exception e) {
		new ExceptionDialog(e);
	}
}
 
开发者ID:ser316asu,项目名称:Neukoelln_SER316,代码行数:12,代码来源:LocSummaryTableModel.java


注:本文中的net.sf.memoranda.ui.ExceptionDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。