documentchanged.java

来自「一个eclipse插件源代码。用于web开发」· Java 代码 · 共 65 行

JAVA
65
字号
/*
 * $Header: /home/cvs/WEBPUMP2.0/WebPumpIDE_Src/WebPumpIDE/src/com/webpump/ui/bind/editors/DocumentChanged.java,v 1.1.1.1 2004/07/01 09:07:41 wang_j Exp $
 * $Revision: 1.1.1.1 $
 * $Date: 2004/07/01 09:07:41 $
 *
 * ====================================================================
 *
 * The NanJing HopeRun(IT-FOREST) Software License, Version 2.0.0
 *
 * Copyright 2003-2004 by NanJing HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and
 *                        IT Forest Corporation
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
 * You shall not disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into with
 * HopeRun(IT-FOREST) Information System Co., Ltd, CHINA and IT Forest Corporation.
 */
 
package com.webpump.ui.bind.editors;

import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.swt.widgets.Display;
import com.webpump.ui.bind.data.HtmlPage;
import com.webpump.ui.bind.data.ParameterInfo;
import com.webpump.ui.perspective.WebpumpIDEPlugin;
import com.webpump.ui.wizard.FileUtil;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Vector;

/**
 * When document has changed ,take all parameters from the document and show them in table.
 * If needed ,change the xml file .
 * 
 * @author luo_sa
 * @version 2.0.0 2004-2-11
 */
public class DocumentChanged {
    /** editor with which the changed document correlative */
    private BindEditor m_objBindEditor;
    
    /**html page name */
    private String m_strPageName;
	private static final int SCRIPTHEAD = 1;
	private static final int STYLEHEAD  = 2;
	private static final int BODYHEADERHEAD = 3;
	private static final int DRAWSCENEHEAD  = 4;
	private static final int TAILSCRIPTHEAD = 5;
	private static final int FIRSTERRORCOMPONENTHEAD = 1;
	private static final int ALLERRORCOMPONENTHEAD  = 2;
	private static final int SINGLEERRORCOMPONENTHEAD = 3;
	private static final int LOOPCOMPONENTHEAD  = 4;
	private static final int CUSTOMERCOMPONENTHEAD = 5;
    /**
     * constructor
     * @param editor
     */
    public DocumentChanged(BindEditor editor) {
        m_objBindEditor = editor;
        String FileName = editor.getXMLEditor().getTitle();
//      取得当前

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?