Questions tagged [plugin.xml]

50 questions
0
votes
0 answers

Eclipse plugin / RCP : Showing menu via handler

I'm looking to create a toolbar with a drop-down menu largely identical to Eclipse's "Open Console" button in the console view. I can do this by programmatically adding actions (which is what the Console View does), however I'm looking to do this…
Dave Carpeneto
  • 1,042
  • 2
  • 12
  • 23
0
votes
0 answers

Eclipse shortcut should only work on selected File or Project in Package Explorer

I want to add some shortcuts to my product which should only be activated if I select a DSL file or a project. There are no contextIDs which I can use so I want to define my own context. The question is if it is possible to define a context which…
cr4zy
  • 13
  • 2
0
votes
1 answer

Eclipse plugin development - customizing editor preference

I'm developing eclipse plugin. When right clicking and chose 'preferences' in my editor plugin it shows two trees 'Appearance' & 'Editors'under 'General'. I want to add few more nodes from Window-->preference which shows code templates, content…
0
votes
0 answers

How to add custom action set to my custom perspective in Eclipse?

Is there a way to define custom action set that will be visible only when i switch to my custom perspective? extension point="org.eclipse.ui.perspectiveExtensions">
dicle
  • 1,122
  • 1
  • 12
  • 40
0
votes
0 answers

Eclipse plugin - issue passing empty command arguments from option preference in plugin.xml

I need to send empty command argument from an option preference implemented in plugin.xml when building the eclipse project. My approach is the addition of commandGenerator option attribute, very similar implementation as applicabilityCalculator I…
MELS
  • 57
  • 1
  • 7
0
votes
1 answer

Calling a command id in the handler of plugin

I have a menu that triggers Run(Ctrl + F11) but I want to do more action than Run. I want to call the command id of run in the handler public class CheckCodesHandler extends AbstractHandler{ @Override public Object execute(ExecutionEvent…
JSC
  • 47
  • 8
0
votes
2 answers

How can I add popup menu in Project explorer context menu, only for .java files in project

How can I add popup menu in Project explorer context menu, only for .java files in project. Trying to make some plugin for some tests but I don't know how to get this menu to appear only for .java type of file. I did it for txt file using…
squlerr
  • 11
  • 8
0
votes
1 answer

Eclipse RCP generates plugin.xml which indent with spaces

Recently I need to setup Eclipse RCP 3.7 (Indigo) for indenting with tabs in XML-files. I've set Preferences → XML → XML Files → Editor → ◉ Indent using tabs, but visual constructor of plugin.xml generates space-indented xml whatever. How can I do…
Eddie R
  • 399
  • 1
  • 3
  • 8
0
votes
0 answers

Accessing a variable from a plugin.xml

I am currently working on an Explorer for a Eclipse RCP plugin. Nodes in that explorer have a context menu in which the user can select a toggle box, choosing to set a boolean. This context menu comes from a plugin.xml. Both its initial and current…
Tobi
  • 49
  • 7
0
votes
2 answers

Eclipse plug-in: Custom plugin.xml like editor

I've been trying to mimic the plugin.xml editor in my own Eclipse plug-in. I want a graphical editor for a custom file type. The same way in which PDE has a specific form/editor to open plugin.xml. From what I understand I can implement a text…
Araf
  • 353
  • 5
  • 11
0
votes
1 answer

Cordova Plugin: Add custom framework using weak linking

In my plugin.xml, I'm trying to declare a custom .framework and have it weak linked, but once I open Xcode I see the added framework is still marked as "required" instead of "optional". Here's my plugin.xml entry:
Alon Amir
  • 4,913
  • 9
  • 47
  • 86
0
votes
1 answer

Enable plugin only on certain folder (Eclipse RCP)

I created a simple Eclipse plugin, to launch a wizard and create some files, everything is working, I also added an option lo launch the wizard from the New > Mi Wizard menu, but now I want to display this option only when I right click an specific…
CIOC
  • 1,385
  • 3
  • 19
  • 48
0
votes
0 answers

Create conditions in Eclipse plugin.xml

Is there a way to create conditions (similar to if/else blocks) in the Eclipse plugin.xml's files. I'm creating a Eclipse plugins in which I need to set a different value depending on the project facet, I'm getting the project facet using:
CIOC
  • 1,385
  • 3
  • 19
  • 48
0
votes
0 answers

Eclipse plug-in: why doesn't my menu contribution show up after using a shortcut?

I wanted to add a menu item to the Source popup, and I got it working with the following plugin.xml fragment:
siledh
  • 3,268
  • 2
  • 16
  • 29
0
votes
1 answer

How to modify the tooltip for various eclipse commands e.g. Paste, Cut, Copy

I want to modify the existing tool tip text.I have following lines in plugin.xml in plugin.properties pasteAction.TIP=Paste Existing…
Karn
  • 79
  • 8