/* * * Perforce/JBuilder Opentool * Copyright (C) 2001-2002 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.properties; //Perforce VCS //JBuilder import com.borland.primetime.ide.Browser; import com.dafreels.vcs.command.PropertyInterface;//Perforce/JBuilder /** * * @author David Freels * @version 1.0 */ public final class JBuilderProperties implements PropertyInterface { /** Creates new JBuilderProperties */ public JBuilderProperties() { } public String getPort() { return PerforceGroup.PORT.getValue(Browser.getActiveBrowser().getActiveProject()); } public int getDebugLevel() { String tmp = PerforceGroup.DEBUGLEVEL.getValue(Browser.getActiveBrowser().getActiveProject()); if(tmp == null) return 0; return Integer.parseInt(tmp); } public String getUserName() { return PerforceGroup.USERNAME.getValue(Browser.getActiveBrowser().getActiveProject()); } public boolean debug() { String tmp = PerforceGroup.DEBUG.getValue(Browser.getActiveBrowser().getActiveProject()); return "true".equalsIgnoreCase(tmp); } public boolean showOutput() { String tmp = PerforceGroup.SHOWOUTPUT.getValue(Browser.getActiveBrowser().getActiveProject()); return "true".equalsIgnoreCase(tmp); } public String getExecutable() { return PerforceGroup.P4EXECUTABLE.getValue(Browser.getActiveBrowser().getActiveProject()); } /* public boolean addToSourceTab() { String tmp = PerforceGroup.ADDTOSOURCETAB.getValue(Browser.getActiveBrowser().getActiveProject()); return "true".equalsIgnoreCase(tmp); } */ public String getPassword() { //Need implement this feature return null; } public String getClientSpec() { return PerforceGroup.CLIENTSPEC.getValue(Browser.getActiveBrowser().getActiveProject()); } public boolean askForEditChangeList() { return "true".equalsIgnoreCase(PerforceGroup.ASKFORCHANGELIST.getValue(Browser.getActiveBrowser().getActiveProject())); } public boolean addToToolbar() { return "true".equalsIgnoreCase(PerforceGroup.ADDTOTOOLBAR.getValue(Browser.getActiveBrowser().getActiveProject())); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 4090 | David Freels |
Fixed bug where paths with spaces would not work. Also checked in new code or JBuilderX. |
||
#5 | 2994 | Mark E. Ackerman |
changed for version 1.0.7. Added display of submitted changelists, redo sync, updated icons, misc bug fixes and improvements. |
||
#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/properties/JBuilderProperties.java | |||||
#1 | 1428 | David Freels | New packaging. |