CN112363708B - Context protection method and system under Eclipse supporting tool - Google Patents

Context protection method and system under Eclipse supporting tool Download PDF

Info

Publication number
CN112363708B
CN112363708B CN202011404158.7A CN202011404158A CN112363708B CN 112363708 B CN112363708 B CN 112363708B CN 202011404158 A CN202011404158 A CN 202011404158A CN 112363708 B CN112363708 B CN 112363708B
Authority
CN
China
Prior art keywords
information
data file
file
eclipse
data
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
CN202011404158.7A
Other languages
Chinese (zh)
Other versions
CN112363708A (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.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp 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 China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202011404158.7A priority Critical patent/CN112363708B/en
Publication of CN112363708A publication Critical patent/CN112363708A/en
Application granted granted Critical
Publication of CN112363708B publication Critical patent/CN112363708B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/43Checking; Contextual analysis

Abstract

The invention discloses a context protection method and a system under an Eclipse supporting tool, wherein the method comprises the following steps: acquiring an Eclipse tool interface; acquiring all opened file information by using the Eclipse tool interface; converting all the file information into entity information; acquiring a data file according to the entity information; judging whether the data file exists or not; when the data files exist, first storage information is obtained, the first storage information is used for storing data in the data files, and each stored data file has unique identification information; and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished. The technical problem that in the prior art, an Eclipse development tool cannot immediately store part or all of files opened by a current editor is solved.

Description

Context protection method and system supporting Eclipse tool
Technical Field
The invention relates to the field of Eclipse tool correlation, in particular to a context protection method and system supporting Eclipse tools.
Background
Eclipse is an open source code, java-based extensible development platform. As such, it is simply a framework and a set of services for building a development environment through plug-in components.
However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the inventors of the present application find that the above-mentioned technology has at least the following technical problems:
the Eclipse development tool in the prior art has the technical problem that part or all files opened by the current editor cannot be saved immediately.
Disclosure of Invention
The embodiment of the application provides a context protection method and a context protection system supporting an Eclipse tool, so that the technical problem that the Eclipse development tool in the prior art cannot immediately store part or all of files opened by a current editor is solved, and the technical effects of immediately storing the current working environment and immediately storing all the files opened by the current editor under the Eclipse development tool are achieved.
In view of the foregoing problems, embodiments of the present application provide a method and a system for context protection supporting an Eclipse tool.
In a first aspect, an embodiment of the present application provides a context protection method supporting an Eclipse tool, where the method includes: acquiring an Eclipse tool interface; acquiring all opened file information by using the Eclipse tool interface; converting all the file information into entity information; acquiring a data file according to the entity information; judging whether the data file exists or not; when the data files exist, first storage information is obtained and used for storing the data in the data files, wherein each stored data file has unique identification information; and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished.
In another aspect, the present application further provides a context protection system supporting Eclipse tool, where the system includes: a first obtaining unit, configured to obtain an Eclipse tool interface; a second obtaining unit, configured to obtain information of all opened files by using the Eclipse tool interface; the first conversion unit is used for converting all the file information into entity information; a third obtaining unit, configured to obtain a data file according to the entity information; the first judging unit is used for judging whether the data file exists or not; a fourth obtaining unit, configured to obtain first storage information when the data file exists, where the first storage information is used to store data in the data file, and each stored data file has unique identification information; a fifth obtaining unit, configured to obtain a first closing instruction according to the first storage information, where the first closing instruction is used to close all opened files after the first storage information is completed.
In a third aspect, the present invention provides a context protection system supporting Eclipse tools, including a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to the first aspect when executing the program.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
the method comprises the steps of obtaining all opened file information through an Eclipse tool interface, converting the file information into JAVA entity information, obtaining JSON data according to the entity information, judging whether the data file exists or not, obtaining first storage information when the data file exists, and closing the opened file after the data file is stored according to the first storage information, so that the technical effect of immediately storing part or all files opened by a current editor is achieved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Fig. 1 is a schematic flowchart of a context protection method supporting Eclipse tool according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a context protection system supporting an Eclipse tool according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an exemplary electronic device according to an embodiment of the present application.
Description of reference numerals: a first obtaining unit 11, a second obtaining unit 12, a first converting unit 13, a third obtaining unit 14, a first judging unit 15, a fourth obtaining unit 16, a fifth obtaining unit 17, a bus 300, a receiver 301, a processor 302, a transmitter 303, a memory 304, and a bus interface 306.
Detailed Description
The embodiment of the application provides a context protection method and a context protection system supporting an Eclipse tool, so that the technical problem that the Eclipse development tool in the prior art cannot immediately store part or all of files opened by a current editor is solved, and the technical effects of immediately storing the current working environment and immediately storing all the files opened by the current editor under the Eclipse development tool are achieved. Hereinafter, example embodiments according to the present application will be described in detail with reference to the accompanying drawings. It should be apparent that the described embodiments are merely some embodiments of the present application and not all embodiments of the present application, and it should be understood that the present application is not limited to the example embodiments described herein.
Summary of the application
Eclipse is an open source code, java-based extensible development platform. As such, it is simply a framework and a set of services for building a development environment through plug-in components. However, the Eclipse development tool in the prior art has the technical problem that part or all of files opened by the current editor cannot be saved immediately.
In view of the above technical problems, the technical solution provided by the present application has the following general idea:
the embodiment of the application provides a context protection method supporting an Eclipse tool, which comprises the following steps: acquiring an Eclipse tool interface; acquiring all opened file information by using the Eclipse tool interface; converting all the file information into entity information; acquiring a data file according to the entity information; judging whether the data file exists or not; when the data files exist, first storage information is obtained, the first storage information is used for storing data in the data files, and each stored data file has unique identification information; and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished.
Having thus described the general principles of the present application, various non-limiting embodiments thereof will now be described in detail with reference to the accompanying drawings.
Example one
As shown in fig. 1, an embodiment of the present application provides a context protection method supporting an Eclipse tool, where the method includes:
step S100: acquiring an Eclipse tool interface;
specifically, the Eclipse tool interface is an Eclipse development tool interface capable of reading information such as file handles, project names, file path file names and the like.
Step S200: acquiring all opened file information by using the Eclipse tool interface;
step S300: converting all the file information into entity information;
specifically, the file information is related information of a file currently opened in the editor, the information includes information such as the file handle and the project name, and the information is converted into a JAVA entity.
Step S400: acquiring a data file according to the entity information;
specifically, the obtaining of the data file according to the entity information refers to converting the JAVA entity into JSON data, where JSON (JavaScript Object Notation) is a lightweight data exchange format. It stores and represents data in a text format that is completely independent of the programming language, based on a subset of ECMAScript (js specification set by the european computer association).
Step S500: judging whether the data file exists or not;
step S600: when the data files exist, first storage information is obtained, the first storage information is used for storing data in the data files, and each stored data file has unique identification information;
specifically, after the JSON data is obtained, whether the JSON data exists is judged, when the data file is converted, that is, the data file exists, first storage information is obtained, data in the data file is stored according to the first storage information, and the storage file includes a unique ID, a name, a description, a file information list and the like of the data information. The name is a name for distinguishing the working environment, the unique ID is a unique identifier of the working environment, and the identifier is automatically generated by the system; the description is a simple description for helping developers to recall working environments; the file information list stores information such as file names and relative paths.
Step S700: and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished.
Specifically, after the data file is stored, a first closing instruction is obtained according to the first storage information, and all opened files are closed through the first closing instruction. By storing the data files in real time, the technical effect of storing part or all files opened by the current editor in real time is achieved.
Further, after obtaining the first storage information when the data file exists, step S600 in this embodiment of the present application further includes:
step S610: acquiring a corresponding data file according to the identification information;
step S620: obtaining the Eclipse tool interface;
step S630: acquiring an editor handle through the Eclipse tool interface;
step S640: and obtaining a first execution instruction according to the editor handle and the data file, wherein the first execution instruction is to convert data in the data file into entity information and open the entity information in the Eclipse editor.
Specifically, the identification information is information for displaying characteristics of objects themselves and identifying different meanings, differences and attribution functions among the objects, for example, the identification information may be ID information, the ID information is a unique ID and is a unique identifier of a working environment, a corresponding Eclipse development tool interface is called according to the identification information to obtain a corresponding editor handle, the editor handle is a unique identification basis for an opened file, a first execution instruction is obtained according to the editor handle and a data file, a JAVA entity is converted according to the data obtained from the file according to the first execution instruction, and the file is opened in an Eclipse editor. Through the identification information, the Eclipse development tool can restore the stored working environment according to the identification information, the technical problem that the Eclipse development tool cannot open related files at one time according to functions is solved, and the technical effect that the Eclipse development tool interface is called through the identification ID, the stored working environment is restored when needed, namely the stored files are opened is achieved. Through the operation, the technical effect of switching among a plurality of working environments is achieved.
Further, before obtaining the data file according to the entity information, step S400 in the embodiment of the present application further includes:
step S410: judging whether the entity information is empty or not;
step S420: when the entity information is empty, obtaining a first error instruction, wherein the first error instruction is used for throwing out abnormal information;
step S430: and when the entity information is not empty, converting the entity information into a data file.
Specifically, after obtaining information related to all opened files, judging whether a called function is empty, namely judging whether a BaseEntity entry parameter is empty, obtaining a first error instruction when the BaseEntity entry parameter is empty, and throwing out an exception according to the first error instruction. And when the BaseEntity entry is not empty, converting the JAVA into JSON data.
Further, after the converting the entity information into the data file when the entity information is non-empty, step S430 in the embodiment of the present application further includes:
step S431: judging whether the data conversion is successful or not according to the entity information and the data file;
step S432: when the conversion fails, obtaining a second error instruction;
step S433: and when the conversion is successful, judging whether the data file exists.
Specifically, checking the format and the content of the converted JSON data, judging whether the data is successfully converted or not, and obtaining a second error instruction when the data conversion fails; and when the data is successfully converted, judging whether the data is successfully written, namely judging whether the data file exists. Whether the data file exists after being successfully converted is verified and judged, so that the data can be really stored and recorded, and the technical effect of immediately storing part or all files opened by the current editor is achieved.
Further, after determining whether the data file exists, step S433 in this embodiment of the present application further includes:
step S4331: when the data file does not exist, obtaining a second execution instruction, wherein the second execution instruction is an instruction for creating a file;
step S4332: and obtaining second storage information according to the created file, wherein the second storage information is used for storing the data in the created file.
Specifically, when the existence of the data file is identified, first storage information is obtained, the data file is stored according to the storage information, when the data file does not exist, a second execution instruction is obtained, the data file is created according to the second execution instruction, after the creation is successful, second storage information is obtained, and the data of the created file is stored according to the storage information.
Further, the embodiment of the present application further includes:
step S810: the stored data file comprises entity type information and function type information;
step S820: the entity type information comprises a name, the identification information, a description and a file information list;
step S830: the function type information comprises a storage interface and a handle interface, wherein the storage interface is used for storing file information; the handle interface is used for capturing the file information opened by the Eclipse editor at present and converting the file information into entity information.
Specifically, the entity class information is information that inherits a BaseEntity class, and includes: name, unique ID, description, file information list. The name is a name for distinguishing the working environment, the unique ID is a unique identifier of the working environment, and the identifier is automatically generated by the system; the description is a simple description for helping developers to recall working environments; the file information list stores information such as file names and relative paths. The function type information refers to a function type for storing files or opening files, and private variables of the function type include DbClient and FileHandle interfaces, so that the design is designed to be the expansibility of the whole scheme. The DbClient interface has the main function of storing file information, and the specific storage mode is realized by a specific implementation class. The main function of the FileHandle interface is to capture the file information opened by the current Eclipse editor window, convert the file information into a JAVA entity, and store the file path, file name and other related information by using a database.
In summary, the context protection method and system supporting the Eclipse tool provided by the embodiments of the present application have the following technical effects:
1. the method comprises the steps of obtaining all opened file information through an Eclipse tool interface, converting the file information into JAVA entity information, obtaining JSON data according to the entity information, judging whether the data file exists or not, obtaining first storage information when the data file exists, and closing the opened file after storing the data file according to the first storage information, so that the technical effect of immediately storing part or all files opened by a current editor is achieved.
2. Due to the fact that the Eclipse development tool restores the stored working environment according to the identification information through the identification information, the technical problem that the Eclipse development tool cannot open related files at one time according to functions is solved, and the technical effect that the Eclipse development tool interface is called through the identification ID to restore the stored working environment when needed, namely the stored files are opened is achieved. Through the operation, the technical effect of switching among a plurality of working environments is achieved.
3. Due to the adoption of the mode of verifying and judging whether the data file is successfully converted, the data can be really stored and recorded, and the technical effect of immediately storing part or all files opened by the current editor is achieved.
Example two
Based on the same inventive concept as the context protection method in the foregoing embodiment that supports the Eclipse tool, the present invention further provides a context protection system in the Eclipse tool, as shown in fig. 2, the system includes:
a first obtaining unit 11, where the first obtaining unit 11 is configured to obtain an Eclipse tool interface;
a second obtaining unit 12, where the second obtaining unit 12 is configured to obtain information of all opened files by using the Eclipse tool interface;
a first converting unit 13, where the first converting unit 13 is configured to convert all the file information into entity information;
a third obtaining unit 14, where the third obtaining unit 14 is configured to obtain a data file according to the entity information;
a first judging unit 15, wherein the first judging unit 15 is used for judging whether the data file exists or not;
a fourth obtaining unit 16, where the fourth obtaining unit 16 is configured to obtain first storage information when the data file exists, where the first storage information is used to store data in the data file, and each stored data file has unique identification information;
a fifth obtaining unit 17, where the fifth obtaining unit 17 is configured to obtain a first closing instruction according to the first storage information, and the first closing instruction is configured to close all opened files after the first storage information is completed.
Further, the system further comprises:
a sixth obtaining unit, configured to obtain a corresponding data file according to the identification information;
a seventh obtaining unit, configured to obtain the Eclipse tool interface;
an eighth obtaining unit, configured to obtain an editor handle through the Eclipse tool interface;
a ninth obtaining unit, configured to obtain a first execution instruction according to the editor handle and the data file, where the first execution instruction is to convert data in the data file into entity information and open the entity information in the Eclipse editor.
Further, the system further comprises:
a second judging unit, configured to judge whether the entity information is empty;
a tenth obtaining unit, configured to obtain a first error instruction when the entity information is empty, where the first error instruction is used to throw out abnormal information;
and the second conversion unit is used for converting the entity information into a data file when the entity information is not empty.
Further, the system further comprises:
the third judging unit is used for judging whether the data conversion is successful or not according to the entity information and the data file;
an eleventh obtaining unit configured to obtain a second error instruction when the conversion fails;
and the fourth judging unit is used for judging whether the data file exists or not when the conversion is successful.
Further, the system further comprises:
a twelfth obtaining unit, configured to obtain a second execution instruction when the data file does not exist, where the second execution instruction is an instruction for creating a file;
a thirteenth obtaining unit, configured to obtain second storage information according to the created file, where the second storage information is used to store data in the created file.
Further, the system further comprises:
a fourteenth obtaining unit, where the data file stored in the fourteenth obtaining unit includes entity class information and function class information.
Further, the system further comprises:
a fifteenth obtaining unit, where the entity class information in the fifteenth obtaining unit includes a name, the identification information, a description, and a file information list.
Further, the system further comprises:
a sixteenth obtaining unit, where the function type information in the sixteenth obtaining unit includes a storage interface and a handle interface, where the storage interface is used to store file information; the handle interface is used for capturing the file information opened by the Eclipse editor at present and converting the file information into entity information.
Various variations and specific examples of the context protection method in the first embodiment of fig. 1 that supports the Eclipse tool are also applicable to the context protection system in the first embodiment that supports the Eclipse tool, and through the foregoing detailed description of the context protection method in the first embodiment that supports the Eclipse tool, those skilled in the art can clearly know the implementation method of the context protection system in the first embodiment that supports the Eclipse tool, so for the brevity of the description, detailed descriptions thereof are omitted here.
Exemplary electronic device
The electronic device of the embodiment of the present application is described below with reference to fig. 3.
Fig. 3 illustrates a schematic structural diagram of an electronic device according to an embodiment of the application.
Based on the inventive concept of the context protection method supporting the Eclipse tool in the foregoing embodiments, the present invention further provides a context protection system supporting the Eclipse tool, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the foregoing context protection methods supporting the Eclipse tool.
Wherein in fig. 3 a bus architecture (represented by bus 300), bus 300 may include any number of interconnected buses and bridges, bus 300 linking together various circuits including one or more processors, represented by processor 302, and memory, represented by memory 304. The bus 300 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 306 provides an interface between the bus 300 and the receiver 301 and transmitter 303. The receiver 301 and the transmitter 303 may be the same element, i.e., a transceiver, providing a means for communicating with various other systems over a transmission medium.
The processor 302 is responsible for managing the bus 300 and general processing, and the memory 304 may be used for storing data used by the processor 302 in performing operations.
The embodiment of the invention provides a context protection method supporting Eclipse tools, which comprises the following steps: acquiring an Eclipse tool interface; acquiring all opened file information by using the Eclipse tool interface; converting all the file information into entity information; acquiring a data file according to the entity information; judging whether the data file exists or not; when the data files exist, first storage information is obtained, the first storage information is used for storing data in the data files, and each stored data file has unique identification information; and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished. The technical problem that part or all files opened by a current editor cannot be instantly saved in an Eclipse development tool in the prior art is solved, and the technical effects that the current working environment is instantly saved and all the files opened by the current editor are instantly saved under the Eclipse development tool are achieved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A context protection method supporting Eclipse tool, wherein the method comprises:
acquiring an Eclipse tool interface;
acquiring all opened file information by using the Eclipse tool interface;
converting all the file information into entity information;
acquiring a data file according to the entity information;
judging whether the data file exists or not;
when the data files exist, first storage information is obtained, the first storage information is used for storing data in the data files, and each stored data file has unique identification information;
and obtaining a first closing instruction according to the first storage information, wherein the first closing instruction is used for closing all opened files after the first storage information is finished.
2. The method of claim 1, wherein obtaining the first storage information when the data file exists comprises:
acquiring a corresponding data file according to the identification information;
obtaining the Eclipse tool interface;
acquiring an editor handle through the Eclipse tool interface;
and obtaining a first execution instruction according to the editor handle and the data file, wherein the first execution instruction is to convert data in the data file into entity information and open the entity information in the Eclipse editor.
3. The method as claimed in claim 1, wherein said obtaining the data file according to the entity information comprises:
judging whether the entity information is empty or not;
when the entity information is empty, obtaining a first error instruction, wherein the first error instruction is used for throwing out abnormal information;
and when the entity information is not empty, converting the entity information into a data file.
4. The method of claim 3, wherein after converting the entity information into a data file when the entity information is non-empty, the method comprises:
judging whether the data conversion is successful or not according to the entity information and the data file;
when the conversion fails, obtaining a second error instruction;
and when the conversion is successful, judging whether the data file exists or not.
5. The method of claim 1, wherein said determining whether the data file exists comprises:
when the data file does not exist, obtaining a second execution instruction, wherein the second execution instruction is an instruction for creating a file;
and obtaining second storage information according to the created file, wherein the second storage information is used for storing the data in the created file.
6. The method of claim 1, wherein the stored data file includes entity class information, function class information.
7. The method of claim 6, wherein the entity class information includes a name, the identification information, a description, a file information list.
8. The method of claim 6, wherein the function class information comprises a storage interface, a handle interface, wherein the storage interface is used for storing file information; the handle interface is used for capturing the file information opened by the Eclipse editor at present and converting the file information into entity information.
9. A context protection system supporting Eclipse tools, wherein the system comprises:
a first obtaining unit, configured to obtain an Eclipse tool interface;
a second obtaining unit, configured to obtain information of all opened files by using the Eclipse tool interface;
the first conversion unit is used for converting all the file information into entity information;
a third obtaining unit, configured to obtain a data file according to the entity information;
the first judging unit is used for judging whether the data file exists or not;
a fourth obtaining unit, configured to obtain first storage information when the data file exists, where the first storage information is used to store data in the data file, and each stored data file has unique identification information;
a fifth obtaining unit, configured to obtain a first closing instruction according to the first storage information, where the first closing instruction is used to close all opened files after the first storage information is completed.
10. A context protection system supporting Eclipse tools, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1-8 when executing the program.
CN202011404158.7A 2020-12-04 2020-12-04 Context protection method and system under Eclipse supporting tool Active CN112363708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011404158.7A CN112363708B (en) 2020-12-04 2020-12-04 Context protection method and system under Eclipse supporting tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011404158.7A CN112363708B (en) 2020-12-04 2020-12-04 Context protection method and system under Eclipse supporting tool

Publications (2)

Publication Number Publication Date
CN112363708A CN112363708A (en) 2021-02-12
CN112363708B true CN112363708B (en) 2023-03-10

Family

ID=74535912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011404158.7A Active CN112363708B (en) 2020-12-04 2020-12-04 Context protection method and system under Eclipse supporting tool

Country Status (1)

Country Link
CN (1) CN112363708B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785526B2 (en) * 2013-04-30 2017-10-10 Advantest Corporation Automated generation of a test class pre-header from an interactive graphical user interface
WO2015196451A1 (en) * 2014-06-27 2015-12-30 Microsoft Technology Licensing, Llc System for context-based data protection
WO2017113317A1 (en) * 2015-12-31 2017-07-06 深圳配天智能技术研究院有限公司 File editing method and file editor
US11416421B2 (en) * 2016-07-19 2022-08-16 Cypress Semiconductor Corporation Context-based protection system
CN109582291A (en) * 2018-10-16 2019-04-05 深圳壹账通智能科技有限公司 Develop environment control method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112363708A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
US7877732B2 (en) Efficient stress testing of a service oriented architecture based application
CN110245110A (en) Data processing method, device and storage medium
CN108845940B (en) Enterprise-level information system automatic function testing method and system
US20110145793A1 (en) Method and apparatus to semantically connect independent build and test processes
US20070073724A1 (en) System and method for automatic or semi-automatic software integration
US11667033B2 (en) Systems and methods for robotic process automation
CN111290958B (en) Method and device for debugging intelligent contract
US8676627B2 (en) Vertical process merging by reconstruction of equivalent models and hierarchical process merging
CN113961332A (en) Method and device for realizing workflow engine, electronic equipment and storage medium
CN114398293A (en) Interface test case generation method, electronic device and storage medium
CN113568604B (en) Method and device for updating wind control strategy and computer readable storage medium
CN111506305B (en) Tool pack generation method, device, computer equipment and readable storage medium
Dworzański et al. CPN tools-assisted simulation and verification of nested Petri nets
US8359579B2 (en) Monitoring dynamic aspect oriented applications at execution time
CN112363708B (en) Context protection method and system under Eclipse supporting tool
CN113158195A (en) Distributed vulnerability scanning method and system based on POC script
US20140359258A1 (en) Declarative Configuration Elements
CN114115982A (en) Code issuing method, device, equipment and storage medium
Habibi et al. Generating test as a web service (TaaWS) through a method-based attribute grammar
Kaliappan et al. An approach to synchronize UML-based design components for model-driven protocol development
Vreže et al. Sdl2pml—Tool for automated generation of Promela model from SDL specification
Anabalon et al. Test reduction for easing web service integration
Hackett et al. Going Beyond an Incident Report with TLA
Ayub et al. Sound analysis and migration of data from Ethereum smart contracts
Bouarioua et al. From UML sequence diagrams to labeled generalized stochastic Petri net models using graph transformation

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
GR01 Patent grant
GR01 Patent grant