Skip to content

Commit 5627ca2

Browse files
committed
solve conflicts
merge branch 'fr43nk-dev/189-overhaul-internal-class-structure'
2 parents 8876079 + 6ff1df8 commit 5627ca2

32 files changed

+761
-974
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@
368368
{
369369
"command": "extension.ccVersionTree",
370370
"group": "navigation@108",
371-
"when": "editorTextFocus && !inOutput && vscode-clearcase:enabled && resourcePath not in vscode-clearcase:ViewPrivateObjects && vscode-clearcase:editor == true"
371+
"when": "vscode-clearcase:enabled && resourcePath not in vscode-clearcase:ViewPrivateObjects && vscode-clearcase:editor == true"
372372
}
373373
],
374374
"editor/context": [
@@ -454,7 +454,7 @@
454454
},
455455
{
456456
"command": "extension.ccOpenResource",
457-
"when": "scmProvider == cc && vscode-clearcase:enabled",
457+
"when": "scmProvider == cc && vscode-clearcase:enabled && resourcePath not in vscode-clearcase:ViewPrivateObjects",
458458
"group": "cc_file"
459459
},
460460
{

src/ccAnnotateController.ts src/annotation/annotation-controller.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ import {
66
TextEditorDecorationType,
77
window,
88
} from "vscode";
9-
import { CCConfigHandler } from "./ccConfigHandler";
10-
import { CCConfiguration } from "./ccConfiguration";
11-
import { IDisposable } from "./model";
9+
import { IDisposable } from "../model";
10+
import { Configuration } from "../configuration/configuration";
11+
import { ConfigurationHandler } from "../configuration/configuration-handler";
1212

13-
export class CCAnnotationController implements IDisposable {
13+
export class AnnotationController implements IDisposable {
1414
private mDecorationType: TextEditorDecorationType;
1515
private mIsActive = false;
16-
private mConfiguration: CCConfiguration;
16+
private mConfiguration: Configuration;
1717
private mDisposables: IDisposable[] = [];
1818

19-
constructor(private editor: TextEditor, private configHandler: CCConfigHandler) {
19+
constructor(private editor: TextEditor, private configHandler: ConfigurationHandler) {
2020
this.mDisposables.push(window.onDidChangeActiveTextEditor((editor) => this.onActiveEditorChange(editor)));
2121
this.mDisposables.push(this.configHandler.onDidChangeConfiguration(() => this.onConfigurationChanged()));
2222
const ro: DecorationRenderOptions = {

src/ccAnnotateLens.ts src/annotation/annotation-lens.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CodeLens, Range, TextDocument } from "vscode";
22

3-
export class CCAnnotateLens extends CodeLens {
3+
export class AnnotationLens extends CodeLens {
44
constructor(public document: TextDocument, range: Range) {
55
super(range);
66
}

src/ccIgnoreHandler.ts

-104
This file was deleted.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export interface ClearcaseCleartoolIf {
2+
executable(val?: string | undefined): string;
3+
credentials(): string[];
4+
}

src/clearcase/clearcase-cleartool.ts

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import { ClearcaseCleartoolIf } from "./clearcase-cleartool-if";
2+
3+
export class ClearcaseCleartool implements ClearcaseCleartoolIf {
4+
private mUsername: string;
5+
private mPassword: string;
6+
private mAddress: string;
7+
private mExecutable: string;
8+
9+
constructor(u = "", p = "", a = "", e = "") {
10+
this.mAddress = a;
11+
this.mPassword = p;
12+
this.mUsername = u;
13+
this.mExecutable = "";
14+
if (e !== "") {
15+
this.executable(e);
16+
} else {
17+
this.executable("cleartool");
18+
}
19+
}
20+
21+
executable(val?: string | undefined): string {
22+
if (val !== undefined) {
23+
this.mExecutable = val;
24+
}
25+
return this.mExecutable;
26+
}
27+
28+
credentials(): string[] {
29+
if (this.mAddress !== "") {
30+
return ["-lname", this.mUsername, "-password", this.mPassword, "-server", this.mAddress];
31+
}
32+
return [];
33+
}
34+
}

0 commit comments

Comments
 (0)