| 1 |
#include "RustWorkspace.hpp" |
| 2 |
|
| 3 |
#include "clFileSystemWorkspace.hpp" |
| 4 |
#include "file_logger.h" |
| 5 |
#include "fileextmanager.h" |
| 6 |
|
| 7 |
RustWorkspace::RustWorkspace() { SetWorkspaceType("Rust"); } |
| 8 |
|
| 9 |
RustWorkspace::~RustWorkspace() {} |
| 10 |
|
| 11 |
wxString RustWorkspace::GetFileName() const { return clFileSystemWorkspace::Get().GetFileName(); } |
| 12 |
wxString RustWorkspace::GetDir() const { return clFileSystemWorkspace::Get().GetDir(); } |
| 13 |
wxString RustWorkspace::GetFilesMask() const { return clFileSystemWorkspace::Get().GetFilesMask(); } |
| 14 |
wxFileName RustWorkspace::GetProjectFileName(const wxString& projectName) const |
| 15 |
{ |
| 16 |
wxUnusedVar(projectName); |
| 17 |
return wxFileName(); |
| 18 |
} |
| 19 |
|
| 20 |
void RustWorkspace::GetProjectFiles(const wxString& projectName, wxArrayString& files) const |
| 21 |
{ |
| 22 |
wxUnusedVar(projectName); |
| 23 |
wxUnusedVar(files); |
| 24 |
} |
| 25 |
wxString RustWorkspace::GetProjectFromFile(const wxFileName& filename) const { return wxEmptyString; } |
| 26 |
void RustWorkspace::GetWorkspaceFiles(wxArrayString& files) const |
| 27 |
{ |
| 28 |
clFileSystemWorkspace::Get().GetWorkspaceFiles(files); |
| 29 |
} |
| 30 |
wxArrayString RustWorkspace::GetWorkspaceProjects() const { return {}; } |
| 31 |
|
| 32 |
bool RustWorkspace::IsBuildSupported() const { return true; } |
| 33 |
bool RustWorkspace::IsProjectSupported() const { return false; } |
| 34 |
|
| 35 |
wxString RustWorkspace::GetName() const { return clFileSystemWorkspace::Get().GetName(); } |
| 36 |
|
| 37 |
void RustWorkspace::SetProjectActive(const wxString& name) { wxUnusedVar(name); } |
| 38 |
|
| 39 |
wxString RustWorkspace::GetDebuggerName() const { return clFileSystemWorkspace::Get().GetDebuggerName(); } |
| 40 |
|
| 41 |
clEnvList_t RustWorkspace::GetEnvironment() const { return clFileSystemWorkspace::Get().GetEnvironment(); } |