Hacking_Perforce.txt #1

  • //
  • guest/
  • lester_cheung/
  • wiki-archive/
  • mediawiki/
  • Hacking_Perforce.txt
  • View
  • Commits
  • Open Download .zip Download (2 KB)
===Extending P4V===
* [http://www.perforce.com/perforce/doc.current/manuals/p4jsapi/01_p4jsapi.html P4V javascript manual]
* [http://swarm.workshop.perforce.com/files/public/perforce/p4jsapi/examples P4V javascript sample code]
* [http://www.perforce.com/perforce/doc.current/manuals/p4v/custom_tools.html Custom tools documentation]
* [https://plus.google.com/108095999024299214978/posts/JgDNjDpXuAk Simple example custom tool to create a P4Web link to a depot file]

====To Use JavaScript extensions locally without a server defined central settings file====

# Find your P4V preferences
#* On OS X this will be in ~/Library/Preferences/com.perforce.p4v
#* On Windows this will be the .p4qt directory in your user folder
# Open ApplicationSettings.xml and add:
#: <String varName="DefaultCentralSettings">file:///path/to/your/local/central/settings/file</String>
#:as a child of:
#: <PropertyList varName="ApplicationSettings" IsManaged="TRUE">
# Enable applets from the P4V preferences
# Create your central settings file in the location you specified with the desired content
# Restart P4V

===Extending Swarm===
* [http://swarm.workshop.perforce.com/projects/matt-attaway-swarm-demo-extensions/files/main Swarm extension sample code and development environment]
* [http://www.perforce.com/blog/130924/swarm-hotkeys-hurry Swarm hotkey extension by Allan Yu]
* [http://swarm.workshop.perforce.com/files/guest/allan_yu/swarm_product_tour Swarm product tour extension by Allan Yu]
* [http://www.perforce.com/blog/130613/hack-hive-perforce-swarm Generating events in the Swarm activity feed]
# Change User Description Committed
#1 13792 Lester Cheung Archive of wiki.workshop.perforce.com in raw (mediawiki) and markdown formats.