[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: How to disable the rightclick menu on FileResource

Thanks Simon...I believe the message is fine. I'll check UCD people though.
However, just out of my curiosity, I saw "class" file in JAVA project changes
the "Open with" menu to"Open Type Hierachy"....You can test it by creating JAVA
project and look at class file in JRE_LIB.

I looked at org.eclipse.jdt.internal.ui.javaeditor.ClassFileEditor and some
other classes but couldn't figure out how you did it.....

File resource menus are not part of ITextEditorActionConstants, right?

Thanks,
Soonthorn A.

Simon Arsenault wrote:

> The message is informing you that on this machine, there is no external
> editor registered for the file type. However, it could very well be another
> machine would have one. So if we allowed the external editor menu option to
> be disabled, it would prevent users from accessing the external editor on
> machines where one exist for the file type.
>
> Choosing "Open With > External Editor" allows the user to open the same
> editor as would be opened if they went to the file system and double clicked
> on the file.
>
> Was there a problem with the message being displayed? (i.e. are users
> complaining about it...if so, about what?) Or did choosing this menu option
> cause other problems beside the message being displayed?
>
> Simon :-)
>
> "Soonthorn Ativanichayaphong" <soonthor@xxxxxxxxxx> wrote in message
> news:3B54878C.E37A3A1B@xxxxxxxxxxxxx
> > Hi Simon,
> >
> > Let's say one of my plugin extends TextEditor. I have some problems trying
> to
> > open it with "System Editor" under "Open With" menu. Window Error message
> is
> > Unable to open external editor for <filename>....
> >
> > So I'd like to disable this "OpenWtih ->System Editor" for the specific
> file
> > extension.
> >
> >
> > Simon Arsenault wrote:
> >
> > > The right click popup menu on a file resource cannot be disabled. Any
> plugin
> > > can contribute items to this menu so it cannot be controlled by one
> plugin.
> > >
> > > Also, the Open With sub-menu of the popup cannot be disabled. Again,
> other
> > > plugins can "contribute" to this sub-menu by registering editors for
> various
> > > file types.
> > >
> > > What are you trying to accomplish? Maybe if you described the problem
> you
> > > are trying to solve we could provide other possible solutions.
> > >
> > > Simon :-)
> > >
> > > "Soonthorn Ativanichayaphong" <soonthor@xxxxxxxxxx> wrote in message
> > > news:9ivkj8$3j4$1@xxxxxxxxxxxxxxxx
> > > > Hi,
> > > >
> > > > Anyone know how to disable the right-click menu on the file resource
> > > > (Open With menu). What method should I override? Thanks in advance...
> > > >
> > > > Soonthorn A.
> > > >
> >