----- PerforceOT Developer Information -----
JBuilder 4 or above is required to extend the PerfroceOT library.
Import the Borland Opentools SDK library into the project.
Package Structure:
com.dafreels.opentools
Main.java Starting point for the opentool
PerforceActionProvider.java Used by JBuilder to register the PerforceMenu in the ProjectView
com.dafreels.opentools.actions
AddAction.java Opens selected file(s) for add
DeleteAction.java Opens selected file(s) for delete
EditAction.java Opens selected file(s) for edit
PerforceMenu.java The context menu
PreviewAction.java Executes a sync preview
ProjectStatusAction.java Displays the status of all the files in the JBuilder project. (Not working)
RevertAction.java Reverts a file
StatusAction.java Displays the status of selected file(s)
SubmitAction.java Displays a submit dialog box with the files from the default changelist.
SyncAction.java Executes a sync on the selected file(s) or directory
com.dafreels.opentolls.actions.ui
FileModel.java Used by the SubmitDialog for the file table.
SubmitDialog.java Similar to the submit dialog used by P4Win, but only works for the default changelist.
com.dafreels.opentools.command
CommandTool.java Executes p4 commands from the action classes
ProcessReader.java Thread used to read data from the p4 command
com.dafreels.opentools.properties
PerforceGroup.java Contains the properties used by the Perforce properties page.
PerforcePage.java The property page used in the project properties dialog to register Perforce specific properties.
PerforcePageFactory.java Used to generate the PerforcePage
Adding a new property
1) Add the property to the PerforceGroup class
2) Create a UI component to the PerforcePage class to allow the property
to be edited.
Adding a new Perforce menu option
1) Create a new class that extends com.borland.primetime.ide.BrowserAction
2) Add the new class to the PerforceMenu class