简体   繁体   English

创建新的Eclipse插件

[英]Creating new Eclipse Plugin

4 months left to my high school exam, among other things I will write IT exam, there will be theory + 3 programming exercises. 我的高中考试还有4个月的时间,除其他事项外,我还将撰写IT考试,其中包括理论+ 3个编程练习。

I have been coding a lot of such similar exercises, to test myself, I will be using JAVA to code during exam, and I figured out, that even while I know exactly how to solve exercise - it takes to long. 我已经编写了很多类似的练习,以测试自己,我将在考试期间使用JAVA进行编码,而且我发现,即使我确切地知道如何解决练习,也要花很长时间。 So I have been thinking about trick to reduce time spent on basic things, for example creating new Class, lets say Person.java (short example) 因此,我一直在考虑减少花在基本事情上的时间的技巧,例如创建新的Class,比如说Person.java(简短示例)

private class Person
{
    private int _id;
    private String _name;
    private String _surname;
    private String _phone;
    private String _adress;

    public Person(int id, String name, String surname, String phone, String adress) 
    {
        _id = id;
        _name = name;
        _surname = surname;
        _phone = phone;
        _adress = adress;
    }

    // and here getters for those variables ... 
} 

Its takes couple of minutes to write all those classes holding informations, and in most cases I will be forced to write many such classes, with much more variables to solve exercises, and since I can spend only 50 minutes at every exercise (3 exercises, whole test takes 150 minutes) I'm a bit worried, so I think I will create some kind of eclipse plugin, to generate some code. 写所有这些包含信息的类需要花费几分钟,在大多数情况下,我将被迫编写许多此类类,其中包含更多变量来解决练习,并且由于我每次练习只能花费50分钟(3个练习,整个测试需要150分钟),我有点担心,所以我想我将创建某种eclipse插件,以生成一些代码。

Lets say I have pressed CTRL+F12 and now little window appear, where I can fill variables, which my class should store, and of course providing their type (so in my previous class example it would be int id, String name and so on) Its noting hard obviously, but I wanted to ask, maybe there is something similar already, so I won't waste time to learn how to make my own plugin's. 可以说我按下了CTRL + F12,现在出现了一个小窗口,我可以在其中填充变量,这些变量应该由我的班级存储,并且当然要提供它们的类型(因此,在我之前的班级示例中,它是int id,String name等。 )这显然很困难,但是我想问一下,也许已经有类似的东西了,所以我不会浪费时间学习如何制作自己的插件。

Thanks in advance for help! 在此先感谢您的帮助!

To create this type of application you have to create plugin application in eclipse.i provide you link that will help you to create eclipse plugin 要创建这种类型的应用程序,您必须在eclipse.i中创建插件应用程序。i提供您可以帮助您创建eclipse插件的链接

http://www.eclipsepluginsite.com/index.html http://www.eclipsepluginsite.com/index.html

this tutorial contains very basic to create plugin in eclipse 本教程包含在eclipse中创建插件的基本知识

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM