|
Project: stp | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectcom.ibm.rational.stp.client.samples.CcBrowser
public class CcBrowser
An extension of the Browser example demonstrating application of ClearCase operations to the displayed resource
| Field Summary | |
|---|---|
private static String |
BAR
The line of text used to separate the Element Rules from the Load Rules in a Config Spec. |
private static String |
CHECKIN_OP
|
private static String |
CHECKOUT_OP
|
private static String |
CONTROL_OP
|
private static String |
DELETE_OP
|
private static String |
EDIT_OP
|
private static String |
EDITCS_OP
|
private static String[] |
fileOps
The operations supported on Files |
private static String[] |
folderOps
The operations supported on Folders |
private static String |
LOAD_OP
|
(package private) com.ibm.rational.wvcm.stp.StpResource |
m_resource
A proxy for the resource being displayed by this Browser window |
private static String |
MKACT_OP
|
private static String |
MKDIR_OP
|
private static String |
MKFILE_OP
|
private static String |
MKSTREAM_OP
|
private static String |
MKVIEW_OP
|
private static String[] |
otherOps
The operations supported on all resources |
private static String |
REFRESH_OP
|
private static String |
UNCHECKOUT_OP
|
private static String |
VIEWCS_OP
|
private static String[] |
viewOps
The operations supported on views |
| Constructor Summary | |
|---|---|
CcBrowser(com.ibm.rational.wvcm.stp.StpResource res)
|
|
| Method Summary | |
|---|---|
void |
execute(Object op,
BrowserDataModel model)
Supports the operations implemented in the 7.1 CM API VOB properties Get CQ CqUserDb from Project (Translate CLEARQUEST_USER_DB property from CqUserDbRef to CqUserDb (ref.getUserDb)) Create Stream(parent stream, is-read-only, is-integration-stream) Create Activity(headline, comment) Get CQ record for an activity (Translate MY_ACTIVITY_LIST to Record list via CqRecordRef.getRecord().) |
(package private) String[] |
getArgs(String[] names)
Obtains a list of parameter values from the user. |
(package private) void |
getArgs(String[] names,
String[] result)
Displays a list of parameters to the user with default values and then allows the user to add or modify values. |
Vector<String> |
getList()
Returns the operations supported by the type of ClearCase resource being displayed in this window. |
static void |
main(String[] args)
Starts the ClearCase version of the Browser using the CcBrower class as the source for resource operations. |
(package private) CcActivity |
mkActivity(javax.wvcm.Resource context)
Creates an activity based on input from the user. |
(package private) CcFile |
mkDir(javax.wvcm.Resource parent)
Creates a new directory after obtaining its name from the user |
(package private) CcFile |
mkFile(javax.wvcm.Resource dir)
Creates a new file after getting its name from the user. |
(package private) CcStream |
mkStream(javax.wvcm.Resource context)
Creates a new UCM Stream after obtaining parameters from user. |
(package private) CcView |
mkView(javax.wvcm.Resource context)
Creates a ClearCase view after getting creation parameters from the user. |
private void |
showConfigSpec(CcView view,
boolean allowEdit)
Displays the Config Spec for a specified ClearCase View and, optionally, allows the user to edit it. |
(package private) void |
showResource(String name,
CcResource res)
A convenience method for invoking Browser.showResource on a given resource only if it is not null. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final String BAR
private static final String CHECKOUT_OP
private static final String CHECKIN_OP
private static final String UNCHECKOUT_OP
private static final String CONTROL_OP
private static final String REFRESH_OP
private static final String LOAD_OP
private static final String EDIT_OP
private static final String DELETE_OP
private static final String VIEWCS_OP
private static final String EDITCS_OP
private static final String MKDIR_OP
private static final String MKFILE_OP
private static final String MKVIEW_OP
private static final String MKACT_OP
private static final String MKSTREAM_OP
private static final String[] folderOps
private static final String[] fileOps
private static final String[] viewOps
private static final String[] otherOps
com.ibm.rational.wvcm.stp.StpResource m_resource
| Constructor Detail |
|---|
public CcBrowser(com.ibm.rational.wvcm.stp.StpResource res)
| Method Detail |
|---|
public Vector<String> getList()
getList in interface BrowserDataModel.OperationsBrowserDataModel.Operations.getList()
public void execute(Object op,
BrowserDataModel model)
execute in interface BrowserDataModel.Operationsop - One of the operations supplied in the list returned by
resourceOperations.
private void showConfigSpec(CcView view,
boolean allowEdit)
throws javax.wvcm.WvcmException
view - The Workspace proxy for the ClearCase view whose ConfigSpec is
to be displayed. Must not be null and must define the
CONFIG_SPEC property.allowEdit - If true, the displayed Config Spec is made editable and a
button is added to the window for the user to click to commit
the modified Config Spec.
javax.wvcm.WvcmException - thrown if the required properties are not defined by the
given proxy.
void showResource(String name,
CcResource res)
throws javax.wvcm.WvcmException
Browser.showResource on a given resource only if it is not null.
name - A brief description of the resource type for inclusion in
the title of window that will be used to display the resourceres - The resource to be displayed. May be null.
javax.wvcm.WvcmException - If there are problems viewing a non-null resource.CcFile mkFile(javax.wvcm.Resource dir)
dir - The directory in which to create the new file.
CcFile mkDir(javax.wvcm.Resource parent)
parent - The default context in which the directory will be
constructed. May be changed by user.
CcView mkView(javax.wvcm.Resource context)
context - The Default context in which the view is to be created.
May be modified by the user.
CcStream mkStream(javax.wvcm.Resource context)
context - The default context in which to create the new UCM Stream.
May be modified by the user.
CcActivity mkActivity(javax.wvcm.Resource context)
context - The context in which the activity will be created, which
may be ignored by the user.
void getArgs(String[] names,
String[] result)
names - The names of the parameters to be obtained from the user.result - On input, the default values to display in the dialog;
on output, contains the values entered by the user.String[] getArgs(String[] names)
names - The names of the parameters that user is supposed to provide.
public static void main(String[] args)
throws Exception
args - Not used in this application
Exception
|
Generated Sat 25-Oct-2008 11:23 PM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||