Perforce + Code Collaborator as an External Tool

So I got PHPStorm + Perforce + Code Collaborator working together as an external tool, but I want to implement it a bit cleaner in PHPStorm.  I have 3 questions/statements that would help me do that.



1) I had to hard code the Perforce setting in the external tool, but I want to be able to just use the PHPStorm setting for configurations.

Here is my perforce settings (I can change over to a P4CONFIG file if needed):
perforce.png

Here is the external tools settings for Code Collaborator:
external_tool.png
I want to change the "-p4user example" to -p4user <use whatever is in PHPStorm>. Same with client and port.

Is there a way to do that?


2) I want to add the external tool to the context menu of a change list

changelist.png
So when I right click on the "Checkpoint" change list the "Code Collaborator" tools shows up on it.  Is that possible?

3)  Is there a way to change the label of the prompt for the input?
prompt.png
I'd like to change the label from "Enter parameters" to something like "Enter changelist number"


Thanks for the help in advance.


PostScript:

Those arguments are "--pause-on-error --scm perforce --p4port example.example.com:1666 --p4user example --p4client example addchangelist ask $Prompt$" if someone needs a copy and paste of it.

2 comments

I have a question to add to that... is there way to reference the active VCS changelist instead of prompting the user?

0

Hi,

such things are possible from within a plugin, unfortunately not via any UI configuration. There was a discussion about Collaborator support plugin, you might want to ask there on the current status: http://devnet.jetbrains.com/thread/291140

Peter

0

Please sign in to leave a comment.