CN107544777B - Workspace control method and apparatus for integrated development environment - Google Patents

Workspace control method and apparatus for integrated development environment Download PDF

Info

Publication number
CN107544777B
CN107544777B CN201610500086.3A CN201610500086A CN107544777B CN 107544777 B CN107544777 B CN 107544777B CN 201610500086 A CN201610500086 A CN 201610500086A CN 107544777 B CN107544777 B CN 107544777B
Authority
CN
China
Prior art keywords
item
file
project
workspace
entry
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610500086.3A
Other languages
Chinese (zh)
Other versions
CN107544777A (en
Inventor
李明路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing duxiaoman Youyang Technology Co.,Ltd.
Original Assignee
Shanghai Youyang New Media Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Youyang New Media Information Technology Co ltd filed Critical Shanghai Youyang New Media Information Technology Co ltd
Priority to CN201610500086.3A priority Critical patent/CN107544777B/en
Publication of CN107544777A publication Critical patent/CN107544777A/en
Application granted granted Critical
Publication of CN107544777B publication Critical patent/CN107544777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a workspace control method and apparatus for an integrated development environment. One embodiment of the method comprises: acquiring a workspace to be loaded and a project name of at least one project to be loaded; for each item name in the item names of the at least one item, acquiring an item matched with the item name, wherein the item comprises: project names, entry files and service files; loading the workspace in an integrated development environment; for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace; detecting a project selection operation of a user on a project loaded in the workspace; in response to detecting the item selection operation, treating the item to which the item selection operation is directed as a current item of the workspace. The implementation mode improves the coding efficiency in the collaborative development process of different teams.

Description

Workspace control method and apparatus for integrated development environment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for controlling a workspace in an integrated development environment.
Background
With the rapid development of computer technology and internet technology, complex client applications with multiple functions have emerged. With the increase of functions, the code amount and the maintenance difficulty of the complex client application are increased, and the cooperative development of medium and large-sized teams is not facilitated.
At present, in the aspect of development cooperation and business requirements, the industry does not have a solution which can not only meet the business requirements of different product lines, but also can well meet the cooperative development of different teams.
Disclosure of Invention
It is an object of the present application to propose an improved workspace control method and apparatus for an integrated development environment to solve the technical problems mentioned in the background section above.
In a first aspect, the present application provides a workspace control method for an integrated development environment, the method comprising: acquiring a workspace to be loaded and a project name of at least one project to be loaded; for each item name in the item names of the at least one item, acquiring an item matched with the item name, wherein the item comprises: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed; loading the workspace in an integrated development environment; for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace; detecting a project selection operation of a user on a project loaded in the workspace; in response to detecting the item selection operation, treating the item to which the item selection operation is directed as a current item of the workspace.
In a second aspect, the present application provides a workspace control device for an integrated development environment, the device comprising: the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is configured to acquire a workspace to be loaded and a project name of at least one project to be loaded; a second obtaining unit configured to obtain, for each of the item names of the at least one item, an item that matches the item name, where the item includes: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed; a first loading unit configured to load the workspace in an integrated development environment; the second loading unit is configured to load a project name of the project, an entry file of the project and a service file of the project in the workspace for each of the acquired at least one project; the first detection unit is used for detecting the item selection operation of a user on the items loaded in the workspace; a current item determination unit configured to, in response to detecting the item selection operation, take an item to which the item selection operation is directed as a current item of the workspace.
According to the working space control method and device for the integrated development environment, the working space to be loaded and at least one project to be loaded are obtained, then the working space and the project name, the entry file and the service file of each project in the at least one project are loaded in the integrated development environment, finally, the project targeted by the project selection operation is used as the current project of the working space in response to the detection of the project selection operation of a user on the project loaded in the working space, and the coding efficiency in the collaborative development process of different teams is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a workspace control method for an integrated development environment according to the application;
FIG. 3 is a flow diagram of yet another embodiment of a workspace control method for an integrated development environment according to the application;
FIG. 4 is a schematic block diagram of one embodiment of a workspace control device for an integrated development environment according to the application;
fig. 5 is a schematic structural diagram of a computer system suitable for implementing a terminal device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the workspace control method for an integrated development environment or workspace control device for an integrated development environment of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, a network 103, and a server 104. The network 103 serves as a medium for providing communication links between the terminal devices 101, 102 and the server 104. Network 103 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102 to interact with the server 104 over the network 103 to receive or send messages or the like. Various client applications, such as an integrated development environment type application, may be installed on the terminal devices 101 and 102.
The terminal devices 101, 102 may be various electronic devices having a display screen and a processor, including but not limited to laptop portable computers, desktop computers, and the like.
The server 104 may be a server that provides various services, such as a server that provides support for an integrated development environment type application displayed on the terminal devices 101, 102. The server 104 may analyze and perform processing such as analysis on data such as a received acquisition request for acquiring an item matching the item name, and feed back a processing result (e.g., an entry file and a service file) to the terminal device.
It should be noted that the workspace control method for the integrated development environment provided in the embodiment of the present application is generally executed by the terminal device 101 or 102, and accordingly, the workspace control device for the integrated development environment is generally disposed in the terminal device 101 or 102.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a workspace control method for an integrated development environment is shown in accordance with the present application. The workspace control method for the integrated development environment comprises the following steps:
step 201, obtaining a workspace to be loaded and a project name of at least one project to be loaded.
An Integrated Development Environment (IDE) is an application program for providing a program Development Environment, and generally includes a code editor, a compiler, a debugger, and a graphical user interface tool. The integrated development software service set integrates a code compiling function, an analyzing function, a compiling function, a debugging function and the like. All software or software suite (group) with the characteristic can be called an integrated development environment. Such as Microsoft Visual Studio series, Borland's C + + Builder, Delphi series, etc.
The integrated development environment manages the projects therein using descriptive files called "workspaces," which may load multiple projects by reference. It should be noted that this descriptive definition differs according to the operating system. The project name, the entry file and the business file of the project referenced in the workspace are recorded in the form of key value pairs. The purpose of loading a project can be achieved by modifying the relevant key-value pairs on the descriptive file of the workspace.
In this embodiment, an electronic device (e.g., a terminal device shown in fig. 1) on which the workspace control method for an integrated development environment operates may acquire a project name of a workspace to be loaded and at least one project to be loaded by receiving instruction information of a user or acquire a project name of a workspace to be loaded and at least one project to be loaded through a preset configuration file. The workspace can be a newly created empty workspace or an existing workspace.
In some optional implementations of this embodiment, the electronic device may obtain the workspace to be loaded by: firstly, detecting a workspace establishment request of a user for establishing a workspace, for example, detecting whether the user clicks a new workspace button in an integrated development environment or whether the user inputs a shortcut key which is preset in the integrated development environment and used for triggering operation of the new workspace; then, in response to detecting the workspace creating request, creating a workspace; and finally, acquiring the created working space as the working space to be loaded.
In some optional implementation manners of this embodiment, the electronic device may further obtain the workspace to be loaded by: firstly, detecting a workspace selection operation of a user on a workspace, for example, detecting a workspace selection operation when the user opens the workspace; then, in response to detecting the above-mentioned workspace selection operation, acquiring a workspace to which the workspace selection operation is directed as a workspace to be loaded.
In some optional implementation manners of this embodiment, the electronic device may obtain the project name of the at least one project to be loaded by: firstly, detecting the item name selection operation of the user on the preset item name, for example, providing a selection interface, displaying all selectable item names on the interface, and receiving the selection of the user; and then, in response to detecting the item name selection operation, acquiring at least one item name for which the item name selection operation is directed as an item name of at least one item to be loaded.
In some optional implementations of this embodiment, the electronic device may obtain the workspace to be loaded by: firstly, acquiring a configuration file, wherein the configuration file records type information of a workspace to be created, for example, the workspace type under an ios system is a file with a suffix name of ". xw"; then, creating a working space according to the type information; and finally, acquiring the created working space as the working space to be loaded.
In some optional implementations of this embodiment, the electronic device may obtain the workspace to be loaded by: firstly, acquiring a configuration file, wherein a storage path of a working space to be loaded is recorded in the configuration file; and then, acquiring the working space to be loaded according to the storage path.
In some optional implementation manners of this embodiment, the electronic device may further obtain a project name of at least one project to be loaded by: and acquiring at least one project name recorded in the configuration file as the project name of at least one project to be loaded, wherein the configuration file records the at least one project name.
Step 202, for each item name in the item names of at least one item, acquiring an item matched with the item name.
In this embodiment, the electronic device may acquire, for each of the item names of the at least one item, an item that matches the item name. Here, the items include: the system includes a project name, an entry file and a business file, wherein the entry file is a source code file containing a main function (e.g., cpp file containing a main function), and the business file is a source code file not containing a main function (e.g., cpp file not containing a main function) or a binary file that cannot be directly executed (e.g., dll file that cannot be directly executed).
In some optional implementation manners of this embodiment, the electronic device may obtain an entry file and a service file of an item matching the item name according to whether a folder matching the item name exists locally.
In some optional implementations of this embodiment, if a folder matching the item name exists locally, it indicates that the item is a locally existing item or the item is an item that has been downloaded from a server to the local, an entry file and a service file in the folder matching the item name are obtained as an entry file and a service file of the item matching the item name, where the service file is a source code file that does not include a main function or a binary file that cannot be directly executed.
In some optional implementations of this embodiment, if there is no folder matching the item name locally, it indicates that the item to be loaded is not a locally owned item, and an acquisition request for acquiring the item matching the item name needs to be first sent to the server; then, receiving an entry file and a service file of an item matched with the item name from the server, then locally establishing a folder matched with the item name according to the item name of the item, and finally storing the entry file and the service file matched with the item name into the folder matched with the item name, wherein the service file is a binary file which cannot be directly executed. Here, in order to ensure that the code content is not leaked, the service files received from the server are all binary files that cannot be executed, and cannot be source code files.
Step 203, loading the working space in the integrated development environment.
In this embodiment, the electronic device may load the workspace in the integrated development environment after acquiring the workspace to be loaded and the at least one project. By way of example, the names of the above workspaces may be displayed in an integrated development environment.
And step 204, for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace.
In this embodiment, after the electronic device has loaded the workspace in the integrated development environment, for each of the acquired at least one project, the project name of the project, the entry file of the project, and the service file may be loaded in the workspace. As an example, the project name, the entry file name information, and the service file name information of the project may be displayed in a workspace loaded in the integrated development environment.
Step 205, detecting the item selection operation of the user to the item loaded in the workspace, and if the item selection operation is detected, going to step 206.
In this embodiment, the electronic device may detect a user's item selection operation on an item loaded in the workspace, and if the user's item selection operation is detected, go to step 206. As an example, the item selection operation may be a mouse click or double click operation by the user on the item loaded in the workspace described above.
And step 206, in response to the detection of the item selection operation, taking the item to which the item selection operation is directed as the current item of the workspace.
In this embodiment, the electronic device may regard the item to which the item selection operation is directed as the current item of the workspace in response to detecting the item selection operation. Since there may be more than one project in the loaded workspace in the integrated development environment, but only the source code file in one project can be edited at the same time, the project selected by the user needs to be the current project of the workspace.
According to the method provided by the embodiment of the application, the working space to be loaded and at least one project to be loaded are obtained, then the working space and the project name, the entry file and the service file of each project in the at least one project are loaded in the integrated development environment, and finally the project targeted by the project selection operation is used as the current project of the working space in response to the detection of the project selection operation of the user on the project loaded in the working space, so that the coding efficiency in the collaborative development process of different teams is improved.
With further reference to FIG. 3, a flow 300 of yet another embodiment of a workspace control method for an integrated development environment is illustrated. The process 300 of the workspace control method for an integrated development environment includes the steps of:
step 301, obtaining a workspace to be loaded and a project name of at least one project to be loaded.
Step 302, for each item name of at least one item, acquiring an item matched with the item name.
Step 303, loading the working space in the integrated development environment.
And step 304, for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace.
Step 305, detecting the item selection operation of the user on the item loaded in the workspace, and if the operation is detected, going to step 206.
Step 306, in response to detecting the item selection operation, taking the item targeted by the item selection operation as the current item of the workspace.
The steps 301 to 306 are substantially the same as the steps 201 to 206, and are not described herein again.
Step 307, setting the processing state of the business file in the project loaded in the workspace except the current project to be an unprocessed state.
In this embodiment, after determining the current project, the electronic device may set a processing state of a service file in a project other than the current project, which is loaded in the workspace, to an unhandled state. Here, the non-processable state is: non-modifiable, non-savable, and non-compilable. In this way, the business files in the projects loaded in the workspace are all in an unprocessed state except the current project, so that only the business files in the current project can be modified, saved or compiled.
In some optional implementation manners of this embodiment, the electronic device may set a processing state of the service file according to a file type of the service file of the current project. Here, the file type includes a source code file and a binary file.
In some optional implementations of this embodiment, if the service file of the current project is a source code file, the electronic device may set a processing state of the service file to a processable state. Here, the processable state includes at least one of: can be modified, saved and compiled.
In some optional implementation manners of this embodiment, if the service file of the current project is a binary file, the electronic device may set the processing state of the service file to be an unprocessed state.
Step 308, detecting the entry file selection operation of the user on the entry file of the project loaded in the workspace.
In this embodiment, the electronic device may detect a user's entry file selection operation on an entry file of a project loaded into the workspace. For example, the portal file selection operation may be a mouse click or double click operation of the user on the file name of the portal file of the item loaded in the workspace described above.
Step 309, in response to detecting the portal file selection operation, detecting the operation of the user on the workspace.
In this embodiment, the electronic device may detect an operation performed on the workspace by a user after detecting an entry file selection operation. For example, the running operation may be that a user clicks a preset running button in the integrated development environment, or that the user inputs a shortcut key preset in the integrated development environment and capable of triggering the running operation.
Step 310, in response to detecting the operation, taking the entry file corresponding to the entry file selection operation as an entry item, compiling the entry file of each item in the items loaded in the workspace and the source code file in the service file, and operating the compiled workspace.
In this embodiment, after detecting the operation, the electronic device may take a project in which the entry file corresponding to the entry file selection operation is located as an entry project, compile an entry file of each project in the projects loaded in the workspace and a source code file in the service file, and operate the compiled workspace. Wherein, the entry item is used for indicating the above-mentioned workspace runtime to start execution from the entry file of the entry item. Therefore, the electronic equipment can edit, save, compile and run the service file with the local source code in the integrated development environment, can refer to the binary file which does not have the source code and can not be directly executed in other projects, and finally realizes the collaborative development of different groups of multifunctional complex client application.
As can be seen from fig. 3, compared with the embodiment corresponding to fig. 2, the process 300 of the workspace control method for integrated development environment in this embodiment has a step 307 of setting the processing status of the business file in the project loaded in the workspace to be non-processing status, a step 308 of detecting the entry file selection operation of the entry file of the project loaded in the workspace by the user, step 309 of detecting an operation performed by the user on the workspace in response to detecting an entry file selection operation, and step 310 of compiling an entry file of each item in the items loaded in the workspace and a source code file in a service file, and executing the compiled workspace in response to detecting the operation, taking the item where the entry file targeted by the entry file selection operation is located as an entry item. Therefore, the scheme described in the embodiment ensures that not only the business requirements of different product lines but also the collaborative development of different teams can be realized in the development process of the complex client application.
With further reference to fig. 4, as an implementation of the methods shown in the above figures, the present application provides an embodiment of a workspace control device for an integrated development environment, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 4, the workspace control device 400 for an integrated development environment according to the present embodiment includes: a first acquisition unit 401, a second acquisition unit 402, a first loading unit 403, a second loading unit 404, a first detection unit 405, and a current item determination unit 406. The first obtaining unit 401 is configured to obtain a workspace to be loaded and a project name of at least one project to be loaded; a second obtaining unit 402, configured to obtain, for each of the item names of the at least one item, an item that matches the item name, where the item includes: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed; a first loading unit 403, configured to load the workspace in the integrated development environment; a second loading unit 404, configured to load, for each item in the acquired at least one item, a item name of the item, and an entry file and a service file of the item in the workspace; a first detecting unit 405 configured to detect a user's item selection operation on an item loaded in the workspace; a current item determining unit 406, configured to, in response to detecting the item selection operation, regard an item to which the item selection operation is directed as a current item of the workspace.
In this embodiment, for specific processing of the first obtaining unit 401, the second obtaining unit 402, the first loading unit 403, the second loading unit 404, the first detecting unit 405, and the current item determining unit 406 of the workspace control device 400 for integrating development environments and technical effects brought by the specific processing, reference may be made to relevant descriptions of step 201, step 202, step 203, step 204, step 205, and step 206 in the corresponding embodiment of fig. 2, which are not described herein again.
In some optional implementations of the present embodiment, the workspace control device 400 for integrated development environment provided by the present embodiment may further include: a processing state setting unit 407 configured to set a processing state of the service file in the project other than the current project loaded in the workspace to an unprocessed state. The detailed processing of the processing state setting unit 407 and the technical effects thereof can refer to the related description of step 307 in the corresponding embodiment of fig. 3, and are not repeated herein.
In some optional implementations of the present embodiment, the workspace control device 400 for integrated development environment provided by the present embodiment may further include: a second detecting unit 408, configured to detect a portal file selection operation of the user on a portal file of the project loaded into the workspace; a third detecting unit 409, configured to detect, in response to detecting the entry file selecting operation, an operation of the user on the workspace; a compiling and running unit 410, configured to, in response to detecting the running operation, take a project in which an entry file corresponding to the entry file selecting operation is located as an entry project, compile an entry file of each project in the projects loaded in the workspace and a source code file in a service file, and run the compiled workspace, where the entry project is used to instruct the workspace to start execution from the entry file of the entry project during running. The detailed processing of the second detection unit 408, the third detection unit 409, and the compiling and running unit 410 and the technical effects thereof can refer to the related descriptions of step 308, step 309, and step 310 in the corresponding embodiment of fig. 3, which are not described herein again.
In some optional implementations of the present embodiment, the processing status setting unit 407 may be further configured to: and setting the processing state of the service file according to the file type of the service file of the current project. The detailed processing of the processing state setting unit 407 and the technical effects thereof can refer to the related description of step 307 in the corresponding embodiment of fig. 3, and are not repeated herein.
In some optional implementations of the present embodiment, the processing status setting unit 407 may be further configured to: and if the service file of the current project is the source code file, setting the processing state of the service file to be a processable state. The detailed processing of the processing state setting unit 407 and the technical effects thereof can refer to the related description of step 307 in the corresponding embodiment of fig. 3, and are not repeated herein.
In some optional implementations of the present embodiment, the processing status setting unit 407 may be further configured to: and if the service file of the current project is a binary file, setting the processing state of the service file to be an unprocessed state. The detailed processing of the processing state setting unit 407 and the technical effects thereof can refer to the related description of step 307 in the corresponding embodiment of fig. 3, and are not repeated herein.
In some optional implementation manners of this embodiment, the second obtaining unit 402 may be further configured to: and for each item name in the item names of the at least one item, acquiring an entry file and a service file of the item matched with the item name according to whether a folder matched with the item name exists locally. The detailed processing of the second unit 402 and the technical effects thereof can refer to the related description of step 202 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementation manners of this embodiment, the second obtaining unit 402 may be further configured to: and if the folder matched with the project name exists locally, acquiring an entry file and a service file in the folder matched with the project name as an entry file and a service file of the project matched with the project name, wherein the service file is a source code file not containing a main function or a binary file which cannot be directly executed. The detailed processing of the second unit 402 and the technical effects thereof can refer to the related description of step 202 in the corresponding embodiment of fig. 2, and are not repeated herein.
In some optional implementation manners of this embodiment, the second obtaining unit 402 may be further configured to: if the folder matched with the project name does not exist locally, sending an acquisition request for acquiring the project matched with the project name to a server; receiving an entry file and a service file of an item matched with the item name from the server, locally establishing a folder matched with the item name according to the item name of the item, and storing the entry file and the service file matched with the item name into the folder matched with the item name, wherein the service file is a binary file which cannot be directly executed. The detailed processing of the second unit 402 and the technical effects thereof can refer to the related description of step 202 in the corresponding embodiment of fig. 2, and are not repeated herein.
Referring now to FIG. 5, shown is a block diagram of a computer system 500 suitable for use in implementing a terminal device of an embodiment of the present application.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU)501 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output portion 507 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program performs the above-described functions defined in the method of the present application when executed by the Central Processing Unit (CPU) 501.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first obtaining unit, a second obtaining unit, a first loading unit, a second loading unit, a first detecting unit, and a current item determining unit. Where the names of the units do not in some cases constitute a limitation of the units themselves, for example, the first obtaining unit may also be described as a "unit that obtains the work space to be loaded and the project name of at least one project to be loaded".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not incorporated into the terminal. The non-transitory computer storage medium stores one or more programs that, when executed by a device, cause the device to: acquiring a workspace to be loaded and a project name of at least one project to be loaded; for each item name in the item names of the at least one item, acquiring an item matched with the item name, wherein the item comprises: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed; loading the working space in an integrated development environment; for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace; detecting the project selection operation of a user on the project loaded in the workspace; and in response to detecting the item selection operation, taking the item to which the item selection operation is directed as the current item of the workspace.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (18)

1. A workspace control method for an integrated development environment, the method comprising:
acquiring a workspace to be loaded and a project name of at least one project to be loaded;
for each item name in the item names of the at least one item, acquiring an item matched with the item name, wherein the item comprises: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed;
loading the workspace in an integrated development environment;
for each item in the acquired at least one item, loading the item name of the item, the entry file and the service file of the item in the workspace;
detecting a project selection operation of a user on a project loaded in the workspace;
in response to detecting the item selection operation, treating the item to which the item selection operation is directed as a current item of the workspace.
2. The method of claim 1, wherein after the taking the item to which the item selection operation is directed as a current item of the workspace, the method further comprises:
and setting the processing state of the business files in other projects loaded in the workspace except the current project to be an unprocessed state.
3. The method of claim 1, further comprising:
detecting an entry file selection operation of the user on an entry file of a project loaded into the workspace;
in response to detecting the entry file selection operation, detecting a running operation of the user on the workspace;
and in response to detecting the running operation, taking the item of the entry file to which the entry file selecting operation is directed as an entry item, compiling the entry file of each item in the items loaded in the workspace and the source code file in the service file, and running the compiled workspace, wherein the entry item is used for indicating that the workspace is executed from the entry file of the entry item during running.
4. The method according to claim 2, wherein the setting the processing state of the service file in the project other than the current project loaded in the workspace to a non-processing state comprises:
and setting the processing state of the service file according to the file type of the service file of the current project.
5. The method according to claim 4, wherein the setting the processing state of the service file according to the file type of the service file of the current project comprises:
and if the service file of the current project is the source code file, setting the processing state of the service file to be a processable state.
6. The method according to claim 4, wherein the setting the processing state of the service file according to the file type of the service file of the current project comprises:
and if the service file of the current project is a binary file, setting the processing state of the service file to be an unprocessed state.
7. The method according to claim 1, wherein the obtaining, for each of the item names of the at least one item, an item matching the item name comprises:
and for each item name in the item names of the at least one item, acquiring an entry file and a service file of the item matched with the item name according to whether a folder matched with the item name exists locally.
8. The method of claim 7, wherein the obtaining the entry file and the service file of the item matching the item name according to whether the folder matching the item name exists locally comprises:
and if the folder matched with the project name exists locally, acquiring an entry file and a service file in the folder matched with the project name as an entry file and a service file of the project matched with the project name, wherein the service file is a source code file which does not contain a main function or a binary file which cannot be directly executed.
9. The method of claim 7, wherein the obtaining the entry file and the service file of the item matching the item name according to whether the folder matching the item name exists locally comprises:
if the folder matched with the project name does not exist locally, sending an acquisition request for acquiring the project matched with the project name to a server;
receiving an entry file and a service file of an item matched with the item name from the server, locally establishing a folder matched with the item name according to the item name of the item, and storing the entry file and the service file matched with the item name into the folder matched with the item name, wherein the service file is a binary file which cannot be directly executed.
10. A workspace control device for an integrated development environment, the device comprising:
the system comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is configured to acquire a workspace to be loaded and a project name of at least one project to be loaded;
a second obtaining unit configured to obtain, for each of the item names of the at least one item, an item that matches the item name, where the item includes: the system comprises a project name, an entry file and a service file, wherein the entry file is a source code file containing a main function, and the service file is a source code file not containing the main function or a binary file which cannot be directly executed;
a first loading unit configured to load the workspace in an integrated development environment;
the second loading unit is configured to load a project name of the project, an entry file of the project and a service file of the project in the workspace for each of the acquired at least one project;
the first detection unit is used for detecting the item selection operation of a user on the items loaded in the workspace;
a current item determination unit configured to, in response to detecting the item selection operation, take an item to which the item selection operation is directed as a current item of the workspace.
11. The apparatus of claim 10, further comprising:
and the processing state setting unit is configured to set the processing state of the service files in the projects loaded in the workspace except the current project to be an unprocessed state.
12. The apparatus of claim 10, further comprising:
a second detection unit configured to detect an entry file selection operation of the user on an entry file of the project loaded into the workspace;
a third detection unit, configured to detect, in response to detecting the entry file selection operation, an operation of the user on the workspace;
and the compiling and running unit is configured to, in response to detecting the running operation, take a project in which an entry file to which the entry file selecting operation is directed is located as an entry project, compile an entry file of each project in the projects loaded in the workspace and a source code file in the service file, and run the compiled workspace, wherein the entry project is used for instructing the workspace to start execution from the entry file of the entry project during running.
13. The apparatus according to claim 11, wherein the processing state setting unit is further configured to:
and setting the processing state of the service file according to the file type of the service file of the current project.
14. The apparatus according to claim 13, wherein the processing state setting unit is further configured to:
and if the service file of the current project is the source code file, setting the processing state of the service file to be a processable state.
15. The apparatus according to claim 13, wherein the processing state setting unit is further configured to:
and if the service file of the current project is a binary file, setting the processing state of the service file to be an unprocessed state.
16. The apparatus of claim 10, wherein the second obtaining unit is further configured to:
and for each item name in the item names of the at least one item, acquiring an entry file and a service file of the item matched with the item name according to whether a folder matched with the item name exists locally.
17. The apparatus of claim 16, wherein the second obtaining unit is further configured to:
and if the folder matched with the project name exists locally, acquiring an entry file and a service file in the folder matched with the project name as an entry file and a service file of the project matched with the project name, wherein the service file is a source code file which does not contain a main function or a binary file which cannot be directly executed.
18. The apparatus of claim 16, wherein the second obtaining unit is further configured to:
if the folder matched with the project name does not exist locally, sending an acquisition request for acquiring the project matched with the project name to a server;
receiving an entry file and a service file of an item matched with the item name from the server, locally establishing a folder matched with the item name according to the item name of the item, and storing the entry file and the service file matched with the item name into the folder matched with the item name, wherein the service file is a binary file which cannot be directly executed.
CN201610500086.3A 2016-06-29 2016-06-29 Workspace control method and apparatus for integrated development environment Active CN107544777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610500086.3A CN107544777B (en) 2016-06-29 2016-06-29 Workspace control method and apparatus for integrated development environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610500086.3A CN107544777B (en) 2016-06-29 2016-06-29 Workspace control method and apparatus for integrated development environment

Publications (2)

Publication Number Publication Date
CN107544777A CN107544777A (en) 2018-01-05
CN107544777B true CN107544777B (en) 2020-12-25

Family

ID=60965606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610500086.3A Active CN107544777B (en) 2016-06-29 2016-06-29 Workspace control method and apparatus for integrated development environment

Country Status (1)

Country Link
CN (1) CN107544777B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122866A (en) * 2007-09-12 2008-02-13 中兴通讯股份有限公司 Programme code translating and compiling method in integrated development environment
CN102368216A (en) * 2011-10-20 2012-03-07 北京金和软件股份有限公司 Process implementation method based on automatic project building
CN103631636A (en) * 2012-08-21 2014-03-12 国际商业机器公司 Enabling multi-tenancy for a commerce server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101122866A (en) * 2007-09-12 2008-02-13 中兴通讯股份有限公司 Programme code translating and compiling method in integrated development environment
CN102368216A (en) * 2011-10-20 2012-03-07 北京金和软件股份有限公司 Process implementation method based on automatic project building
CN103631636A (en) * 2012-08-21 2014-03-12 国际商业机器公司 Enabling multi-tenancy for a commerce server

Also Published As

Publication number Publication date
CN107544777A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US9495186B1 (en) Automatic discovery of a javascript API
US9021507B2 (en) Dynamic use of data across multiple programs
US9740593B2 (en) Comparative program execution through control of two or more debug sessions to automatically determine execution differences
US10084637B2 (en) Automatic task tracking
EP3411796A1 (en) Methods and systems for software related problem solution
CN111666217B (en) Method and apparatus for testing code
CN111061489B (en) Multi-platform compiling detection method, device, equipment and medium
CN111209001A (en) Method, system, equipment and medium for batch generation of APKs of android channels
CN104978276A (en) Method, device and system used for detecting software
CN107368407B (en) Information processing method and device
CN111190791A (en) Application exception reporting method and device and electronic equipment
US11210110B2 (en) Application library analytics tool
US9135001B2 (en) Dynamically configuring an integrated development environment
CN112527312A (en) Test method and test device for embedded system
CN107544777B (en) Workspace control method and apparatus for integrated development environment
CN111435328B (en) Application testing method and device, electronic equipment and readable storage medium
CN116662193A (en) Page testing method and device
CN111831317B (en) Method and device for acquiring dependency relationship between services, electronic equipment and storage medium
CN110825370A (en) Mobile terminal application development method, device and system
CN113407229B (en) Method and device for generating offline scripts
CN111767486A (en) Method, device, electronic equipment and computer readable medium for displaying page
CN114942887A (en) Program safety testing method, device, equipment and medium
WO2023132882A1 (en) Infrastructure to integrate an integrated development environment (ide) with game engines
CN117435103A (en) Control method, device, equipment, storage medium and program for application program
CN117827630A (en) Method and device for generating test script

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20191122

Address after: 201210 room j1328, floor 3, building 8, No. 55, Huiyuan Road, Jiading District, Shanghai

Applicant after: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District, No. ten on the ground floor, No. 10 Baidu building, layer three

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180105

Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Assignor: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

Contract record no.: X2020990000202

Denomination of invention: Work space control method and device used for integrated development environment

License type: Exclusive License

Record date: 20200420

EE01 Entry into force of recordation of patent licensing contract
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 401120 b7-7-2, Yuxing Plaza, No.5, Huangyang Road, Yubei District, Chongqing

Patentee after: Chongqing duxiaoman Youyang Technology Co.,Ltd.

Address before: 201210 room j1328, 3 / F, building 8, 55 Huiyuan Road, Jiading District, Shanghai

Patentee before: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address