| Forum: Rich Client Platform (RCP) |
|---|
| Topic: Scrolling the form with tableviewer |
|---|
| Scrolling the form with tableviewer [message #1063599] |
Thu, 13 June 2013 09:27 |
Pavel Minin Messages: 1 Registered: June 2013 |
Junior Member |
|
|
Hi all!
I'm new to swt, rcp and java in general and now i'm trying to solve one problem:
There is a ScrolledForm with vertical scrollbar, and TableViewer on the form (table has no scrollbars) and other controls on form, so the form content has greater height than the form. When i scroll the form with mouse wheel, and the cursor position is over the table, the form doesn't scroll. When cursor is not over the table scrolling goes ok.
Tell me please, is that normal, or i need to handle scrolling event on table sending it to form or something.
Thanks in advance,
Pavel Minin.
|
|
|
| Topic: Eclipse RCP APPlication |
|---|
Eclipse RCP APPlication [message #1063080] |
Wed, 12 June 2013 03:59 |
Sagnick Banerjee Messages: 2 Registered: June 2013 |
Junior Member |
|
|
|
How can i come to know whether my view got dispose or not and if view gets disposed stop all jobs running inside that view and release all handlers
|
|
|
| Topic: If I create clones of a perspective, can I make them independent of each other? |
|---|
| If I create clones of a perspective, can I make them independent of each other? [message #1063042] |
Tue, 11 June 2013 17:00 |
Paul G Messages: 1 Registered: June 2013 |
Junior Member |
|
|
I am a bit confused on how much i can do with perspectives. I have a perspective created in my plugin.xml, and a couple of views. In MyPerspective.java, I included and placed all the views exactly how I want them. Now, out of all these views, maybe 2 or 3 are dependent on a specific object. I do not know how many of these objects the client/user is going to have. So my idea was/is to create new instances of my perspective. I am trying to use the clone ability in IPerspectiveRegistry in the preStartUp() method of WorkbenchAdvisor:
IPerspectiveRegistry registry = PlatformUI.getWorkbench().getPerspectiveRegistry();
IPerspectiveDescriptor perspective = registry.findPerspectiveWithId(PERSPECTIVE_ID);
for (ObjectDefinition objectDef : DefinitionUtil.getObjectDefinitions()) {
IPerspectiveDescriptor newPerspective = registry.clonePerspective("perspectives." + objectDef.getUniqueCode(),
objectDef.getName(), perspective);
Running my application I get the list of all these perspectives with their different name. My big question:
-All my perspective seem to share the same views. For example, if I edit something in one, it shows the exact same thing in all of them. Is there a way to make them all independent?
Thank you very much! This will help me alot
|
|
|
| Topic: EditorPart: getClientArea() before Control is painted |
|---|
| EditorPart: getClientArea() before Control is painted [message #1062957] |
Tue, 11 June 2013 10:20 |
some coder Messages: 1 Registered: June 2013 |
Junior Member |
|
|
Hello,
i have a Eclipse RCP application (for Eclipse 3.2). Now i am converting the application to Eclipse 4.2. Today i found a "new Bug" in my app which occurs because of different behaviour in Eclipse 4.2.
1. In my app i have a case where i create a editor which extends the EditorPart class.
2. This editor class creates a canvas in the createPartControl() function
3. later (after opening the editor with WorkbenchPage.openEditor) i create a BIRT chart.
4. after that the canvas draws the chart if the paint event occurs.
My problem is that i need to know the size of the client area of the canvas in step 3 before creating the chart. but i found that canvas.getClientArea() returns {0,0,0,0} if the paint event hasn't been fired.
So does anybody know how to get the size of the client area of a canvas (which is part of a EditorPart-class) befor it is drawn? I hope i could explain my problem.
|
|
|
Powered by
FUDForum. Page generated in 0.06379 seconds