Skip to main content



      Home
Home » Eclipse Projects » GEF » Open With Options.
Open With Options. [message #95691] Mon, 29 September 2003 06:04 Go to next message
Eclipse UserFriend
Originally posted by: sunilvi.noida.hcltech.com

I have created two Editors for particular type of file Namely DCEditor and
MDEditor.
When i right click on the file it should give OPEN WITH options for Both
Editor. And i also want that i can put some condition for Open With ie if
file size is greater than 100kb then MDEditor option seems enabled
otherwise not.
How can i do this.


Sunil Virmani
Re: Open With Options. [message #95783 is a reply to message #95691] Mon, 29 September 2003 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: delee.ATusDOT.ibm.com

Not sure about the size constraint issue, but to get both editors in the
Open With dialog, you should be able to add both file suffixes to your
editor's "extensions" field in plugin.xml.

For example in the logic example:
<extension
point="org.eclipse.ui.editors">
<editor
name="%Logic_example_graphical_editor_name"
default="true"
icon="logic.gif"
extensions="logic"

contributorClass="org.eclipse.gef.examples.logicdesigner.actions.LogicAction
BarContributor"
class="org.eclipse.gef.examples.logicdesigner.LogicEditor"
id="Logic Graphical Editor">
</editor>
</extension>

If you changed extensions="logic" to extensions="logic, logic2", the logic
editor would show up as a choice of files that ended with .logic and
..logic2.


"Sunil Virmani" <sunilvi@noida.hcltech.com> wrote in message
news:bl9043$cmi$1@eclipse.org...
> I have created two Editors for particular type of file Namely DCEditor and
> MDEditor.
> When i right click on the file it should give OPEN WITH options for Both
> Editor. And i also want that i can put some condition for Open With ie if
> file size is greater than 100kb then MDEditor option seems enabled
> otherwise not.
> How can i do this.
>
>
> Sunil Virmani
>
Re: Open With Options. [message #95799 is a reply to message #95691] Mon, 29 September 2003 11:09 Go to previous message
Eclipse UserFriend
Originally posted by: delee.ATusDOT.ibm.com

Also, you might consult the eclipse.platform group about the file size
question.

"Sunil Virmani" <sunilvi@noida.hcltech.com> wrote in message
news:bl9043$cmi$1@eclipse.org...
> I have created two Editors for particular type of file Namely DCEditor and
> MDEditor.
> When i right click on the file it should give OPEN WITH options for Both
> Editor. And i also want that i can put some condition for Open With ie if
> file size is greater than 100kb then MDEditor option seems enabled
> otherwise not.
> How can i do this.
>
>
> Sunil Virmani
>
Previous Topic:NullPointerException Stacktrace
Next Topic:how can i get the example name readme?
Goto Forum:
  


Current Time: Mon Sep 15 16:19:25 EDT 2025

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

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

Back to the top