Skip to content

Commit

Permalink
#26 React Version Issue
Browse files Browse the repository at this point in the history
Main issue is related with using of the platfrom general rules.
Proper usage should be as following lines:
* #dbcWidget
* #yarn prepare
* #yarn start:browser

Co-Authored-By: Didar Nur Bilgin <[email protected]>
  • Loading branch information
RagipSelcuk and didarbilgin committed Aug 10, 2024
1 parent 8cbf6b9 commit 23844f0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions FundTree/src/browser/dbcWdgt/dbc-file-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class DbcFileCommandHandler implements SingleUriCommandHandler{
const targetUri = dir.resource.resolve('dbc_template.dbc');
const preliminaryFileUri = FileSystemUtils.generateUniqueResourceURI(dir, targetUri, false);
this.logger.info('Target Uri Address: ',targetUri);
this.logger.info('Preliminary File Uri: ',preliminaryFileUri);
this.logger.info('PreliminaryAAAAAAAAAa File Uri: ',preliminaryFileUri);

let dbcContent = 'string';
if(extensionUri)
Expand All @@ -86,7 +86,7 @@ export class DbcFileCommandHandler implements SingleUriCommandHandler{
if(extensionUri.path.ext == '.dbc')
{

this.logger.info('File dir',extensionUri.toString(true));
this.logger.info('File directory',extensionUri.toString(true));

// read the dbc as a string value
dbcContent = (await this.fileService.read(extensionUri)).value;
Expand Down
2 changes: 1 addition & 1 deletion FundTree/src/browser/dbcWdgt/dbc-file-contribution.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ILogger, QuickInputService, SelectionService } from "@theia/core";
import { CommonCommands, Tree } from "@theia/core/lib/browser";
import { CommonCommands } from "@theia/core/lib/browser";
import { CommandContribution, CommandRegistry } from "@theia/core/lib/common/command";
import { MAIN_MENU_BAR, MenuContribution, MenuModelRegistry } from "@theia/core/lib/common/menu";
import { inject, injectable } from "@theia/core/shared/inversify";
Expand Down
8 changes: 4 additions & 4 deletions FundTree/src/browser/parser/jsonToDbc.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { ILogger } from "@theia/core";
import { FileService } from "@theia/filesystem/lib/browser/file-service";
//import { FileService } from "@theia/filesystem/lib/browser/file-service";
import { inject, injectable } from "inversify";
import DbcUpdateData from "../update/dbc-update-data";
//import DbcUpdateData from "../update/dbc-update-data";

@injectable()
export default class JsonToDbc{
constructor(
@inject(ILogger) private readonly logger: ILogger,
@inject(FileService) private readonly fileService: FileService
// @inject(FileService) private readonly fileService: FileService
) {}
getJsonData(){
this.logger.info("ARE WE IN?")
const jsonData= DbcUpdateData.jsonData;
// const jsonData= DbcUpdateData.jsonData;


}
Expand Down
2 changes: 1 addition & 1 deletion FundTree/src/browser/update/dbc-update-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default class DbcUpdateData {
}

getLabelData(){
const jsonToDbc=new JsonToDbc (this.logger,this.fileService);
const jsonToDbc=new JsonToDbc (this.logger);

//get all the nodes
const nodeFactory=new DbcNodeFactory(this.logger);
Expand Down

0 comments on commit 23844f0

Please sign in to comment.