Skip to main content


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 18:54 Go to next message
drew frantz is currently offline drew frantzFriend
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 18:27 Go to previous message
drew frantz is currently offline drew frantzFriend
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: Thu Apr 25 00:43:36 GMT 2024

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

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

Back to the top