@@ -0,0 +1,2738 @@
+package org.lbchild.controller;%0A%0Aimport java.io.File;%0Aimport java.util.ArrayList;%0A%0Aimport org.eclipse.swt.events.SelectionEvent;%0Aimport org.eclipse.swt.events.SelectionListener;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.eclipse.swt.widgets.Control;%0Aimport org.eclipse.swt.widgets.Display;%0Aimport org.eclipse.swt.widgets.Shell;%0Aimport org.lbchild.model.NewsList;%0Aimport org.lbchild.window.ReadMoreWindow;%0Aimport org.lbchild.xml.XMLWriter;%0A%0Apublic class AddMarksReadMoreWindowListener implements SelectionListener %7B%0A    %0A    private ArrayList%3CArrayList%3CButton%3E%3E btnMarks;%0A    private NewsList newsList;%0A%0A    public AddMarksReadMoreWindowListener(NewsList newsList, ArrayList%3CArrayList%3CButton%3E%3E btnMarks) %7B%0A        this.btnMarks = btnMarks;%0A        this.newsList = newsList;%0A    %7D%0A%0A    @Override%0A    public void widgetDefaultSelected(SelectionEvent arg0) %7B%0A%0A    %7D%0A%0A    @Override%0A    public void widgetSelected(SelectionEvent e) %7B%0A%0A        ReadMoreWindow win = ReadMoreWindow.getReadMoreWindow();%0A        %0A        String newsMarks = %22%22;%0A        int pFlag = 0;  // %E8%8B%A5%E4%B8%BA1%E6%89%93%E5%8D%B0%22%7C%22%0A        for (ArrayList%3CButton%3E markGroupType : btnMarks) %7B%0A            for (Button btn : markGroupType) %7B%0A                if (btn.getSelection()) %7B%0A                    if (pFlag == 0) %7B%0A                        newsMarks += btn.getText();%0A                        btn.setSelection(false);%0A                        markGroupType.get(0).setSelection(true);%0A                        pFlag = 1;%0A                    %7D else %7B%0A                        newsMarks += %22%7C%22 + btn.getText();%0A                        btn.setSelection(false);%0A                        markGroupType.get(0).setSelection(true);%0A                    %7D%0A                %7D%0A            %7D%0A        %7D%0A        %0A        File file = new File(%22src/main/resources/newsmarks.xml%22);%0A        XMLWriter out = new XMLWriter(file);%0A        /*%0A        int lineId = newsSummaryList.getFocusIndex();%0A        newsSummaryList.setSelection(lineId + 1);%0A        */%0A        out.insertXml(newsMarks, newsList.getNewsItem(win.getLineId()).getDate().split(%22-%22)%5B0%5D, win.getLineId());%0A        %0A        %0A        win.setLineId(win.getLineId() + 1);%0A        win.setTitle(newsList.getNewsItem(win.getLineId()).getTitle());%0A        win.setDate(%22%E6%97%A5%E6%9C%9F%EF%BC%9A%22 + newsList.getNewsItem(win.getLineId()).getDate());%0A        String newsContent = newsList.getNewsItem(win.getLineId()).getContent();%0A        if (newsContent != null) %7B%0A            win.setContent(newsContent);%0A        %7D%0A        %0A//        ReadMoreWindow window = new ReadMoreWindow(newsList, lineId);%0A//        setLineId(lineId+1);%0A//        window.setBlockOnOpen(true);%0A//        window.open();%0A//%0A//        window.close();%0A        //Display.getCurrent().dispose();%0A        %0A    %7D%0A    %0A%0A%7D%0A

fix conflict