This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37190

Summary: Add a command property, that will disable the command on non-locked files
Product: obsolete Reporter: Martin Entlicher <mentlicher>
Component: vcsgenericAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Martin Entlicher 2003-11-13 09:56:38 UTC
Some version control system requires to have the
file locked in order to be able to check in the
file into the repository.

There is currently no mechanism for this, because
it's possible to only enable/disable commands by
it's status, not locker attribute.
Comment 1 Martin Entlicher 2003-11-13 09:58:10 UTC
Scheduling for 4.0. This is necessary for PVCS, VSS (possibly
ClearCase).
Comment 2 Martin Entlicher 2003-11-13 17:42:36 UTC
The basis implemented in vcscore module:

Checking in commands/CommandCustomizationSupport.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/commands/CommandCustomizationSupport.java,v 
<--  CommandCustomizationSupport.java
new revision: 1.15; previous revision: 1.14
done
Checking in commands/VcsCommand.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/commands/VcsCommand.java,v 
<--  VcsCommand.java
new revision: 1.36; previous revision: 1.35
done
Processing log script arguments...
More commits to come...
Checking in VcsFileSystem.java;
/cvs/vcscore/src/org/netbeans/modules/vcscore/VcsFileSystem.java,v 
<--  VcsFileSystem.java
new revision: 1.237; previous revision: 1.236
done

And an expert property is defined for it:
Checking in Bundle.properties;
/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/commands/Bundle.properties,v 
<--  Bundle.properties
new revision: 1.41; previous revision: 1.40
done
Checking in CommandNode.java;
/cvs/vcsgeneric/src/org/netbeans/modules/vcs/advanced/commands/CommandNode.java,v 
<--  CommandNode.java
new revision: 1.42; previous revision: 1.41
done