Skip to main content


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 08:26 Go to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior 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 17:27 Go to previous messageGo to next message
eshvar60  is currently offline eshvar60 Friend
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 12:47 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior 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 16:06 Go to previous messageGo to next message
eshvar60  is currently offline eshvar60 Friend
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 12:00 Go to previous messageGo to next message
cenk Mising name is currently offline cenk Mising nameFriend
Messages: 159
Registered: July 2009
Senior 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 14:03 Go to previous message
eshvar60  is currently offline eshvar60 Friend
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: Fri Apr 19 22:29:54 GMT 2024

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

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

Back to the top