Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to include Tasks View
How to include Tasks View [message #437321] Tue, 27 September 2005 11:51 Go to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

I am using the following code in my perspective class to include the
tasks view. It appears on the screen properly but any tasks that I add
are not persisted. After closing and reopening my RCP - the task list
gets cleared. Is there something else I need to do to enable the basic
functionality of the Task View...

IFolderLayout leftLower = layout.createFolder(FOLDER_LEFT_LOWER,
IPageLayout.BOTTOM, 0.5f, FOLDER_LEFT_UPPER);
leftLower.addView(IPageLayout.ID_TASK_LIST);
Re: How to include Tasks View [message #437326 is a reply to message #437321] Tue, 27 September 2005 13:08 Go to previous messageGo to next message
Florian Thienel is currently offline Florian ThienelFriend
Messages: 17
Registered: July 2009
Junior Member
Maybe your resource markers are not persistent. Check your extension to
org.eclipse.core.resource.markers. It has to contain the
<persistent>-Elements like here:

<extension
id="validation"
name="%ext.markers.validation"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<persistent
value="true">
</persistent>
</extension>

-

Florian


Brian Berry wrote:
> I am using the following code in my perspective class to include the
> tasks view. It appears on the screen properly but any tasks that I add
> are not persisted. After closing and reopening my RCP - the task list
> gets cleared. Is there something else I need to do to enable the basic
> functionality of the Task View...
>
> IFolderLayout leftLower = layout.createFolder(FOLDER_LEFT_LOWER,
> IPageLayout.BOTTOM, 0.5f, FOLDER_LEFT_UPPER);
> leftLower.addView(IPageLayout.ID_TASK_LIST);
Re: How to include Tasks View [message #437346 is a reply to message #437326] Tue, 27 September 2005 18:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bdberry.us.ibm.com

Even if I do the following in my action that creates the marker it still
gets lost after restarting the RCP app...

marker = resource.createMarker(IMarker.TASK);
marker.setAttribute(IMarker.TRANSIENT, true);
marker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_NORMAL);
marker.setAttribute(IMarker.MESSAGE, "Element reminder");
Re: How to include Tasks View [message #437347 is a reply to message #437346] Tue, 27 September 2005 18:20 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Brian Berry wrote:
> Even if I do the following in my action that creates the marker it still
> gets lost after restarting the RCP app...
>
> marker = resource.createMarker(IMarker.TASK);
> marker.setAttribute(IMarker.TRANSIENT, true);

TRANSIENT = true means that it is a transient marker, even if that
marker type is declared persistent.

This would seem to be the opposite of what you want.

Later,
PW


Previous Topic:use of eclipse code in the rcp - plugin dependencies vs jar files
Next Topic:rcpapplication: creating menu in menubar by plugin?
Goto Forum:
  


Current Time: Sun Dec 08 06:25:39 GMT 2024

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

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

Back to the top