Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CommonNavigator 2 questions
CommonNavigator 2 questions [message #554040] Thu, 19 August 2010 14:54 Go to next message
drew frantz is currently offline drew frantz
Messages: 340
Registered: July 2009
Senior Member
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
drew frantz is currently offline drew frantz
Messages: 340
Registered: July 2009
Senior Member
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: Fri Jul 25 14:27:53 EDT 2014

Powered by FUDForum. Page generated in 0.03822 seconds