Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » CommonNavigator 2 questions
CommonNavigator 2 questions [message #554040] Thu, 19 August 2010 14:54 Go to next message
Eclipse UserFriend
1) What is the proper way to handle doubleClick on an extended item provided
by the ITreeContentProvider. Currently doubleClick on an IFile triggers a
retargted OpenFileAction, I would like to add my own action for tree items
not of type IFile.

2) What is the most typical way to handle refreshing the
ITreeContentProvider when chnages are made to the underlying object
structure. Should the tree just refresh after file save (the tree is
composed of IFiles where the contents are expanded to show the children
inside the IFile), or is it more typical to listent at the node level and
modify the tree nodes on granular chnages.
Re: CommonNavigator 2 questions [message #554627 is a reply to message #554040] Mon, 23 August 2010 14:27 Go to previous message
Eclipse UserFriend
1) hacked my custom CommonNavigator::handelDoubleClick(), probably not the
right way, but it works
2) in my custom CommonNavigator impl IResourceChangeListener, to handle file
chnages and refresh the viewer. Good enough for the time being.


"Drew" <drew@acm.org> wrote in message
news:i4julu$9o6$1@build.eclipse.org...
> 1) What is the proper way to handle doubleClick on an extended item
> provided by the ITreeContentProvider. Currently doubleClick on an IFile
> triggers a retargted OpenFileAction, I would like to add my own action for
> tree items not of type IFile.
>
> 2) What is the most typical way to handle refreshing the
> ITreeContentProvider when chnages are made to the underlying object
> structure. Should the tree just refresh after file save (the tree is
> composed of IFiles where the contents are expanded to show the children
> inside the IFile), or is it more typical to listent at the node level and
> modify the tree nodes on granular chnages.
>
>
Previous Topic:EFS and IResource - no links
Next Topic:How to get .swf running in a external browser?
Goto Forum:
  


Current Time: Sun Jul 06 11:05:36 EDT 2025

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

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

Back to the top