Several questions to be asked. [message #437714] |
Mon, 03 October 2005 17:20 |
Eclipse User |
|
|
|
Originally posted by: qingxing20052.gmail.com
Dear all:
I am one newbiee in RCP application. There are some problems to be solved
under your helps. :0)
Q1:
*I use VE 1.1 to edit one java file (UI view) that is used as view file of
RCP application. The requirements are as follows:
In this UI java file, there are some customized buttons, e.g. Open, Close,
Save and so forth.
But from my experience, it is easy to define/implement them in SWT/Jface
Javafile, I don't know how to code in RCP application. E.g. For "Open"
functionality, the file dialog is used as usual. The command is following:
FileDialog fileChooser = new FileDialog(shell, SWT.OPEN);
But there is one key question: in this RCP view file, there is no shell.
Moreover, there are only composites. But it seems like that there is
something wrong when it is defined as
FileDialog fileChooser = new FileDialog(composite, SWT.OPEN);
I succeeded in SWT file, since I can use shell there. But in RCP, I can't
find out where the shell is.
Q2:
* In this RCP application, I want to create one customized menu and item.
E.g. Item A in menu B where item A will Popup one Window (UI window),
whereas Menu B is customized Menu that includes item A. It is also my
achievement.
It is very clear to see how to creat MessagePopupAction from your RCP mail
example. But there is not any WindowPopupAction. So how I should do to get
my achievements.
Q3:
* I am one newbiee in RCP, I have seen RCP tutorials in Eclipse websites
(RCP tutorials 1,2,3). But I don't get so much as expected. Are there any
other useful links?
Does anyone can give me some suggestions or solutions?
Thx for your help and kindness,
B.W.
N.B.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02468 seconds