Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » sticky view
sticky view [message #632497] Wed, 13 October 2010 04:26 Go to next message
cenk Mising name is currently offline cenk Mising name
Messages: 99
Registered: July 2009
Member
Hi;
Is it possible size of sticky view in eclipse 3.6. Because of it is not
possible version 3.4 and older
I want to add view will be active in all perspective. Sticky view is ok.But
I can't adjust size
Re: sticky view [message #632650 is a reply to message #632497] Wed, 13 October 2010 13:27 Go to previous messageGo to next message
eshvar60  is currently offline eshvar60
Messages: 51
Registered: March 2010
Member
Yes I actually had the same problem as you with a console view that I wanted in all perspective. The solution is to create the view as normal, then create a stick view in your plugin.xml and link it to your view.

In your ViewPart class have your part "implements ISizeProvider".

This will add two methods:

int getSizeFlags(boolean width){
return SWT.MAX; // My implementation
}

int computePreferredSize(boolean widht, int avail.......){
return xxx;// In here put in w/e width you want to return
}

Let me know if you have more questions.
Re: sticky view [message #632841 is a reply to message #632650] Thu, 14 October 2010 08:47 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising name
Messages: 99
Registered: July 2009
Member
Thank you for your answer. It is work. But There is a other question. I want
to add stciky view as a standalone.I dont want to title?
How can I make it?

"eshvar60" <eshvar60@gmail.com> wrote in message
news:i94q09$sor$1@news.eclipse.org...
> Yes I actually had the same problem as you with a console view that I
> wanted in all perspective. The solution is to create the view as normal,
> then create a stick view in your plugin.xml and link it to your view.
> In your ViewPart class have your part "implements ISizeProvider".
> This will add two methods:
>
> int getSizeFlags(boolean width){
> return SWT.MAX; // My implementation
> }
>
> int computePreferredSize(boolean widht, int avail.......){
> return xxx;// In here put in w/e width you want to return
> }
>
> Let me know if you have more questions.
Re: sticky view [message #633864 is a reply to message #632841] Tue, 19 October 2010 12:06 Go to previous messageGo to next message
eshvar60  is currently offline eshvar60
Messages: 51
Registered: March 2010
Member
In your plugin.xml set the views showtitle property to false?
Re: sticky view [message #634837 is a reply to message #633864] Sun, 24 October 2010 08:00 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising name
Messages: 99
Registered: July 2009
Member
So sorry. I cant see any property abaout show title in plugin.xml

"eshvar60" <eshvar60@gmail.com> wrote in message
news:i9kffb$oqq$1@news.eclipse.org...
> In your plugin.xml set the views showtitle property to false?
Re: sticky view [message #635347 is a reply to message #634837] Tue, 26 October 2010 10:03 Go to previous message
eshvar60  is currently offline eshvar60
Messages: 51
Registered: March 2010
Member
Actually my fault for not explaining more.

If you are adding your view to a perspective using the "eclipse.ui.perspectiveExtensions" then the view that you have added there should have a property called "showTitle"(among others). Set this to true/false depending on your needs.
Previous Topic:Extend existing extension point
Next Topic:Transfering data between views and action
Goto Forum:
  


Current Time: Thu Aug 21 08:27:27 EDT 2014

Powered by FUDForum. Page generated in 0.01791 seconds