Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Several questions to be asked.
Several questions to be asked. [message #437714] Mon, 03 October 2005 17:20 Go to next message
Eclipse UserFriend
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.
Re: Several questions to be asked. [message #437742 is a reply to message #437714] Mon, 03 October 2005 20:39 Go to previous message
Mike Haller is currently offline Mike HallerFriend
Messages: 11
Registered: July 2009
Junior Member
eclipse.newcomer wrote:
> Q1:
> I succeeded in SWT file, since I can use shell there. But in RCP, I can't
> find out where the shell is.

PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShel l();
Previous Topic:Show a view as a 'detached view' by code ?
Next Topic:Is it possible to control where the log files is generated?
Goto Forum:
  


Current Time: Sat Dec 07 17:51:11 GMT 2024

Powered by FUDForum. Page generated in 0.02468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top