Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problems View not showing correctly with an active editor
Problems View not showing correctly with an active editor [message #329446] Tue, 24 June 2008 18:41
Eclipse UserFriend
Originally posted by: aaron.hohenbrink.ngc.com

Hi! I have created an Eclipse plug-in application that contains a view
and 1 or more editors that extend MultiPageEditorPart. A perspective has
been created so that the placeholder is set for where the Problems View
should be displayed on the screen. This placeholder is set to be the
bottom 25% underneath the editor area. When I open up the project, I check
for errors in the input file and want to be able to have the Problems View
show up on the screen without the user having to specifically open up that
view if there are any errors. I have code that checks for errors and then
calls showView(IPageLayout.ID_PROBLEM_VIEW). When opening the project, if
I call getActiveEditor() and it is null (even if I have several editors
open), the problems view always shows up correctly. If the active editor
is not null, then I notice an oddity. The first time I try to open the
project up in that state, the area for the editors is shrunk down to the
proper size to have the Problems View beneath it. The problem is is that
only the outline of the Problems View is showing. If I close up the
project and come back in, the Problems View is displayed correctly. The
Problems View will then show up correctly every time I start the project
until I close the Problems View and try to open it up again the next time
I open up the project. Here's the line of code I am using to display the
Problems View:

getViewSite().getPage().showView(IPageLayout.ID_PROBLEM_VIEW );

Does anyone have any idea why this odd behavior might be occurring?

Thanks!

Aaron
Previous Topic:Problem: 2 minutes to open a java file
Next Topic:Re: Busy Section
Goto Forum:
  


Current Time: Tue Jul 02 17:24:27 GMT 2024

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

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

Back to the top