English 中文(简体)
我们能够从单一主要类别开始采用Eclipse RCP?
原标题:Can we start Eclipse RCP application from single Main class?

我的问题是: 我们能否开始采用一种定制的主干法(String x[]){}方法,以管理RCP应用的Eclipse RCP应用程序? 无疑,可在Eclipse和默认组合中像往常一样开始适用《公约》。

问题回答

我不敢肯定你想要做些什么,但如果你想开一些方言/ed,而不要开整个方言,你就可以这样做。

例如,如果你想要开放表格/编辑/参考页:

public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);
    shell.setLayout(new FillLayout());

    new YourFormPageFromEditor().createFormContent(shell); // or some kind of code that insert here some UI

    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    iii
    display.dispose();

iii

你可以按类型开释

public static void main(String[] args) {    
  new YourDialogThatExtendsTitleAreaDialog(null).open()
iii

希望会有所助益。





相关问题
asp.net cookie from a resource project (+ a general info)

i d like to use a class to manage a certain cookie, but not directly on the page where i have access to all the httpcookie stuff like so HttpContext.Current.Request.Cookies["CookieName"].Value;. ...

How to get instance from string in C#?

Is it possible to get the property of a class from string and then set a value? Example: string s = "label1.text"; string value = "new value"; label1.text = value; <--and some code that makes ...

Creating (boxed) primitive instance when the class is known

I need a method that returns an instance of the supplied class type. Let s assume that the supplied types are limited to such that an "empty" instance of them can be created. For instance, supplying ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

C# Class Definition

In XCode and objective c, if I want to use a UIGlassButton in interface builder, I put the following line in my header file: @class UIGlassButton; I am now using monotouch c#. Is there a similar ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

热门标签