Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disable/Enable 'Save As...'
Disable/Enable 'Save As...' [message #551107] Thu, 05 August 2010 09:26 Go to next message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
This is my problem:
I use Common Navigator Framework to display files in a folder. When user clicks on particular files (for simplicity lets say starting with "Report"), I would like to disable "Save As..." menu item and toolbar button and for all other items enable it. Is there any simple way of doing this?.
Any help greatly appreciated,
Regards,
Janusz
Re: Disable/Enable 'Save As...' [message #551336 is a reply to message #551107] Fri, 06 August 2010 05:16 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 05/08/10 2:56 PM, Janusz Dalecki wrote:
> This is my problem:
> I use Common Navigator Framework to display files in a folder. When user
> clicks on particular files (for simplicity lets say starting with
> "Report"), I would like to disable "Save As..." menu item and toolbar
> button and for all other items enable it. Is there any simple way of
> doing this?.
> Any help greatly appreciated,
> Regards,
> Janusz
>

Your EditorPart.isSaveAsAllowed() should return false

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Disable/Enable 'Save As...' [message #551339 is a reply to message #551336] Fri, 06 August 2010 05:29 Go to previous messageGo to next message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
The problem is that when user clicks on the tree viewer ("Link With Editor" is on) the handler isSaveAsAllowed is not called. It is called only if I open editor or click on the tab of any already opened editors.
Cheers,
Janusz
Re: Disable/Enable 'Save As...' [message #551960 is a reply to message #551339] Tue, 10 August 2010 10:09 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 06/08/10 10:59 AM, Janusz Dalecki wrote:
> The problem is that when user clicks on the tree viewer ("Link With
> Editor" is on) the handler isSaveAsAllowed is not called. It is called
> only if I open editor or click on the tab of any already opened editors.
> Cheers,
> Janusz

Sounds like a bug to me. Can you please open a bug with sample
code/steps to reproduce? : http://bit.ly/NewBugInPlatformUI

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Re: Disable/Enable 'Save As...' [message #552639 is a reply to message #551960] Fri, 13 August 2010 01:47 Go to previous message
Janusz Dalecki is currently offline Janusz DaleckiFriend
Messages: 63
Registered: January 2010
Location: Sydney
Member
Thanks Prakash,
I have submitted the bug as Bug 322610.
Cheers,
Janusz
Previous Topic:Hiding file extension in CNF
Next Topic:3.6 distro for Solaris?
Goto Forum:
  


Current Time: Mon Jan 25 01:40:39 GMT 2021

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

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

Back to the top