CN107544777A - Working space control method and device for IDE - Google Patents

Working space control method and device for IDE Download PDF

Info

Publication number
CN107544777A
CN107544777A CN201610500086.3A CN201610500086A CN107544777A CN 107544777 A CN107544777 A CN 107544777A CN 201610500086 A CN201610500086 A CN 201610500086A CN 107544777 A CN107544777 A CN 107544777A
Authority
CN
China
Prior art keywords
project
file
working space
service scripts
name
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.)
Granted
Application number
CN201610500086.3A
Other languages
Chinese (zh)
Other versions
CN107544777B (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
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and 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

Landscapes

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

Abstract

This application discloses the working space control method and device for IDE.One embodiment of methods described includes:Obtain working space to be loaded and the project name of at least one project to be loaded;To each project name in the project name of at least one project, the project matched with the project name is obtained, the project includes:Project name, entry file and service scripts;The working space is loaded in IDE;To each project in acquired at least one project, the project name of the project and the entry file of the project and service scripts are loaded in the working space;The items selection of project of the detection user to being loaded in the working space operates;In response to detecting the items selection operation, the items selection is operated into current project of the targeted project as the working space.This embodiment improves the code efficiency in different team collaboration's development processes.

Description

Working space control method and device for IDE
Technical field
The application is related to field of computer technology, and in particular to programmatics field, it is more particularly, to integrated to open The working space control method and device in hair ring border.
Background technology
With the fast development of computer technology and Internet technology, there is the complicated client with multiple functions Using.And as the increase of function, the size of code and maintenance difficulties of complicated client application can all increase, it is unfavorable for medium-and-large-sized group The collaborative development of team.
Industry is in exploitation cooperation and business demand aspect at present, without the business demand that can meet different product line, again The solution of different team collaboration's exploitations can be met very well.
The content of the invention
The purpose of the application is to propose a kind of improved working space control method and dress for IDE Put, to solve the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of working space control method for IDE, methods described Including:Obtain working space to be loaded and the project name of at least one project to be loaded;To at least one project Project name in each project name, obtain the project that is matched with the project name, the project includes:Project name, Entry file and service scripts, wherein, the entry file is the source code file comprising principal function, and the service scripts is not Source code file comprising principal function or the binary file that can not be directly executed;The work is loaded in IDE Make space;To each project in acquired at least one project, the entry name of the project is loaded in the working space The entry file and service scripts of title and the project;User is detected to the items selection of the project loaded in the working space Operation;In response to detecting the items selection operation, the items selection is operated into targeted project as the work The current project in space.
Second aspect, this application provides a kind of working space control device for IDE, described device Including:First acquisition unit, it is configured to obtain the entry name of working space to be loaded and at least one project to be loaded Claim;Second acquisition unit, each project name being configured in the project name at least one project, obtain and be somebody's turn to do The project of project name matching, the project include:Project name, entry file and service scripts, wherein, the entry file For the source code file comprising principal function, the service scripts is the source code file not comprising principal function or can not directly be held Capable binary file;First loading unit, it is configured to load the working space in IDE;Second loading Unit, it is configured to, to each project in acquired at least one project, the project be loaded in the working space The entry file and service scripts of project name and the project;First detection unit, it is configured to detect user to the work Make the items selection operation of project loaded in space;Current project determining unit, it is configured in response to detecting the item Mesh selection operation, the items selection is operated into current project of the targeted project as the working space.
The working space control method and device for IDE that the application provides, it is to be loaded by obtaining Working space and at least one project to be loaded, then load above-mentioned working space and at least one in IDE Project name, entry file and the service scripts of each project in individual project, finally in response to detecting user to above-mentioned work The items selection operation of the project loaded in space, above-mentioned items selection is operated into targeted project as above-mentioned working space Current project, improve the code efficiency in different team collaboration's development processes.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow according to one embodiment of the working space control method for IDE of the application Figure;
Fig. 3 is the stream according to another embodiment of the working space control method for IDE of the application Cheng Tu;
Fig. 4 is the structure according to one embodiment of the working space control device for IDE of the application Schematic diagram;
Fig. 5 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present application.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Be easy to describe, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the application in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the application for the working space control method of IDE or for integrating The exemplary system architecture 100 of the embodiment of the working space control device of development environment.
As shown in figure 1, system architecture 100 can include terminal device 101,102, network 103 and server 104.Network 103 between terminal device 101,102 and server 104 provide communication link medium.Network 103 can include various Connection type, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted with using terminal equipment 101,102 by network 103 with server 104, be disappeared with receiving or sending Breath etc..Various client applications, such as IDE class application etc. can be installed on terminal device 101,102.
Terminal device 101,102 can be the various electronic equipments for having display screen and processor, including but not limited to knee Mo(u)ld top half pocket computer and desktop computer etc..
Server 104 can be to provide the server of various services, such as integrated to what is shown on terminal device 101,102 The application of development environment class provides the server supported.The item that server 104 can match to the acquisition received with project name Purpose obtains the data such as request and carries out the processing such as analyzing, and result (such as entry file and service scripts) is fed back into end End equipment.
It should be noted that the working space control method one for IDE that the embodiment of the present application is provided As by terminal device 101 or 102 perform, correspondingly, the working space control device for IDE is typically set In terminal device 101 or 102.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realizing need Will, can have any number of terminal device, network and server.
With continued reference to Fig. 2, it illustrates the working space control method for IDE according to the application The flow 200 of one embodiment.The described working space control method for IDE, comprises the following steps:
Step 201, working space to be loaded and the project name of at least one project to be loaded are obtained.
IDE (IDE, Integrated Development Environment) is opened for providing program The application program in hair ring border, generally comprise code editor, compiler, debugger and tool graphical user interface.It is integrated with generation Code writes the exploitation software service set of the integration such as function, analytic function, compilation facility, debugging function.It is all to possess this spy The software or software set (group) of property can be IDE.Such as the Visual Studio series of Microsoft, Borland C++Builder, Delphi series etc..
IDE manages project therein, working space using the descriptive file for being referred to as " working space " Multiple projects can be loaded by reference.It should be noted that according to the difference of operating system, this descriptive definition It is different.The project name, entry file and business of project cited therein are described in working space in the form of key-value pair File.Can be by key-value pair related on the descriptive file in modification space, to realize add-in purpose purpose.
In the present embodiment, the working space control method for IDE runs electronic equipment thereon (such as terminal device shown in Fig. 1) can obtain working space to be loaded and to be added by receiving the command information of user The project name of at least one project carried, or obtain by preset configuration file working space to be loaded and to be added The project name of at least one project carried.Wherein, working space both can be newly-built empty working space or Through existing working space.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can obtain to be added in the following way The working space of load:First, detect user create working space Workspace creation request, for example, detection user whether point Whether the newly-built working space button or detection user hit in IDE, which have input in IDE, is preset The shortcut for being used to trigger the operation of newly-built working space;Then, in response to detecting that above-mentioned Workspace creation is asked, create Working space;Finally, created working space is obtained as working space to be loaded.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also in the following way be obtained and treated The working space of loading:First, working space selection operation of the user to working space is detected, for example, detection user opens work Make working space selection operation during space;Then, in response to detecting above-mentioned working space selection operation, the work is obtained Spatial choice operates targeted working space as working space to be loaded.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can obtain to be added in the following way The project name of at least one project carried:First, detect above-mentioned user and behaviour is selected to the project name of preset project name Make, for example, selection interface can be provided, all alternative project names are included at above-mentioned interface, and receive user's Selection;Then, in response to detecting above-mentioned project name selection operation, it is targeted extremely to obtain above-mentioned project name selection operation Few project name of the project name as at least one project to be loaded.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can obtain to be added in the following way The working space of load:First, configuration file is obtained, the type information of working space to be created is have recorded in above-mentioned configuration file, Such as the working space type below ios systems is suffix entitled " .xw " file;Then, according to the above-mentioned type information creating Working space;Finally, created working space is obtained as working space to be loaded.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can obtain to be added in the following way The working space of load:First, configuration file is obtained, the storage road of working space to be loaded is have recorded in above-mentioned configuration file Footpath;Then, according to above-mentioned store path, working space to be loaded is obtained.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also in the following way be obtained and treated The project name of at least one project of loading:At least one project name recorded in above-mentioned configuration file is obtained as to be added The project name of at least one project carried, wherein, at least one project name is have recorded in above-mentioned configuration file.
Step 202, each project name in the project name of at least one project, acquisition are matched with the project name Project.
In the present embodiment, above-mentioned electronic equipment can be to each entry name in the project name of at least one project Claim, obtain the project matched with the project name.Here, project includes:Project name, entry file and service scripts, wherein, Entry file is the source code file (for example .cpp files comprising main functions) comprising principal function, and service scripts is not wrap Source code file (for example .cpp files not comprising main functions) containing principal function or the binary system text that can not be directly executed Part (for example, the .dll files that can not be directly executed).
In some optional implementations of the present embodiment, above-mentioned electronic equipment can whether there is and this according to local The file of project name matching, obtain the entry file and service scripts of the project matched with the project name.
In some optional implementations of the present embodiment, if local have the file matched with the project name Folder, then show that the project is project existing for local or the project is from the locally downloading project of server, then obtain The entry file in the file matched with the project name and service scripts are taken as the project matched with the project name Entry file and service scripts, wherein, above-mentioned service scripts is the source code file not comprising principal function or can not directly be held Capable binary file.
In some optional implementations of the present embodiment, if local be not present the file matched with the project name Folder, then it is not that the project locally possessed obtains and the project name, it is necessary to be sent first to server to show project to be loaded The acquisition request of the project of matching;Then, received from above-mentioned server the entry file of project that is matched with the project name and Service scripts, then, the file that is matched with the project name is being locally created according to the project name of the project, finally, will The entry file and service scripts matched with the project name is stored into the above-mentioned file matched with the project name, its In, above-mentioned service scripts is the binary file that can not be directly executed.Here, in order to ensure that code content is not compromised, from The service scripts that server receives is the binary file that can not be performed, it is impossible to is source code file.
Step 203, above-mentioned working space is loaded in IDE.
In the present embodiment, above-mentioned electronic equipment can obtain working space to be loaded and at least one project Afterwards, above-mentioned working space is loaded in IDE.As an example, the name of above-mentioned working space can be included collecting In IDE.
Step 204, to each project in acquired at least one project, the project is loaded in above-mentioned working space Project name and the project entry file and service scripts.
In the present embodiment, it is right after above-mentioned electronic equipment can load above-mentioned working space in IDE Each project in acquired at least one project, loaded in above-mentioned working space the project project name and this Purpose entry file and service scripts.As an example, can be by the project name of the project, entry file file name information and industry In the working space that business File name presentation of information loads in IDE.
Step 205, the items selection for detecting project of the user to being loaded in above-mentioned working space operates, if detected, Go to step 206.
In the present embodiment, above-mentioned electronic equipment can detect user to the project of the project loaded in above-mentioned working space Selection operation, if detected, go to step 206.As an example, items selection operation can be user to empty to above-mentioned work Between middle loading project mouse-click or double click operation.
Step 206, in response to detecting that items selection operates, items selection is operated into targeted project as above-mentioned work Make the current project in space.
In the present embodiment, above-mentioned electronic equipment can operate items selection in response to detecting that items selection operates Current project of the targeted project as above-mentioned working space.Due to the item in the working space that is loaded in IDE Mesh can only edit the source code file in a project simultaneously possibly more than one, it is therefore desirable to the project for selecting user Current project as above-mentioned working space.
The method that above-described embodiment of the application provides, by obtaining working space to be loaded and to be loaded at least one Individual project, the entry name of each project in above-mentioned working space and at least one project is then loaded in IDE Title, entry file and service scripts, finally in response to detecting that the project of project of the user to being loaded in above-mentioned working space is selected Operation is selected, above-mentioned items selection is operated into targeted project as the current project of above-mentioned working space, improves different groups Code efficiency during team's collaborative development.
With further reference to Fig. 3, it illustrates another of the working space control method for IDE implementation The flow 300 of example.This is used for the flow 300 of the working space control method of IDE, comprises the following steps:
Step 301, working space to be loaded and the project name of at least one project to be loaded are obtained.
Step 302, each project name in the project name of at least one project, acquisition are matched with the project name Project.
Step 303, above-mentioned working space is loaded in IDE.
Step 304, to each project in acquired at least one project, the project is loaded in above-mentioned working space Project name and the project entry file and service scripts.
Step 305, the items selection for detecting project of the user to being loaded in above-mentioned working space operates, if detected, Go to step 206.
Step 306, in response to detecting that items selection operates, items selection is operated into targeted project as above-mentioned work Make the current project in space.
Above-mentioned steps 301- steps 306 are essentially identical with step 201- steps 206 respectively, will not be repeated here.
Step 307, by the business text in the sundry item in addition to above-mentioned current project loaded in above-mentioned working space The processing state of part is arranged to that state can not be handled.
In the present embodiment, above-mentioned electronic equipment will can add after current project is determined in above-mentioned working space The processing state of service scripts in the sundry item in addition to above-mentioned current project carried is arranged to that state can not be handled.This In, the state that can not handle is:It can not change, can not preserve and not can be compiled.So, removing for being loaded in above-mentioned working space is worked as The service scripts in sundry item beyond preceding project realizes the business in only current project all in that can not handle state File can be changed, is saved or is compiled.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be according to the industry of the current project The file type of business file, the processing state to the service scripts are configured.Here, file type include source code file and Binary file.
In some optional implementations of the present embodiment, if the service scripts of above-mentioned current project is source code text The processing state of the service scripts can be arranged to that state can be handled by part, above-mentioned electronic equipment.Here, can handle state includes At least one of below:It can change, can preserve, can be compiled.
In some optional implementations of the present embodiment, if the service scripts of above-mentioned current project is binary system text The processing state of the service scripts can be arranged to that state can not be handled by part, above-mentioned electronic equipment.
Step 308, user is detected to select the entry file of the entry file for the project being loaded into above-mentioned working space Operation.
In the present embodiment, above-mentioned electronic equipment can detect user entering to the project that is loaded into above-mentioned working space The entry file selection operation of mouth file.For example, entry file selection operation can be user to being loaded in above-mentioned working space Project entry file filename mouse-click or double click operation.
Step 309, in response to detecting entry file selection operation, operation behaviour of the detection user to above-mentioned working space Make.
In the present embodiment, above-mentioned electronic equipment can detect user to upper after entry file selection operation is detected State the operation operation of working space.For example, above-mentioned operation operation can be that user clicks on default operation in IDE Button or user have input the default shortcut that can trigger operation operation in IDE.
Step 310, in response to detecting that above-mentioned operation operates, by the targeted entrance text of above-mentioned entry file selection operation Project where part compiles the entry file and industry of each project in the project loaded in above-mentioned working space as entrance project The source code file being engaged in file, and run the above-mentioned working space after compiling.
In the present embodiment, above-mentioned entry file can be selected to grasp by above-mentioned electronic equipment after operation operation is detected Make the project where targeted entry file as entrance project, compile each item in the project loaded in above-mentioned working space Source code file in purpose entry file and service scripts, and run the above-mentioned working space after compiling.Wherein, entrance project Performed during for indicating above-mentioned working space operation since the entry file of entrance project.So, above-mentioned electronic equipment is collecting It can be realized in IDE and edlin, preservation, compiling and operation are entered to the local service scripts for possessing source code, simultaneously Binary file that is not having source code in sundry item and can not directly performing can be quoted, finally realizes multi-functional complicated visitor The collaborative development of the different team of family end application.
From figure 3, it can be seen that compared with embodiment corresponding to Fig. 2, it is used for IDE in the present embodiment The flow 300 of working space control method has had more other in addition to above-mentioned current project that will be loaded in above-mentioned working space The processing state of service scripts in project is arranged to handle the step 307 of state, detection user to being loaded into above-mentioned work Make the step 308 of the entry file selection operation of the entry file of the project in space, in response to detecting that entry file selects Operation, detection user, will to the step 309 for running operation of above-mentioned working space and in response to detecting that above-mentioned operation operates Project where the targeted entry file of above-mentioned entry file selection operation is compiled in above-mentioned working space as entrance project Source code file in the project of loading in the entry file and service scripts of each project, and run the above-mentioned work after compiling The step 310 in space.Thus, the scheme of the present embodiment description ensure that and can be realized in complicated client application development process The business demand and can of different product line realizes the collaborative development of different team.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, this application provides one kind to be used for integrated open One embodiment of the working space control device in hair ring border, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, The device specifically can apply in various electronic equipments.
As shown in figure 4, the working space control device 400 for IDE described in the present embodiment includes:The One acquiring unit 401, second acquisition unit 402, the first loading unit 403, the second loading unit 404, the first detection unit 405 With current project determining unit 406.Wherein, first acquisition unit 401, it is configured to obtain working space to be loaded and to be added The project name of at least one project carried;Second acquisition unit 402, it is configured to the entry name to above-mentioned at least one project Each project name in title, obtains the project matched with the project name, and above-mentioned project includes:Project name, entry file And service scripts, wherein, above-mentioned entry file is the source code file comprising principal function, and above-mentioned service scripts is not comprising main letter Several source code files or the binary file that can not be directly executed;First loading unit 403, is configured in Integrated Development Above-mentioned working space is loaded in environment;Second loading unit 404, it is configured to each in acquired at least one project Project, the project name of the project and the entry file of the project and service scripts are loaded in above-mentioned working space;First Detection unit 405, the items selection for being configured to detect project of the user to being loaded in above-mentioned working space operate;Current project Determining unit 406, it is configured to, in response to detecting above-mentioned items selection operation, above-mentioned items selection be operated to targeted item Current project of the mesh as above-mentioned working space.
In the present embodiment, for IDE working space control device 400 first acquisition unit 401, Second acquisition unit 402, the first loading unit 403, the second loading unit 404, the first detection unit 405 and current project determine The specific processing of unit 406 and its caused technique effect can be respectively with reference to step 201, steps in the corresponding embodiment of figure 2 202nd, the related description of step 203, step 204, step 205 and step 206, will not be repeated here.
In some optional implementations of the present embodiment, the work for IDE of the present embodiment offer Space control device 400 can also include:State set unit 407 is handled, is configured to load in above-mentioned working space The processing state of the service scripts in sundry item in addition to above-mentioned current project is arranged to that state can not be handled.Processing state The specific processing of setting unit 407 and its caused technique effect refer to Fig. 3 and correspond to mutually speaking on somebody's behalf for step 307 in embodiment It is bright, it will not be repeated here.
In some optional implementations of the present embodiment, the work for IDE of the present embodiment offer Space control device 400 can also include:Second detection unit 408, it is configured to detect above-mentioned user to being loaded into above-mentioned work Make the entry file selection operation of the entry file of the project in space;3rd detection unit 409, it is configured in response to detection To above-mentioned entry file selection operation, operation operation of the above-mentioned user to above-mentioned working space is detected;Compiling and running unit 410, it is configured in response to detecting above-mentioned operation operation, by the targeted entry file institute of above-mentioned entry file selection operation Project as entrance project, compile the entry file of each project and business text in the project loaded in above-mentioned working space Source code file in part, and the above-mentioned working space after compiling is run, wherein, above-mentioned entrance project is used to indicate above-mentioned work Performed during space motion since the entry file of above-mentioned entrance project.Second detection unit 408, the 3rd detection unit 409 with And compiling and the specific processing of running unit 410 and its caused technique effect can be respectively with reference to walking in the correspondence embodiment of figure 3 Rapid 308, the related description of step 309 and step 310, will not be repeated here.
In some optional implementations of the present embodiment, above-mentioned processing state set unit 407 can further match somebody with somebody Put and be used for:According to the file type of the service scripts of above-mentioned current project, the processing state to the service scripts is configured.Place The specific processing and its caused technique effect for managing state set unit 407 refer to Fig. 3 and correspond to step 307 in embodiment Related description, it will not be repeated here.
In some optional implementations of the present embodiment, above-mentioned processing state set unit 407 can further match somebody with somebody Put and be used for:If the service scripts of above-mentioned current project is source code file, the processing state of the service scripts is arranged to State can be handled.Handle the specific processing of state set unit 407 and its caused technique effect refers to the corresponding implementations of Fig. 3 The related description of step 307, will not be repeated here in example.
In some optional implementations of the present embodiment, above-mentioned processing state set unit 407 can further match somebody with somebody Put and be used for:If the service scripts of above-mentioned current project is binary file, the processing state of the service scripts is arranged to State can not be handled.Handle the specific processing of state set unit 407 and its caused technique effect refers to Fig. 3 and corresponded in fact The related description of step 307 in example is applied, will not be repeated here.
In some optional implementations of the present embodiment, above-mentioned second acquisition unit 402 can further configure use In:To each project name in the project name of above-mentioned at least one project, whether there is and the project name according to local The file of matching, obtain the entry file and service scripts of the project matched with the project name.Second unit 402 it is specific Processing and its caused technique effect refer to the related description that Fig. 2 corresponds to step 202 in embodiment, will not be repeated here.
In some optional implementations of the present embodiment, above-mentioned second acquisition unit 402 can further configure use In:If local have the file matched with the project name, obtain in the above-mentioned file matched with the project name Entry file and service scripts as the project matched with the project name of entry file and service scripts, wherein, it is above-mentioned Service scripts is the source code file not comprising principal function or the binary file that can not be directly executed.Second unit 402 Specific processing and its caused technique effect refer to the related description that Fig. 2 corresponds to step 202 in embodiment, no longer superfluous herein State.
In some optional implementations of the present embodiment, above-mentioned second acquisition unit 402 can further configure use In:If local be not present the file matched with the project name, send acquisition to server and matched with the project name Project acquisition request;The entry file and service scripts of the project matched with the project name are received from above-mentioned server, The file that is matched with the project name is being locally created according to the project name of the project, matched above-mentioned with the project name Entry file and service scripts store into the above-mentioned file matched with the project name, wherein, above-mentioned service scripts is The binary file that can not be directly executed.The specific processing of second unit 402 and its caused technique effect refer to Fig. 2 The related description of step 202, will not be repeated here in corresponding embodiment.
Below with reference to Fig. 5, it illustrates suitable for for realizing the computer system 500 of the terminal device of the embodiment of the present application Structural representation.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, it can be read-only according to being stored in Program in memory (ROM) 502 or be loaded into program in random access storage device (RAM) 503 from storage part 508 and Perform various appropriate actions and processing.In RAM 503, also it is stored with system 500 and operates required various programs and data. CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input/output (I/O) interface 505 is also connected to always Line 504.
I/O interfaces 505 are connected to lower component:Importation 506 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 507 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 508 including hard disk etc.; And the communications portion 509 of the NIC including LAN card, modem etc..Communications portion 509 via such as because The network of spy's net performs communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as Disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 510, in order to read from it Computer program be mounted into as needed storage part 508.
Especially, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product, it includes being tangibly embodied in machine readable Computer program on medium, the computer program include the program code for being used for the method shown in execution flow chart.At this In the embodiment of sample, the computer program can be downloaded and installed by communications portion 509 from network, and/or from removable Medium 511 is unloaded to be mounted.When the computer program is performed by CPU (CPU) 501, perform in the present processes The above-mentioned function of limiting.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for the module, program segment or code include one or more For realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram and/or flow chart and/or the square frame in flow chart, Ke Yiyong Function as defined in execution or the special hardware based system of operation are realized, or can be referred to specialized hardware and computer The combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit can also be set within a processor, for example, can be described as:A kind of processor bag Include first acquisition unit, second acquisition unit, the first loading unit, the second loading unit, the first detection unit and current project Determining unit.Wherein, the title of these units does not form the restriction to the unit in itself under certain conditions, for example, first Acquiring unit is also described as " obtaining working space to be loaded and the project name of at least one project to be loaded Unit ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating Machine storage medium can be the nonvolatile computer storage media included in device described in above-described embodiment;Can also be Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited One or more program is contained, when one or more of programs are performed by an equipment so that the equipment:Obtain Working space to be loaded and the project name of at least one project to be loaded;To the project name of above-mentioned at least one project In each project name, obtain the project that is matched with the project name, above-mentioned project includes:Project name, entry file and Service scripts, wherein, above-mentioned entry file is the source code file comprising principal function, and above-mentioned service scripts is not comprising principal function Source code file or the binary file that can not be directly executed;Above-mentioned working space is loaded in IDE;It is right Each project in acquired at least one project, loaded in above-mentioned working space the project project name and this Purpose entry file and service scripts;The items selection of project of the detection user to being loaded in above-mentioned working space operates;Response In detecting above-mentioned items selection operation, above-mentioned items selection is operated into targeted project as the current of above-mentioned working space Project.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art Member should be appreciated that invention scope involved in the application, however it is not limited to the technology that the particular combination of above-mentioned technical characteristic forms Scheme, while should also cover in the case where not departing from the inventive concept, carried out by above-mentioned technical characteristic or its equivalent feature The other technical schemes for being combined and being formed.Such as features described above has similar work(with (but not limited to) disclosed herein The technical scheme that the technical characteristic of energy is replaced mutually and formed.

Claims (18)

1. a kind of working space control method for IDE, it is characterised in that methods described includes:
Obtain working space to be loaded and the project name of at least one project to be loaded;
To each project name in the project name of at least one project, the project matched with the project name is obtained, The project includes:Project name, entry file and service scripts, wherein, the entry file is the source generation comprising principal function Code file, the service scripts are the source code file not comprising principal function or the binary file that can not be directly executed;
The working space is loaded in IDE;
To each project in acquired at least one project, loaded in the working space project name of the project with And the entry file and service scripts of the project;
The items selection of project of the detection user to being loaded in the working space operates;
In response to detecting the items selection operation, it is empty as the work that the items selection is operated into targeted project Between current project.
2. according to the method for claim 1, it is characterised in that the items selection is operated to targeted project described After current project as the working space, methods described also includes:
By the processing state of the service scripts in the sundry item in addition to the current project loaded in the working space It is arranged to that state can not be handled.
3. according to the method for claim 1, it is characterised in that methods described also includes:
The user is detected to the entry file selection operation for the entry file of project being loaded into the working space;
In response to detecting the entry file selection operation, operation operation of the user to the working space is detected;
In response to detecting the operation operation, by the project where the targeted entry file of the entry file selection operation As entrance project, the source in the entry file and service scripts of each project in the project loaded in the working space is compiled Code file, and the working space after compiling is run, wherein, the entrance project is used to indicate the working space operation When performed since the entry file of the entrance project.
4. according to the method for claim 2, it is characterised in that described to be loaded in the working space except described current The processing state of the service scripts in sundry item beyond project is arranged to that state can not be handled, including:
According to the file type of the service scripts of the current project, the processing state to the service scripts is configured.
5. according to the method for claim 4, it is characterised in that the file of the service scripts according to the current project Type, the processing state to the service scripts are configured, including:
If the service scripts of the current project is source code file, the processing state of the service scripts is arranged to locate Reason state.
6. according to the method for claim 4, it is characterised in that the file of the service scripts according to the current project Type, the processing state to the service scripts are configured, including:
If the service scripts of the current project is binary file, the processing state of the service scripts is arranged to can not Processing state.
7. according to the method for claim 1, it is characterised in that in the project name at least one project Each project name, the project matched with the project name is obtained, including:
To each project name in the project name of at least one project, whether there is and the project name according to local The file of matching, obtain the entry file and service scripts of the project matched with the project name.
8. according to the method for claim 7, it is characterised in that described to be matched according to local whether there is with the project name File, obtain the entry file and service scripts of project matched with the project name, including:
If the file matched with the project name locally be present, in the file matched described in acquisition with the project name Entry file and service scripts as the project matched with the project name of entry file and service scripts, wherein, it is described Service scripts is the source code file not comprising principal function or the binary file that can not be directly executed.
9. according to the method for claim 7, it is characterised in that described to be matched according to local whether there is with the project name File, obtain the entry file and service scripts of project matched with the project name, including:
If local be not present the file matched with the project name, send acquisition to server and matched with the project name Project acquisition request;
The entry file and service scripts of the project matched with the project name are received from the server, according to the item of the project The file that is matched with the project name is being locally created in mesh title, by the entry file matched with the project name and industry File storage be engaged in into the file matched with the project name, wherein, the service scripts is to be directly executed Binary file.
10. a kind of working space control device for IDE, it is characterised in that described device includes:
First acquisition unit, it is configured to obtain the entry name of working space to be loaded and at least one project to be loaded Claim;
Second acquisition unit, each project name being configured in the project name at least one project, obtain with The project of project name matching, the project include:Project name, entry file and service scripts, wherein, the entrance text Part is the source code file comprising principal function, and the service scripts is the source code file not comprising principal function or can not be direct The binary file of execution;
First loading unit, it is configured to load the working space in IDE;
Second loading unit, it is configured to each project in acquired at least one project, in the working space Load the project name of the project and the entry file of the project and service scripts;
First detection unit, the items selection for being configured to detect project of the user to being loaded in the working space operate;
Current project determining unit, it is configured to, in response to detecting the items selection operation, the items selection be operated Current project of the targeted project as the working space.
11. device according to claim 10, it is characterised in that described device also includes:
State set unit is handled, is configured to other in addition to the current project that will be loaded in the working space The processing state of service scripts in mesh is arranged to that state can not be handled.
12. device according to claim 10, it is characterised in that described device also includes:
Second detection unit, it is configured to detect the user to the entry file of project that is loaded into the working space Entry file selection operation;
3rd detection unit, it is configured to, in response to detecting the entry file selection operation, detect the user to described The operation operation of working space;
Compiling and running unit, it is configured in response to detecting the operation operation, by the entry file selection operation institute For entry file where project as entrance project, compile each project in the project loaded in the working space Source code file in entry file and service scripts, and the working space after compiling is run, wherein, the entrance project Performed during for indicating the working space operation since the entry file of the entrance project.
13. device according to claim 11, it is characterised in that the processing state set unit further configures use In:
According to the file type of the service scripts of the current project, the processing state to the service scripts is configured.
14. device according to claim 13, it is characterised in that the processing state set unit further configures use In:
If the service scripts of the current project is source code file, the processing state of the service scripts is arranged to locate Reason state.
15. device according to claim 13, it is characterised in that the processing state set unit further configures use In:
If the service scripts of the current project is binary file, the processing state of the service scripts is arranged to can not Processing state.
16. device according to claim 10, it is characterised in that the second acquisition unit is further configured to:
To each project name in the project name of at least one project, whether there is and the project name according to local The file of matching, obtain the entry file and service scripts of the project matched with the project name.
17. device according to claim 16, it is characterised in that the second acquisition unit is further configured to:
If the file matched with the project name locally be present, in the file matched described in acquisition with the project name Entry file and service scripts as the project matched with the project name of entry file and service scripts, wherein, it is described Service scripts is the source code file not comprising principal function or the binary file that can not be directly executed.
18. device according to claim 16, it is characterised in that the second acquisition unit is further configured to:
If local be not present the file matched with the project name, send acquisition to server and matched with the project name Project acquisition request;
The entry file and service scripts of the project matched with the project name are received from the server, according to the item of the project The file that is matched with the project name is being locally created in mesh title, by the entry file matched with the project name and industry File storage be engaged in into the file matched with the project name, wherein, the service scripts is to be directly executed Binary file.
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 true CN107544777A (en) 2018-01-05
CN107544777B 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
CN107544777B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US11789706B2 (en) Development system with improved methodology for creation and reuse of software assets
US8091066B2 (en) Automated multi-platform build and test environment for software application development
US20170177332A1 (en) Managing change-set delivery
König et al. Integrating robotic process automation into business process management
Mairiza et al. Constructing a catalogue of conflicts among non-functional requirements
US11449348B2 (en) Pre/post deployment customization
US20110239184A1 (en) Capturing and utilizing specific module dependency information
US8615738B2 (en) System and method for software product test modularization
CN111949170B (en) Method and device for configuring task flow and electronic equipment
US8863100B2 (en) Application services source refactoring
US20200065094A1 (en) Automatically mapping data while designing process flows
US8495566B2 (en) Widget combos: a widget programming model
Rahman et al. The modular and feature toggle architectures of Google Chrome
Pedratscher et al. M2FaaS: Transparent and fault tolerant FaaSification of Node. js monolith code blocks
Snell et al. Microsoft Visual Studio 2012 Unleashed: Micro Visua Studi 2012 Unl_p2
US20070250606A1 (en) Portable metadata service framework
Lakshmanan et al. A business centric end-to-end monitoring approach for service composites
Maleki et al. Agile web development methodologies: A survey and evaluation
Schramm et al. Rapid UI development for enterprise applications: Combining manual and model-driven techniques
US20070006121A1 (en) Development activity recipe
US11740894B2 (en) Build-independent software framework for creating custom adapters
CN107544777A (en) Working space control method and device for IDE
US8423895B2 (en) Method and apparatus for multi-file controls
Gerlitz et al. Flow sensitive slicing for matlab/simulink models
CN115437608A (en) Intelligent research and development assisting method and device

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