/* * * Perforce/JBuilder Opentool * Copyright (C) 2001 David Freels * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; * version 2.1 of the License. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ package com.dafreels.opentools; //Perforce VCS //JBuilder import com.borland.primetime.ide.Browser; import com.borland.primetime.ide.Message; import com.dafreels.vcs.command.MessageFormatter;//JBuilder /** * * @author David Freels * @version 1.0 * @version 1.1 added support for Error messages */ public final class MessageWriter { private static MessageWriter m_writer = new MessageWriter(); /** Creates new MessageWriter */ private MessageWriter() { } public static void outputMessages(MessageFormatter formatter) { String message = ""; while( (message = formatter.getNextMessage()) != null) { Browser.getActiveBrowser().getMessageView().addMessage(Main.PERFORCEMESSAGES, new Message(message)); } } /** * output the contents of the error stream. * @param formatter the formatter that holds the contents of the error stream * @author Mark Ackerman */ public static void outputErrorMessages(MessageFormatter formatter) { String message = ""; Message errorMsg; while( (message = formatter.getNextErrorMessage()) != null) { errorMsg = new Message(message); errorMsg.setForeground(java.awt.Color.red); Browser.getActiveBrowser().getMessageView().addMessage(Main.PERFORCEMESSAGES, errorMsg); } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 4090 | David Freels |
Fixed bug where paths with spaces would not work. Also checked in new code or JBuilderX. |
||
#4 | 1640 | Mark E. Ackerman |
added diff action, unlock action, status dialog, file history with detail, fixed stretching of submit dialog. added diff to submit dialog. added icons to the popup menu. added status line message for most actions. added confirm to revert action. added displaying of error messages from p4 command. added About Open tool support. added option on Perforce Page to not display output from p4 command. added version info on the PerforcePage. some other misc fixes and changes. changed version number to 0.9.3 |
||
#3 | 1445 | David Freels | Refreshing source tree. | ||
#2 | 1442 | David Freels | Refreshing source tree. | ||
#1 | 1429 | David Freels | New packaging and bug fixes. | ||
//guest/david_freels/p4ot/src/com/dafreels/opentools/MessageWriter.java | |||||
#1 | 1428 | David Freels | New packaging. |