Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-02-28 09:56:41 +0000
committerTobias Schwarz2013-02-28 09:56:41 +0000
commitff1b5c99468d064238b7448cb7306a58959535c0 (patch)
tree9bde6641767f819d901dfa819bb33ad59ad08697 /target_explorer/plugins/org.eclipse.tcf.te.ui.views
parent033c2475f2b7cfcffac14c9693638636b3d836d1 (diff)
downloadorg.eclipse.tcf-ff1b5c99468d064238b7448cb7306a58959535c0.tar.gz
org.eclipse.tcf-ff1b5c99468d064238b7448cb7306a58959535c0.tar.xz
org.eclipse.tcf-ff1b5c99468d064238b7448cb7306a58959535c0.zip
Target Explorer: add new property tester
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.ui.views')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml1878
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/internal/categories/CategoryPropertyTester.java338
2 files changed, 1116 insertions, 1100 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
index 44d00261f..373822f85 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/plugin.xml
@@ -1,935 +1,943 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-
-<!-- Extension Points -->
- <extension-point id="editorPageBindings" name="%ExtensionPoint.editorPageBindings.name" schema="schema/editorPageBindings.exsd"/>
- <extension-point id="editorPages" name="%ExtensionPoint.editorPages.name" schema="schema/editorPages.exsd"/>
- <extension-point id="categories" name="%ExtensionPoint.categories.name" schema="schema/categories.exsd"/>
- <extension-point id="labelProviderDelegates" name="%ExtensionPoint.labelProviderDelegates.name" schema="schema/labelProviderDelegates.exsd"/>
-
-<!-- Common Navigator contributions -->
- <extension point="org.eclipse.ui.navigator.viewer">
- <viewer
- helpContext="org.eclipse.tcf.te.ui.views.View"
- viewerId="org.eclipse.tcf.te.ui.views.View">
- <popupMenu
- id="org.eclipse.tcf.te.ui.views.View#Popup"
- allowsPlatformContributions="true">
- <insertionPoint name="group.new" separator="true"/>
- <insertionPoint name="group.goto"/>
- <insertionPoint name="group.expandto" separator="true"/>
- <insertionPoint name="group.expand"/>
- <insertionPoint name="group.open" separator="true"/>
- <insertionPoint name="group.openWith"/>
- <insertionPoint name="group.showIn"/>
- <insertionPoint name="group.connect" separator="true"/>
- <insertionPoint name="group.redirect" separator="true"/>
- <insertionPoint name="group.symbols" separator="true"/>
- <insertionPoint name="group.symbols.rd"/>
- <insertionPoint name="group.symbols.loadunload"/>
- <insertionPoint name="group.symbols.additions"/>
- <insertionPoint name="group.launch" separator="true"/>
- <insertionPoint name="group.launch.rundebug"/>
- <insertionPoint name="group.launch.modes"/>
- <insertionPoint name="group.launch.additions"/>
- <insertionPoint name="group.show" separator="true"/>
- <insertionPoint name="group.edit" separator="true"/>
- <insertionPoint name="group.delete"/>
- <insertionPoint name="group.build" separator="true"/>
- <insertionPoint name="group.importexport" separator="true"/>
- <insertionPoint name="group.refresh" separator="true"/>
- <insertionPoint name="group.syncop"/>
- <insertionPoint name="group.categories" separator="true"/>
- <insertionPoint name="group.reorganize"/>
- <insertionPoint name="group.reorder"/>
- <insertionPoint name="group.port"/>
- <insertionPoint name="group.generate" separator="true"/>
- <insertionPoint name="group.search" separator="true"/>
- <insertionPoint name="group.connection" separator="true"/>
- <insertionPoint name="group.operations" separator="true"/>
- <insertionPoint name="group.analysis" separator="true"/>
- <insertionPoint name="group.filter" separator="true"/>
- <insertionPoint name="additions" separator="true"/>
- <insertionPoint name="group.properties" separator="true"/>
- </popupMenu>
- <options>
- <property
- name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
- value="true">
- </property>
- <property
- name="org.eclipse.ui.navigator.hideAvailableCustomizationsDialog"
- value="true">
- </property>
- <property
- name="org.eclipse.ui.navigator.enforceHasChildren"
- value="true">
- </property>
- </options>
- </viewer>
-
- <viewerContentBinding viewerId="org.eclipse.tcf.te.ui.views.View">
- <includes>
- <contentExtension
- pattern="org.eclipse.tcf.te.ui.views.navigator.*">
- </contentExtension>
-
- </includes>
- </viewerContentBinding>
-
- <viewerActionBinding
- viewerId="org.eclipse.tcf.te.ui.views.View">
- <includes>
- <actionExtension
- pattern="org.eclipse.tcf.te.ui.views.navigator.actions.*">
- </actionExtension>
- </includes>
- </viewerActionBinding>
- </extension>
-
-<!-- Common navigator contributions -->
- <extension point="org.eclipse.ui.navigator.navigatorContent">
-
-<!-- Default navigator content contibutions -->
- <navigatorContent
- activeByDefault="true"
- contentProvider="org.eclipse.tcf.te.ui.views.navigator.ContentProviderDelegate"
- icon="icons/eview16/targets_view.gif"
- id="org.eclipse.tcf.te.ui.views.navigator.content"
- labelProvider="org.eclipse.tcf.te.ui.views.navigator.LabelProviderDelegate"
- name="%navigatorContent.name"
- priority="highest">
- <triggerPoints>
- <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.IRoot"/>
- </triggerPoints>
- <possibleChildren>
- <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.ICategory"/>
- </possibleChildren>
- <commonSorter
- class="org.eclipse.tcf.te.ui.views.navigator.ViewerSorter"
- id="org.eclipse.tcf.te.ui.views.navigator.sorter"/>
- </navigatorContent>
-
-<!-- Default navigator action contributions -->
- <actionProvider
- class="org.eclipse.tcf.te.ui.views.actions.NewActionProvider"
- id="org.eclipse.tcf.te.ui.views.navigator.actions.NewActionProvider">
- <enablement>
- <or>
- <not>
- <test
- forcePluginActivation="true"
- property="org.eclipse.tcf.te.runtime.services.hasService"
- value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- </not>
- <test
- property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
- args="org.eclipse.tcf.te.ui.views.navigator.actions.NewActionProvider"
- value="true"/>
- </or>
- </enablement>
- </actionProvider>
-
- <actionProvider
- class="org.eclipse.tcf.te.ui.views.actions.GoIntoActionProvider"
- id="org.eclipse.tcf.te.ui.views.navigator.actions.GoIntoActionProvider">
- <enablement>
- <or>
- <not>
- <test
- forcePluginActivation="true"
- property="org.eclipse.tcf.te.runtime.services.hasService"
- value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- </not>
- <test
- property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
- args="org.eclipse.tcf.te.ui.views.navigator.actions.GoIntoActionProvider"
- value="true"/>
- </or>
- </enablement>
- </actionProvider>
-
- </extension>
-
-<!-- View contributions -->
- <extension point="org.eclipse.ui.views">
- <view
- category="org.eclipse.tcf.te.ui.views.category"
- class="org.eclipse.tcf.te.ui.views.internal.View"
- icon="icons/eview16/targets_view.gif"
- id="org.eclipse.tcf.te.ui.views.View"
- name="%View.name"
- restorable="true">
- </view>
- </extension>
-
-<!-- View categories contributions -->
- <extension point="org.eclipse.tcf.te.ui.views.categories">
- <category
- class="org.eclipse.tcf.te.ui.views.categories.Category"
- icon="icons/obj16/favorites.gif"
- id="org.eclipse.tcf.te.ui.views.category.favorites"
- label="%category.favorites.name"
- rank="1">
- <enablement>
- <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
- </enablement>
- </category>
-
- <category
- class="org.eclipse.tcf.te.ui.views.categories.Category"
- icon="icons/obj16/targets.gif"
- id="org.eclipse.tcf.te.ui.views.category.mytargets"
- label="%category.mytargets.name"
- rank="10">
- <enablement>
- <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
- </enablement>
- </category>
-
- <category
- class="org.eclipse.tcf.te.ui.views.categories.Category"
- icon="icons/obj16/neighborhood.gif"
- id="org.eclipse.tcf.te.ui.views.category.neighborhood"
- label="%category.neighborhood.name"
- rank="20">
- <enablement>
- <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
- </enablement>
- </category>
- </extension>
-
-<!-- Perspective -->
- <extension point="org.eclipse.ui.perspectives">
- <perspective
- class="org.eclipse.tcf.te.ui.views.perspective.PerspectiveFactory"
- icon="icons/eview16/editor.gif"
- id="org.eclipse.tcf.te.ui.perspective"
- name="%Perspective.name">
- </perspective>
- </extension>
-
-<!-- Perspective contributions -->
- <extension point="org.eclipse.ui.perspectiveExtensions">
- <perspectiveExtension targetID="org.eclipse.tcf.te.ui.perspective">
- <!-- Run/Debug actions should be available -->
- <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
- <!-- Register the view shortcuts -->
- <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
- <viewShortcut id="org.eclipse.debug.ui.DebugView"/>
- <viewShortcut id="org.eclipse.ui.views.PropertySheet"/>
- <!-- Register the perspective shortcuts -->
- <perspectiveShortcut id="org.eclipse.debug.ui.DebugPerspective"/>
- </perspectiveExtension>
-
- <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
- <!-- Run/Debug actions should be available -->
- <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
- <!-- Register the view shortcuts -->
- <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
- <!-- Register the perspective shortcuts -->
- <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
- <!-- System management view is placed relative to the Project Explorer -->
- <view
- id="org.eclipse.tcf.te.ui.views.View"
- minimized="false"
- relationship="stack"
- relative="org.eclipse.ui.navigator.ProjectExplorer"
- visible="false">
- </view>
- </perspectiveExtension>
-
- <perspectiveExtension targetID="org.eclipse.debug.ui.DebugPerspective">
- <!-- Register the view shortcuts -->
- <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
- <!-- Register the perspective shortcuts -->
- <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
- <!-- System management view is placed relative to the Debug View -->
- <view
- id="org.eclipse.tcf.te.ui.views.View"
- minimized="false"
- relationship="stack"
- relative="org.eclipse.debug.ui.DebugView"
- visible="false">
- </view>
- </perspectiveExtension>
-
- <perspectiveExtension targetID="org.eclipse.cdt.ui.CPerspective">
- <!-- Register the view shortcuts -->
- <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
- <!-- Register the perspective shortcuts -->
- <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
- <!-- System management view is placed relative to the C/C++ View -->
- <view
- id="org.eclipse.tcf.te.ui.views.View"
- minimized="false"
- relationship="stack"
- relative="org.eclipse.cdt.ui.CView"
- visible="false">
- </view>
- </perspectiveExtension>
- </extension>
-
-<!-- Editor contributions -->
- <extension point="org.eclipse.ui.editors">
- <editor
- class="org.eclipse.tcf.te.ui.views.editor.Editor"
- default="false"
- icon="icons/eview16/prop_ps.gif"
- id="org.eclipse.tcf.te.ui.views.Editor"
- name="%Editor.name">
- </editor>
- </extension>
-
-<!-- Tabbed properties view contributions -->
- <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
- <propertyContributor
- contributorId="org.eclipse.tcf.te.ui"
- labelProvider="org.eclipse.tcf.te.ui.views.internal.PropertyContributorLabelProvider">
- <propertyCategory category="org.eclipse.tcf.te"/>
- </propertyContributor>
- </extension>
-
-<!-- Service contributions -->
- <extension point="org.eclipse.tcf.te.runtime.services.services">
- <service
- class="org.eclipse.tcf.te.ui.views.internal.services.MenuService"
- id="org.eclipse.tcf.te.ui.views.services.MenuService">
- <serviceType
- bundleId="org.eclipse.tcf.te.runtime.services"
- class="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- <enablement>
- <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.ICategory"/>
- </enablement>
- </service>
- </extension>
-
-<!-- Menu contributions -->
- <extension point="org.eclipse.ui.menus">
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.properties">
- <command
- commandId="org.eclipse.ui.file.properties"
- helpContextId="org.eclipse.tcf.te.ui.views.command_Properties"
- id="properties"
- label="%command.properties.label"
- mnemonic="%command.properties.mnemonic"
- tooltip="%command.properties.tooltip">
- <visibleWhen>
- <with variable="selection">
- <count value="1"/>
- <iterate operator="and" ifEmpty="false">
- <test property="org.eclipse.tcf.te.ui.views.hasApplicableEditorBindings" value="true"/>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
-
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.importexport">
- <command
- commandId="org.eclipse.ui.file.import">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate operator="and" ifEmpty="false">
- <or>
- <not>
- <test
- forcePluginActivation="true"
- property="org.eclipse.tcf.te.runtime.services.hasService"
- value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- </not>
- <test
- property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
- args="org.eclipse.ui.file.import"
- value="true"/>
- </or>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.ui.file.export">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate operator="and" ifEmpty="false">
- <or>
- <not>
- <test
- forcePluginActivation="true"
- property="org.eclipse.tcf.te.runtime.services.hasService"
- value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- </not>
- <test
- property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
- args="org.eclipse.ui.file.export"
- value="true"/>
- </or>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
-
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.showIn">
- <menu
- commandId="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
- id="org.eclipse.tcf.te.ui.views.View.menu.showIn"
- label="%menu.showIn.label">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate operator="and" ifEmpty="false">
- <or>
- <not>
- <test
- forcePluginActivation="true"
- property="org.eclipse.tcf.te.runtime.services.hasService"
- value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
- </not>
- <test
- property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
- args="org.eclipse.tcf.te.ui.views.View.menu.showIn"
- value="true"/>
- </or>
- </iterate>
- </with>
- </visibleWhen>
-
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.ShowInProperties"
- icon="icons/eview16/prop_ps.gif"
- label="%menu.properties.label"
- style="push">
- </command>
- </menu>
- </menuContribution>
-
- <menuContribution locationURI="menu:org.eclipse.tcf.te.ui.views.View?after=additions">
- <separator
- name="group.filters"
- visible="true">
- </separator>
- <dynamic
- class="org.eclipse.tcf.te.ui.views.handler.FilterMRUContribution"
- id="org.eclipse.tcf.te.ui.views.dynamic.filterMRU">
- </dynamic>
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.filters"
- icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/filter_ps.gif"
- id="org.eclipse.tcf.te.ui.views.command.filters"
- label="%command.filters.label"
- style="push">
- </command>
- <separator
- name="group.content"
- visible="true">
- </separator>
- <dynamic
- class="org.eclipse.tcf.te.ui.views.handler.ContentMRUContribution"
- id="org.eclipse.tcf.te.ui.views.dynamic.contentMRU">
- </dynamic>
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.content"
- icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/content.gif"
- id="org.eclipse.tcf.te.ui.views.command.content"
- label="%command.content.label"
- style="push">
- </command>
- </menuContribution>
-
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.categories">
- <menu
- id="org.eclipse.tcf.te.ui.views.menu.categories.add"
- label="%menu.categories.addto.label">
- <dynamic
- id="org.eclipse.tcf.te.ui.views.dynamic.categories.add.multi"
- class="org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem">
- </dynamic>
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <test property="org.eclipse.tcf.te.ui.views.validAddToCategoriesCount" value="(1-"/>
- <iterate operator="and" ifEmpty="false">
- <adapt type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable"/>
- </iterate>
- </with>
- </visibleWhen>
- </menu>
-
- <dynamic
- id="org.eclipse.tcf.te.ui.views.dynamic.categories.add.single"
- class="org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <test property="org.eclipse.tcf.te.ui.views.validAddToCategoriesCount" value="1"/>
- <iterate operator="and" ifEmpty="false">
- <adapt type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable"/>
- </iterate>
- </with>
- </visibleWhen>
- </dynamic>
- </menuContribution>
-
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.filter">
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
- label="%menu.filter.label"
- mnemonic="%menu.filter.mnemonic"
- style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate>
- <adapt type="org.eclipse.tcf.te.core.interfaces.IFilterable">
- <instanceof value="org.eclipse.tcf.te.core.interfaces.IFilterable"/>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
- label="%menu.reset.label"
- mnemonic="%menu.reset.mnemonic"
- style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate>
- <adapt type="org.eclipse.tcf.te.core.interfaces.IFilterable">
- <instanceof value="org.eclipse.tcf.te.core.interfaces.IFilterable"/>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
-
- <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.search">
- <command
- commandId="org.eclipse.tcf.te.ui.views.command.find"
- label="%menu.find.label"
- mnemonic="%menu.find.mnemonic"
- style="push">
- <visibleWhen checkEnabled="false">
- <with variable="selection">
- <iterate>
- <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
- <instanceof value="org.eclipse.tcf.te.ui.interfaces.ISearchable"/>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
-
- </extension>
-
-<!-- Command contributions -->
- <extension point="org.eclipse.ui.commands">
- <!-- Definition of the Common Navigator global retargetable open
- action id as command.
- -->
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- helpContextId="org.eclipse.ui.navigator.Open"
- id="org.eclipse.ui.navigator.Open"
- name="%command.open.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- helpContextId="org.eclipse.tcf.te.ui.views.command_ShowInGroup"
- id="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
- name="%command.showin.name">
- </command>
-
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- helpContextId="org.eclipse.tcf.te.ui.views.command_ShowInProperties"
- id="org.eclipse.tcf.te.ui.views.command.ShowInProperties"
- name="%command.showInProperties.label">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- helpContextId="org.eclipse.tcf.te.ui.views.command_Filters"
- id="org.eclipse.tcf.te.ui.views.command.filters"
- name="%command.filters.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- helpContextId="org.eclipse.tcf.te.ui.views.command_Content"
- id="org.eclipse.tcf.te.ui.views.command.content"
- name="%command.content.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- description="%command.find.description"
- id="org.eclipse.tcf.te.ui.views.command.find"
- name="%command.find.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- description="%command.filter.description"
- id="org.eclipse.tcf.te.ui.views.command.quickfilter"
- name="%command.filter.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- description="%command.reset.description"
- id="org.eclipse.tcf.te.ui.views.command.resetfilter"
- name="%command.reset.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- description="%command.showInSM.description"
- id="org.eclipse.tcf.te.ui.command.showIn.systemManagement"
- name="%command.showInSM.name">
- </command>
- <command
- categoryId="org.eclipse.tcf.te.ui.commands.category"
- description="%command.apply.description"
- id="org.eclipse.tcf.te.ui.views.command.apply"
- name="%command.apply.name">
- </command>
- </extension>
-
- <extension point="org.eclipse.ui.commandImages">
- <image
- commandId="org.eclipse.tcf.te.ui.command.showIn.systemManagement"
- icon="icons/eview16/targets_view.gif">
- </image>
- <image
- commandId="org.eclipse.tcf.te.ui.views.command.find"
- icon="icons/obj16/search.gif">
- </image>
- <image
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
- icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/filter_ps.gif">
- </image>
- <image
- commandId="org.eclipse.tcf.te.ui.views.command.apply"
- disabledIcon="platform:/plugin/org.eclipse.ui/icons/full/dtool16/save_edit.gif"
- icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/save_edit.gif">
- </image>
- </extension>
-
- <extension point="org.eclipse.ui.bindings">
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
- contextId="org.eclipse.tcf.te.ui.views.View"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M3+M2+W">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.find"
- contextId="org.eclipse.tcf.te.ui.views.View"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M1+F">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.find"
- contextId="org.eclipse.tcf.te.ui.views.Editor"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M1+F">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
- contextId="org.eclipse.tcf.te.ui.views.View"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M1+T">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
- contextId="org.eclipse.tcf.te.ui.views.Editor"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="M1+T">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
- contextId="org.eclipse.tcf.te.ui.views.View"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="ESC">
- </key>
- <key
- commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
- contextId="org.eclipse.tcf.te.ui.views.Editor"
- schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
- sequence="ESC">
- </key>
- </extension>
-
-<!-- Handler contributions -->
- <extension point="org.eclipse.ui.handlers">
- <handler
- commandId="org.eclipse.ui.file.properties"
- class="org.eclipse.tcf.te.ui.views.handler.PropertiesCommandHandler">
- <enabledWhen>
- <with variable="selection">
- <count value="1"/>
- </with>
- </enabledWhen>
- <activeWhen>
- <and>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- <with variable="selection">
- <iterate operator="and" ifEmpty="false">
- <test property="org.eclipse.tcf.te.ui.views.hasApplicableEditorBindings" value="true"/>
- </iterate>
- </with>
- </and>
- </activeWhen>
- </handler>
-
- <handler
- commandId="org.eclipse.ui.navigator.Open"
- class="org.eclipse.tcf.te.ui.views.handler.OpenCommandHandler">
- <enabledWhen>
- <with variable="selection">
- <count value="1"/>
- </with>
- </enabledWhen>
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ShowInPropertiesHandler"
- commandId="org.eclipse.tcf.te.ui.views.command.ShowInProperties">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ShowInSystemManagementHandler"
- commandId="org.eclipse.tcf.te.ui.command.showIn.systemManagement">
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ConfigFiltersHandler"
- commandId="org.eclipse.tcf.te.ui.views.command.filters">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ConfigContentHandler"
- commandId="org.eclipse.tcf.te.ui.views.command.content">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ViewQuickFilterHanlder"
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="activePart">
- <adapt type="org.eclipse.ui.navigator.CommonViewer">
- <test property="org.eclipse.tcf.te.ui.views.isFilterable"/>
- </adapt>
- </with>
- </enabledWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ViewQuickFilterResetHanlder"
- commandId="org.eclipse.tcf.te.ui.views.command.resetfilter">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="activePart">
- <adapt type="org.eclipse.ui.navigator.CommonViewer">
- <test property="org.eclipse.tcf.te.ui.views.isFiltering"/>
- </adapt>
- </with>
- </enabledWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.EditorQuickFilterHanlder"
- commandId="org.eclipse.tcf.te.ui.views.command.quickfilter">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="activeEditor">
- <test property="org.eclipse.tcf.te.ui.views.isEditorFilterable"/>
- </with>
- </enabledWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.EditorQuickFilterResetHanlder"
- commandId="org.eclipse.tcf.te.ui.views.command.resetfilter">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="activeEditor">
- <adapt type="org.eclipse.jface.viewers.TreeViewer">
- <test property="org.eclipse.tcf.te.ui.views.isFiltering"/>
- </adapt>
- </with>
- </enabledWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.ViewSearchHandler"
- commandId="org.eclipse.tcf.te.ui.views.command.find">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.View"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="selection">
- <count value="1"/>
- <iterate>
- <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
- </adapt>
- </iterate>
- </with>
- </enabledWhen>
- </handler>
-
- <handler
- class="org.eclipse.tcf.te.ui.views.handler.EditorSearchHandler"
- commandId="org.eclipse.tcf.te.ui.views.command.find">
- <activeWhen>
- <with variable="activePartId">
- <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
- </with>
- </activeWhen>
- <enabledWhen>
- <with variable="selection">
- <count value="1"/>
- <iterate>
- <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
- </adapt>
- </iterate>
- </with>
- </enabledWhen>
- </handler>
- </extension>
-
-<!-- Eclipse core expressions property tester -->
- <extension point="org.eclipse.core.expressions.propertyTesters">
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.expressions.PropertyTester"
- id="org.eclipse.tcf.te.ui.views.PropertyTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="hasApplicableEditorBindings"
- type="java.lang.Object">
- </propertyTester>
-
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
- id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="isCategoryID,belongsTo,isHiddenByPreferences,isVisibleNavigatorContent"
- type="org.eclipse.tcf.te.ui.views.interfaces.ICategory">
- </propertyTester>
-
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
- id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="belongsTo"
- type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable">
- </propertyTester>
-
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
- id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="parentCategoryId,validAddToCategoriesCount"
- type="org.eclipse.jface.viewers.ISelection">
- </propertyTester>
-
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.internal.quickfilter.QuickFilterTester"
- id="org.eclipse.tcf.te.ui.views.quickfilter.QuickFilterTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="isFilterable,isFiltering"
- type="org.eclipse.jface.viewers.TreeViewer">
- </propertyTester>
-
- <propertyTester
- class="org.eclipse.tcf.te.ui.views.internal.quickfilter.EditorQuickFilterTester"
- id="org.eclipse.tcf.te.ui.views.quickfilter.EditorQuickFilterTester"
- namespace="org.eclipse.tcf.te.ui.views"
- properties="isEditorFilterable"
- type="org.eclipse.tcf.te.ui.views.editor.Editor">
- </propertyTester>
-
- </extension>
-
-<!-- Preference contributions -->
- <extension point="org.eclipse.core.runtime.preferences">
- <initializer class="org.eclipse.tcf.te.ui.views.internal.preferences.PreferencesInitializer"/>
- </extension>
-
-<!-- Element factory contributions -->
- <extension point="org.eclipse.ui.elementFactories">
- <factory
- class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryFactory"
- id="org.eclipse.tcf.te.ui.views.categoryFactory">
- </factory>
- </extension>
-
-<!-- Adapter factory contributions -->
- <extension point="org.eclipse.core.runtime.adapters">
- <factory
- adaptableType="org.eclipse.tcf.te.ui.views.internal.View"
- class="org.eclipse.tcf.te.ui.views.internal.adapters.ViewAdapterFactory">
- <adapter
- type="org.eclipse.ui.navigator.CommonViewer">
- </adapter>
- </factory>
- <factory
- adaptableType="org.eclipse.tcf.te.ui.views.editor.Editor"
- class="org.eclipse.tcf.te.ui.views.internal.adapters.EditorAdapterFactory">
- <adapter
- type="org.eclipse.jface.viewers.TreeViewer">
- </adapter>
- </factory>
- </extension>
-
-<!-- Source provider contributions -->
- <extension point="org.eclipse.ui.services">
- <sourceProvider
- provider="org.eclipse.tcf.te.ui.views.expressions.SelectionSourceProvider">
- <variable
- name="systemManagerViewSelection"
- priorityLevel="workbench">
- </variable>
- <variable
- name="debugViewSelection"
- priorityLevel="workbench">
- </variable>
- </sourceProvider>
- </extension>
-
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+<!-- Extension Points -->
+ <extension-point id="editorPageBindings" name="%ExtensionPoint.editorPageBindings.name" schema="schema/editorPageBindings.exsd"/>
+ <extension-point id="editorPages" name="%ExtensionPoint.editorPages.name" schema="schema/editorPages.exsd"/>
+ <extension-point id="categories" name="%ExtensionPoint.categories.name" schema="schema/categories.exsd"/>
+ <extension-point id="labelProviderDelegates" name="%ExtensionPoint.labelProviderDelegates.name" schema="schema/labelProviderDelegates.exsd"/>
+
+<!-- Common Navigator contributions -->
+ <extension point="org.eclipse.ui.navigator.viewer">
+ <viewer
+ helpContext="org.eclipse.tcf.te.ui.views.View"
+ viewerId="org.eclipse.tcf.te.ui.views.View">
+ <popupMenu
+ id="org.eclipse.tcf.te.ui.views.View#Popup"
+ allowsPlatformContributions="true">
+ <insertionPoint name="group.new" separator="true"/>
+ <insertionPoint name="group.goto"/>
+ <insertionPoint name="group.expandto" separator="true"/>
+ <insertionPoint name="group.expand"/>
+ <insertionPoint name="group.open" separator="true"/>
+ <insertionPoint name="group.openWith"/>
+ <insertionPoint name="group.showIn"/>
+ <insertionPoint name="group.connect" separator="true"/>
+ <insertionPoint name="group.redirect" separator="true"/>
+ <insertionPoint name="group.symbols" separator="true"/>
+ <insertionPoint name="group.symbols.rd"/>
+ <insertionPoint name="group.symbols.loadunload"/>
+ <insertionPoint name="group.symbols.additions"/>
+ <insertionPoint name="group.launch" separator="true"/>
+ <insertionPoint name="group.launch.rundebug"/>
+ <insertionPoint name="group.launch.modes"/>
+ <insertionPoint name="group.launch.additions"/>
+ <insertionPoint name="group.show" separator="true"/>
+ <insertionPoint name="group.edit" separator="true"/>
+ <insertionPoint name="group.delete"/>
+ <insertionPoint name="group.build" separator="true"/>
+ <insertionPoint name="group.importexport" separator="true"/>
+ <insertionPoint name="group.refresh" separator="true"/>
+ <insertionPoint name="group.syncop"/>
+ <insertionPoint name="group.categories" separator="true"/>
+ <insertionPoint name="group.reorganize"/>
+ <insertionPoint name="group.reorder"/>
+ <insertionPoint name="group.port"/>
+ <insertionPoint name="group.generate" separator="true"/>
+ <insertionPoint name="group.search" separator="true"/>
+ <insertionPoint name="group.connection" separator="true"/>
+ <insertionPoint name="group.operations" separator="true"/>
+ <insertionPoint name="group.analysis" separator="true"/>
+ <insertionPoint name="group.filter" separator="true"/>
+ <insertionPoint name="additions" separator="true"/>
+ <insertionPoint name="group.properties" separator="true"/>
+ </popupMenu>
+ <options>
+ <property
+ name="org.eclipse.ui.navigator.hideLinkWithEditorAction"
+ value="true">
+ </property>
+ <property
+ name="org.eclipse.ui.navigator.hideAvailableCustomizationsDialog"
+ value="true">
+ </property>
+ <property
+ name="org.eclipse.ui.navigator.enforceHasChildren"
+ value="true">
+ </property>
+ </options>
+ </viewer>
+
+ <viewerContentBinding viewerId="org.eclipse.tcf.te.ui.views.View">
+ <includes>
+ <contentExtension
+ pattern="org.eclipse.tcf.te.ui.views.navigator.*">
+ </contentExtension>
+
+ </includes>
+ </viewerContentBinding>
+
+ <viewerActionBinding
+ viewerId="org.eclipse.tcf.te.ui.views.View">
+ <includes>
+ <actionExtension
+ pattern="org.eclipse.tcf.te.ui.views.navigator.actions.*">
+ </actionExtension>
+ </includes>
+ </viewerActionBinding>
+ </extension>
+
+<!-- Common navigator contributions -->
+ <extension point="org.eclipse.ui.navigator.navigatorContent">
+
+<!-- Default navigator content contibutions -->
+ <navigatorContent
+ activeByDefault="true"
+ contentProvider="org.eclipse.tcf.te.ui.views.navigator.ContentProviderDelegate"
+ icon="icons/eview16/targets_view.gif"
+ id="org.eclipse.tcf.te.ui.views.navigator.content"
+ labelProvider="org.eclipse.tcf.te.ui.views.navigator.LabelProviderDelegate"
+ name="%navigatorContent.name"
+ priority="highest">
+ <triggerPoints>
+ <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.IRoot"/>
+ </triggerPoints>
+ <possibleChildren>
+ <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.ICategory"/>
+ </possibleChildren>
+ <commonSorter
+ class="org.eclipse.tcf.te.ui.views.navigator.ViewerSorter"
+ id="org.eclipse.tcf.te.ui.views.navigator.sorter"/>
+ </navigatorContent>
+
+<!-- Default navigator action contributions -->
+ <actionProvider
+ class="org.eclipse.tcf.te.ui.views.actions.NewActionProvider"
+ id="org.eclipse.tcf.te.ui.views.navigator.actions.NewActionProvider">
+ <enablement>
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.tcf.te.ui.views.navigator.actions.NewActionProvider"
+ value="true"/>
+ </or>
+ </enablement>
+ </actionProvider>
+
+ <actionProvider
+ class="org.eclipse.tcf.te.ui.views.actions.GoIntoActionProvider"
+ id="org.eclipse.tcf.te.ui.views.navigator.actions.GoIntoActionProvider">
+ <enablement>
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.tcf.te.ui.views.navigator.actions.GoIntoActionProvider"
+ value="true"/>
+ </or>
+ </enablement>
+ </actionProvider>
+
+ </extension>
+
+<!-- View contributions -->
+ <extension point="org.eclipse.ui.views">
+ <view
+ category="org.eclipse.tcf.te.ui.views.category"
+ class="org.eclipse.tcf.te.ui.views.internal.View"
+ icon="icons/eview16/targets_view.gif"
+ id="org.eclipse.tcf.te.ui.views.View"
+ name="%View.name"
+ restorable="true">
+ </view>
+ </extension>
+
+<!-- View categories contributions -->
+ <extension point="org.eclipse.tcf.te.ui.views.categories">
+ <category
+ class="org.eclipse.tcf.te.ui.views.categories.Category"
+ icon="icons/obj16/favorites.gif"
+ id="org.eclipse.tcf.te.ui.views.category.favorites"
+ label="%category.favorites.name"
+ rank="1">
+ <enablement>
+ <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
+ </enablement>
+ </category>
+
+ <category
+ class="org.eclipse.tcf.te.ui.views.categories.Category"
+ icon="icons/obj16/targets.gif"
+ id="org.eclipse.tcf.te.ui.views.category.mytargets"
+ label="%category.mytargets.name"
+ rank="10">
+ <enablement>
+ <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
+ </enablement>
+ </category>
+
+ <category
+ class="org.eclipse.tcf.te.ui.views.categories.Category"
+ icon="icons/obj16/neighborhood.gif"
+ id="org.eclipse.tcf.te.ui.views.category.neighborhood"
+ label="%category.neighborhood.name"
+ rank="20">
+ <enablement>
+ <test property="org.eclipse.tcf.te.ui.views.isHiddenByPreferences" value="false"/>
+ </enablement>
+ </category>
+ </extension>
+
+<!-- Perspective -->
+ <extension point="org.eclipse.ui.perspectives">
+ <perspective
+ class="org.eclipse.tcf.te.ui.views.perspective.PerspectiveFactory"
+ icon="icons/eview16/editor.gif"
+ id="org.eclipse.tcf.te.ui.perspective"
+ name="%Perspective.name">
+ </perspective>
+ </extension>
+
+<!-- Perspective contributions -->
+ <extension point="org.eclipse.ui.perspectiveExtensions">
+ <perspectiveExtension targetID="org.eclipse.tcf.te.ui.perspective">
+ <!-- Run/Debug actions should be available -->
+ <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
+ <!-- Register the view shortcuts -->
+ <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
+ <viewShortcut id="org.eclipse.debug.ui.DebugView"/>
+ <viewShortcut id="org.eclipse.ui.views.PropertySheet"/>
+ <!-- Register the perspective shortcuts -->
+ <perspectiveShortcut id="org.eclipse.debug.ui.DebugPerspective"/>
+ </perspectiveExtension>
+
+ <perspectiveExtension targetID="org.eclipse.ui.resourcePerspective">
+ <!-- Run/Debug actions should be available -->
+ <actionSet id="org.eclipse.debug.ui.launchActionSet"/>
+ <!-- Register the view shortcuts -->
+ <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
+ <!-- Register the perspective shortcuts -->
+ <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
+ <!-- System management view is placed relative to the Project Explorer -->
+ <view
+ id="org.eclipse.tcf.te.ui.views.View"
+ minimized="false"
+ relationship="stack"
+ relative="org.eclipse.ui.navigator.ProjectExplorer"
+ visible="false">
+ </view>
+ </perspectiveExtension>
+
+ <perspectiveExtension targetID="org.eclipse.debug.ui.DebugPerspective">
+ <!-- Register the view shortcuts -->
+ <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
+ <!-- Register the perspective shortcuts -->
+ <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
+ <!-- System management view is placed relative to the Debug View -->
+ <view
+ id="org.eclipse.tcf.te.ui.views.View"
+ minimized="false"
+ relationship="stack"
+ relative="org.eclipse.debug.ui.DebugView"
+ visible="false">
+ </view>
+ </perspectiveExtension>
+
+ <perspectiveExtension targetID="org.eclipse.cdt.ui.CPerspective">
+ <!-- Register the view shortcuts -->
+ <viewShortcut id="org.eclipse.tcf.te.ui.views.View"/>
+ <!-- Register the perspective shortcuts -->
+ <perspectiveShortcut id="org.eclipse.tcf.te.ui.perspective"/>
+ <!-- System management view is placed relative to the C/C++ View -->
+ <view
+ id="org.eclipse.tcf.te.ui.views.View"
+ minimized="false"
+ relationship="stack"
+ relative="org.eclipse.cdt.ui.CView"
+ visible="false">
+ </view>
+ </perspectiveExtension>
+ </extension>
+
+<!-- Editor contributions -->
+ <extension point="org.eclipse.ui.editors">
+ <editor
+ class="org.eclipse.tcf.te.ui.views.editor.Editor"
+ default="false"
+ icon="icons/eview16/prop_ps.gif"
+ id="org.eclipse.tcf.te.ui.views.Editor"
+ name="%Editor.name">
+ </editor>
+ </extension>
+
+<!-- Tabbed properties view contributions -->
+ <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor">
+ <propertyContributor
+ contributorId="org.eclipse.tcf.te.ui"
+ labelProvider="org.eclipse.tcf.te.ui.views.internal.PropertyContributorLabelProvider">
+ <propertyCategory category="org.eclipse.tcf.te"/>
+ </propertyContributor>
+ </extension>
+
+<!-- Service contributions -->
+ <extension point="org.eclipse.tcf.te.runtime.services.services">
+ <service
+ class="org.eclipse.tcf.te.ui.views.internal.services.MenuService"
+ id="org.eclipse.tcf.te.ui.views.services.MenuService">
+ <serviceType
+ bundleId="org.eclipse.tcf.te.runtime.services"
+ class="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ <enablement>
+ <instanceof value="org.eclipse.tcf.te.ui.views.interfaces.ICategory"/>
+ </enablement>
+ </service>
+ </extension>
+
+<!-- Menu contributions -->
+ <extension point="org.eclipse.ui.menus">
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.properties">
+ <command
+ commandId="org.eclipse.ui.file.properties"
+ helpContextId="org.eclipse.tcf.te.ui.views.command_Properties"
+ id="properties"
+ label="%command.properties.label"
+ mnemonic="%command.properties.mnemonic"
+ tooltip="%command.properties.tooltip">
+ <visibleWhen>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate operator="and" ifEmpty="false">
+ <test property="org.eclipse.tcf.te.ui.views.hasApplicableEditorBindings" value="true"/>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.importexport">
+ <command
+ commandId="org.eclipse.ui.file.import">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate operator="and" ifEmpty="false">
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.ui.file.import"
+ value="true"/>
+ </or>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.ui.file.export">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate operator="and" ifEmpty="false">
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.ui.file.export"
+ value="true"/>
+ </or>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.showIn">
+ <menu
+ commandId="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
+ id="org.eclipse.tcf.te.ui.views.View.menu.showIn"
+ label="%menu.showIn.label">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate operator="and" ifEmpty="false">
+ <or>
+ <not>
+ <test
+ forcePluginActivation="true"
+ property="org.eclipse.tcf.te.runtime.services.hasService"
+ value="org.eclipse.tcf.te.runtime.services.interfaces.IMenuService"/>
+ </not>
+ <test
+ property="org.eclipse.tcf.te.runtime.services.menu.isVisible"
+ args="org.eclipse.tcf.te.ui.views.View.menu.showIn"
+ value="true"/>
+ </or>
+ </iterate>
+ </with>
+ </visibleWhen>
+
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.ShowInProperties"
+ icon="icons/eview16/prop_ps.gif"
+ label="%menu.properties.label"
+ style="push">
+ </command>
+ </menu>
+ </menuContribution>
+
+ <menuContribution locationURI="menu:org.eclipse.tcf.te.ui.views.View?after=additions">
+ <separator
+ name="group.filters"
+ visible="true">
+ </separator>
+ <dynamic
+ class="org.eclipse.tcf.te.ui.views.handler.FilterMRUContribution"
+ id="org.eclipse.tcf.te.ui.views.dynamic.filterMRU">
+ </dynamic>
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.filters"
+ icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/filter_ps.gif"
+ id="org.eclipse.tcf.te.ui.views.command.filters"
+ label="%command.filters.label"
+ style="push">
+ </command>
+ <separator
+ name="group.content"
+ visible="true">
+ </separator>
+ <dynamic
+ class="org.eclipse.tcf.te.ui.views.handler.ContentMRUContribution"
+ id="org.eclipse.tcf.te.ui.views.dynamic.contentMRU">
+ </dynamic>
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.content"
+ icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/content.gif"
+ id="org.eclipse.tcf.te.ui.views.command.content"
+ label="%command.content.label"
+ style="push">
+ </command>
+ </menuContribution>
+
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.categories">
+ <menu
+ id="org.eclipse.tcf.te.ui.views.menu.categories.add"
+ label="%menu.categories.addto.label">
+ <dynamic
+ id="org.eclipse.tcf.te.ui.views.dynamic.categories.add.multi"
+ class="org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem">
+ </dynamic>
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <test property="org.eclipse.tcf.te.ui.views.validAddToCategoriesCount" value="(1-"/>
+ <iterate operator="and" ifEmpty="false">
+ <adapt type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable"/>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </menu>
+
+ <dynamic
+ id="org.eclipse.tcf.te.ui.views.dynamic.categories.add.single"
+ class="org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <test property="org.eclipse.tcf.te.ui.views.validAddToCategoriesCount" value="1"/>
+ <iterate operator="and" ifEmpty="false">
+ <adapt type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable"/>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </dynamic>
+ </menuContribution>
+
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.filter">
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
+ label="%menu.filter.label"
+ mnemonic="%menu.filter.mnemonic"
+ style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate>
+ <adapt type="org.eclipse.tcf.te.core.interfaces.IFilterable">
+ <instanceof value="org.eclipse.tcf.te.core.interfaces.IFilterable"/>
+ </adapt>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
+ label="%menu.reset.label"
+ mnemonic="%menu.reset.mnemonic"
+ style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate>
+ <adapt type="org.eclipse.tcf.te.core.interfaces.IFilterable">
+ <instanceof value="org.eclipse.tcf.te.core.interfaces.IFilterable"/>
+ </adapt>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.search">
+ <command
+ commandId="org.eclipse.tcf.te.ui.views.command.find"
+ label="%menu.find.label"
+ mnemonic="%menu.find.mnemonic"
+ style="push">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate>
+ <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
+ <instanceof value="org.eclipse.tcf.te.ui.interfaces.ISearchable"/>
+ </adapt>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </command>
+ </menuContribution>
+
+ </extension>
+
+<!-- Command contributions -->
+ <extension point="org.eclipse.ui.commands">
+ <!-- Definition of the Common Navigator global retargetable open
+ action id as command.
+ -->
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ helpContextId="org.eclipse.ui.navigator.Open"
+ id="org.eclipse.ui.navigator.Open"
+ name="%command.open.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ helpContextId="org.eclipse.tcf.te.ui.views.command_ShowInGroup"
+ id="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
+ name="%command.showin.name">
+ </command>
+
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ helpContextId="org.eclipse.tcf.te.ui.views.command_ShowInProperties"
+ id="org.eclipse.tcf.te.ui.views.command.ShowInProperties"
+ name="%command.showInProperties.label">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ helpContextId="org.eclipse.tcf.te.ui.views.command_Filters"
+ id="org.eclipse.tcf.te.ui.views.command.filters"
+ name="%command.filters.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ helpContextId="org.eclipse.tcf.te.ui.views.command_Content"
+ id="org.eclipse.tcf.te.ui.views.command.content"
+ name="%command.content.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ description="%command.find.description"
+ id="org.eclipse.tcf.te.ui.views.command.find"
+ name="%command.find.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ description="%command.filter.description"
+ id="org.eclipse.tcf.te.ui.views.command.quickfilter"
+ name="%command.filter.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ description="%command.reset.description"
+ id="org.eclipse.tcf.te.ui.views.command.resetfilter"
+ name="%command.reset.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ description="%command.showInSM.description"
+ id="org.eclipse.tcf.te.ui.command.showIn.systemManagement"
+ name="%command.showInSM.name">
+ </command>
+ <command
+ categoryId="org.eclipse.tcf.te.ui.commands.category"
+ description="%command.apply.description"
+ id="org.eclipse.tcf.te.ui.views.command.apply"
+ name="%command.apply.name">
+ </command>
+ </extension>
+
+ <extension point="org.eclipse.ui.commandImages">
+ <image
+ commandId="org.eclipse.tcf.te.ui.command.showIn.systemManagement"
+ icon="icons/eview16/targets_view.gif">
+ </image>
+ <image
+ commandId="org.eclipse.tcf.te.ui.views.command.find"
+ icon="icons/obj16/search.gif">
+ </image>
+ <image
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
+ icon="platform:/plugin/org.eclipse.ui.navigator/icons/full/elcl16/filter_ps.gif">
+ </image>
+ <image
+ commandId="org.eclipse.tcf.te.ui.views.command.apply"
+ disabledIcon="platform:/plugin/org.eclipse.ui/icons/full/dtool16/save_edit.gif"
+ icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/save_edit.gif">
+ </image>
+ </extension>
+
+ <extension point="org.eclipse.ui.bindings">
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.ShowInGroup"
+ contextId="org.eclipse.tcf.te.ui.views.View"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M3+M2+W">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.find"
+ contextId="org.eclipse.tcf.te.ui.views.View"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+F">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.find"
+ contextId="org.eclipse.tcf.te.ui.views.Editor"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+F">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
+ contextId="org.eclipse.tcf.te.ui.views.View"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+T">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter"
+ contextId="org.eclipse.tcf.te.ui.views.Editor"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="M1+T">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
+ contextId="org.eclipse.tcf.te.ui.views.View"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="ESC">
+ </key>
+ <key
+ commandId="org.eclipse.tcf.te.ui.views.command.resetfilter"
+ contextId="org.eclipse.tcf.te.ui.views.Editor"
+ schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+ sequence="ESC">
+ </key>
+ </extension>
+
+<!-- Handler contributions -->
+ <extension point="org.eclipse.ui.handlers">
+ <handler
+ commandId="org.eclipse.ui.file.properties"
+ class="org.eclipse.tcf.te.ui.views.handler.PropertiesCommandHandler">
+ <enabledWhen>
+ <with variable="selection">
+ <count value="1"/>
+ </with>
+ </enabledWhen>
+ <activeWhen>
+ <and>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ <with variable="selection">
+ <iterate operator="and" ifEmpty="false">
+ <test property="org.eclipse.tcf.te.ui.views.hasApplicableEditorBindings" value="true"/>
+ </iterate>
+ </with>
+ </and>
+ </activeWhen>
+ </handler>
+
+ <handler
+ commandId="org.eclipse.ui.navigator.Open"
+ class="org.eclipse.tcf.te.ui.views.handler.OpenCommandHandler">
+ <enabledWhen>
+ <with variable="selection">
+ <count value="1"/>
+ </with>
+ </enabledWhen>
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ShowInPropertiesHandler"
+ commandId="org.eclipse.tcf.te.ui.views.command.ShowInProperties">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ShowInSystemManagementHandler"
+ commandId="org.eclipse.tcf.te.ui.command.showIn.systemManagement">
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ConfigFiltersHandler"
+ commandId="org.eclipse.tcf.te.ui.views.command.filters">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ConfigContentHandler"
+ commandId="org.eclipse.tcf.te.ui.views.command.content">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ViewQuickFilterHanlder"
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="activePart">
+ <adapt type="org.eclipse.ui.navigator.CommonViewer">
+ <test property="org.eclipse.tcf.te.ui.views.isFilterable"/>
+ </adapt>
+ </with>
+ </enabledWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ViewQuickFilterResetHanlder"
+ commandId="org.eclipse.tcf.te.ui.views.command.resetfilter">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="activePart">
+ <adapt type="org.eclipse.ui.navigator.CommonViewer">
+ <test property="org.eclipse.tcf.te.ui.views.isFiltering"/>
+ </adapt>
+ </with>
+ </enabledWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.EditorQuickFilterHanlder"
+ commandId="org.eclipse.tcf.te.ui.views.command.quickfilter">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="activeEditor">
+ <test property="org.eclipse.tcf.te.ui.views.isEditorFilterable"/>
+ </with>
+ </enabledWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.EditorQuickFilterResetHanlder"
+ commandId="org.eclipse.tcf.te.ui.views.command.resetfilter">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="activeEditor">
+ <adapt type="org.eclipse.jface.viewers.TreeViewer">
+ <test property="org.eclipse.tcf.te.ui.views.isFiltering"/>
+ </adapt>
+ </with>
+ </enabledWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.ViewSearchHandler"
+ commandId="org.eclipse.tcf.te.ui.views.command.find">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.View"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate>
+ <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
+ </adapt>
+ </iterate>
+ </with>
+ </enabledWhen>
+ </handler>
+
+ <handler
+ class="org.eclipse.tcf.te.ui.views.handler.EditorSearchHandler"
+ commandId="org.eclipse.tcf.te.ui.views.command.find">
+ <activeWhen>
+ <with variable="activePartId">
+ <equals value="org.eclipse.tcf.te.ui.views.Editor"/>
+ </with>
+ </activeWhen>
+ <enabledWhen>
+ <with variable="selection">
+ <count value="1"/>
+ <iterate>
+ <adapt type="org.eclipse.tcf.te.ui.interfaces.ISearchable">
+ </adapt>
+ </iterate>
+ </with>
+ </enabledWhen>
+ </handler>
+ </extension>
+
+<!-- Eclipse core expressions property tester -->
+ <extension point="org.eclipse.core.expressions.propertyTesters">
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.expressions.PropertyTester"
+ id="org.eclipse.tcf.te.ui.views.PropertyTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="hasApplicableEditorBindings"
+ type="java.lang.Object">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
+ id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="isCategoryEnabled"
+ type="java.lang.Object">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
+ id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="isCategoryID,belongsTo,isHiddenByPreferences,isVisibleNavigatorContent"
+ type="org.eclipse.tcf.te.ui.views.interfaces.ICategory">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
+ id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="belongsTo"
+ type="org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryPropertyTester"
+ id="org.eclipse.tcf.te.ui.views.categories.CategoryPropertyTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="parentCategoryId,validAddToCategoriesCount"
+ type="org.eclipse.jface.viewers.ISelection">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.quickfilter.QuickFilterTester"
+ id="org.eclipse.tcf.te.ui.views.quickfilter.QuickFilterTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="isFilterable,isFiltering"
+ type="org.eclipse.jface.viewers.TreeViewer">
+ </propertyTester>
+
+ <propertyTester
+ class="org.eclipse.tcf.te.ui.views.internal.quickfilter.EditorQuickFilterTester"
+ id="org.eclipse.tcf.te.ui.views.quickfilter.EditorQuickFilterTester"
+ namespace="org.eclipse.tcf.te.ui.views"
+ properties="isEditorFilterable"
+ type="org.eclipse.tcf.te.ui.views.editor.Editor">
+ </propertyTester>
+
+ </extension>
+
+<!-- Preference contributions -->
+ <extension point="org.eclipse.core.runtime.preferences">
+ <initializer class="org.eclipse.tcf.te.ui.views.internal.preferences.PreferencesInitializer"/>
+ </extension>
+
+<!-- Element factory contributions -->
+ <extension point="org.eclipse.ui.elementFactories">
+ <factory
+ class="org.eclipse.tcf.te.ui.views.internal.categories.CategoryFactory"
+ id="org.eclipse.tcf.te.ui.views.categoryFactory">
+ </factory>
+ </extension>
+
+<!-- Adapter factory contributions -->
+ <extension point="org.eclipse.core.runtime.adapters">
+ <factory
+ adaptableType="org.eclipse.tcf.te.ui.views.internal.View"
+ class="org.eclipse.tcf.te.ui.views.internal.adapters.ViewAdapterFactory">
+ <adapter
+ type="org.eclipse.ui.navigator.CommonViewer">
+ </adapter>
+ </factory>
+ <factory
+ adaptableType="org.eclipse.tcf.te.ui.views.editor.Editor"
+ class="org.eclipse.tcf.te.ui.views.internal.adapters.EditorAdapterFactory">
+ <adapter
+ type="org.eclipse.jface.viewers.TreeViewer">
+ </adapter>
+ </factory>
+ </extension>
+
+<!-- Source provider contributions -->
+ <extension point="org.eclipse.ui.services">
+ <sourceProvider
+ provider="org.eclipse.tcf.te.ui.views.expressions.SelectionSourceProvider">
+ <variable
+ name="systemManagerViewSelection"
+ priorityLevel="workbench">
+ </variable>
+ <variable
+ name="debugViewSelection"
+ priorityLevel="workbench">
+ </variable>
+ </sourceProvider>
+ </extension>
+
+</plugin>
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/internal/categories/CategoryPropertyTester.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/internal/categories/CategoryPropertyTester.java
index 348d35d5b..4334edb99 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/internal/categories/CategoryPropertyTester.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/internal/categories/CategoryPropertyTester.java
@@ -1,165 +1,173 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
- * This program and the accompanying materials are made available under the terms
- * of the Eclipse Public License v1.0 which accompanies this distribution, and is
- * available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.ui.views.internal.categories;
-
-import org.eclipse.core.expressions.EvaluationContext;
-import org.eclipse.core.expressions.EvaluationResult;
-import org.eclipse.core.expressions.ICountable;
-import org.eclipse.core.expressions.IEvaluationContext;
-import org.eclipse.core.expressions.PropertyTester;
-import org.eclipse.core.internal.expressions.CountExpression;
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITreeSelection;
-import org.eclipse.jface.viewers.TreePath;
-import org.eclipse.tcf.te.ui.views.Managers;
-import org.eclipse.tcf.te.ui.views.ViewsUtil;
-import org.eclipse.tcf.te.ui.views.activator.UIPlugin;
-import org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem;
-import org.eclipse.tcf.te.ui.views.interfaces.ICategory;
-import org.eclipse.tcf.te.ui.views.interfaces.IUIConstants;
-import org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable;
-import org.eclipse.ui.IWorkbenchPart;
-import org.eclipse.ui.navigator.CommonNavigator;
-import org.eclipse.ui.navigator.INavigatorActivationService;
-import org.eclipse.ui.navigator.INavigatorContentService;
-
-/**
- * Category property tester.
- */
-@SuppressWarnings("restriction")
-public class CategoryPropertyTester extends PropertyTester {
-
- /* (non-Javadoc)
- * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
- */
- @Override
- public boolean test(final Object receiver, final String property, final Object[] args, final Object expectedValue) {
- if (receiver instanceof IStructuredSelection) {
- // Analyze the selection
- return testSelection((IStructuredSelection)receiver, property, args, expectedValue);
- }
-
- return internalTest(receiver, property, args, expectedValue);
- }
-
- /**
- * Test the specific selection properties.
- *
- * @param selection The selection. Must not be <code>null</code>.
- * @param property The property to test.
- * @param args The property arguments.
- * @param expectedValue The expected value.
- *
- * @return <code>True</code> if the property to test has the expected value, <code>false</code>
- * otherwise.
- */
- protected boolean testSelection(IStructuredSelection selection, String property, Object[] args, Object expectedValue) {
- Assert.isNotNull(selection);
-
- if ("parentCategoryId".equals(property) && !selection.isEmpty()) { //$NON-NLS-1$
- // Only single element selection is supported
- Object element = selection.getFirstElement();
-
- TreePath[] pathes = selection instanceof ITreeSelection ? ((ITreeSelection)selection).getPathsFor(element) : null;
- if (pathes != null) {
- for (TreePath path : pathes) {
- // Find the category within the tree path
- TreePath parentPath = path.getParentPath();
- while (parentPath != null) {
- Object lastSegment = parentPath.getLastSegment();
- if (lastSegment instanceof ICategory
- && ((ICategory)lastSegment).getId().equals(expectedValue)) {
- return true;
- }
- parentPath = parentPath.getParentPath();
- }
- }
- }
- }
-
- if ("validAddToCategoriesCount".equals(property)) { //$NON-NLS-1$
- // Determine the number of valid "Add To" Categories
- AbstractCategoryContributionItem item = new CategoryAddToContributionItem();
- ICategory[] categories = item.getCategories(selection, true);
- final int count = categories.length;
-
- // Re-use the count expression to allow the same value syntax
- String value = expectedValue instanceof String ? (String)expectedValue : expectedValue != null ? expectedValue.toString() : null;
- if (value != null) {
- CountExpression expression = new CountExpression(value);
- IEvaluationContext context = new EvaluationContext(null, new ICountable() {
- @Override
- public int count() {
- return count;
- }
- });
-
- EvaluationResult result = EvaluationResult.FALSE;
- try {
- result = expression.evaluate(context);
- } catch (CoreException e) {
- if (Platform.inDebugMode()) e.printStackTrace();
- }
-
- return result.equals(EvaluationResult.TRUE);
- }
- }
-
- return false;
- }
-
- /**
- * Internal helper to {@link #test(Object, String, Object[], Object)}.
- */
- protected boolean internalTest(Object receiver, String property, Object[] args, Object expectedValue) {
- ICategorizable categorizable = receiver instanceof IAdaptable ? (ICategorizable)((IAdaptable)receiver).getAdapter(ICategorizable.class) : null;
- if (categorizable == null) categorizable = (ICategorizable)Platform.getAdapterManager().getAdapter(receiver, ICategorizable.class);
-
- if ("belongsTo".equals(property) && categorizable != null) { //$NON-NLS-1$
- String id = categorizable.getId();
- if (id != null && expectedValue instanceof String) {
- return Managers.getCategoryManager().belongsTo((String)expectedValue, id);
- }
- }
-
- if ("isCategoryID".equals(property) && receiver instanceof ICategory) { //$NON-NLS-1$
- String id = ((ICategory)receiver).getId();
- return id.equals(expectedValue);
- }
-
- if ("isHiddenByPreferences".equals(property) && receiver instanceof ICategory && expectedValue instanceof Boolean) { //$NON-NLS-1$
- String prefKey = ((ICategory)receiver).getId() + ".hide"; //$NON-NLS-1$
- boolean isHidden = UIPlugin.getScopedPreferences().getBoolean(prefKey) || Boolean.getBoolean(prefKey);
- return ((Boolean)expectedValue).booleanValue() == isHidden;
- }
-
- if ("isVisibleNavigatorContent".equals(property) && receiver instanceof ICategory && expectedValue instanceof Boolean) { //$NON-NLS-1$
- boolean isVisible = false;
-
- String navContentID = args != null && args.length == 1 && args[0] instanceof String ? (String)args[0] : null;
- IWorkbenchPart part = ViewsUtil.getPart(IUIConstants.ID_EXPLORER);
-
- if (part instanceof CommonNavigator) {
- CommonNavigator navigator = (CommonNavigator)part;
- INavigatorContentService service = navigator.getNavigatorContentService();
- INavigatorActivationService activationService = service != null ? service.getActivationService() : null;
- isVisible = activationService != null && navContentID != null && activationService.isNavigatorExtensionActive(navContentID);
- }
-
- return ((Boolean)expectedValue).booleanValue() == isVisible;
- }
-
- return false;
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
+ * This program and the accompanying materials are made available under the terms
+ * of the Eclipse Public License v1.0 which accompanies this distribution, and is
+ * available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.ui.views.internal.categories;
+
+import org.eclipse.core.expressions.EvaluationContext;
+import org.eclipse.core.expressions.EvaluationResult;
+import org.eclipse.core.expressions.ICountable;
+import org.eclipse.core.expressions.IEvaluationContext;
+import org.eclipse.core.expressions.PropertyTester;
+import org.eclipse.core.internal.expressions.CountExpression;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.ITreeSelection;
+import org.eclipse.jface.viewers.TreePath;
+import org.eclipse.tcf.te.ui.views.Managers;
+import org.eclipse.tcf.te.ui.views.ViewsUtil;
+import org.eclipse.tcf.te.ui.views.activator.UIPlugin;
+import org.eclipse.tcf.te.ui.views.extensions.CategoriesExtensionPointManager;
+import org.eclipse.tcf.te.ui.views.handler.CategoryAddToContributionItem;
+import org.eclipse.tcf.te.ui.views.interfaces.ICategory;
+import org.eclipse.tcf.te.ui.views.interfaces.IUIConstants;
+import org.eclipse.tcf.te.ui.views.interfaces.categories.ICategorizable;
+import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.navigator.CommonNavigator;
+import org.eclipse.ui.navigator.INavigatorActivationService;
+import org.eclipse.ui.navigator.INavigatorContentService;
+
+/**
+ * Category property tester.
+ */
+@SuppressWarnings("restriction")
+public class CategoryPropertyTester extends PropertyTester {
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
+ */
+ @Override
+ public boolean test(final Object receiver, final String property, final Object[] args, final Object expectedValue) {
+ if (receiver instanceof IStructuredSelection) {
+ // Analyze the selection
+ return testSelection((IStructuredSelection)receiver, property, args, expectedValue);
+ }
+
+ return internalTest(receiver, property, args, expectedValue);
+ }
+
+ /**
+ * Test the specific selection properties.
+ *
+ * @param selection The selection. Must not be <code>null</code>.
+ * @param property The property to test.
+ * @param args The property arguments.
+ * @param expectedValue The expected value.
+ *
+ * @return <code>True</code> if the property to test has the expected value, <code>false</code>
+ * otherwise.
+ */
+ protected boolean testSelection(IStructuredSelection selection, String property, Object[] args, Object expectedValue) {
+ Assert.isNotNull(selection);
+
+ if ("parentCategoryId".equals(property) && !selection.isEmpty()) { //$NON-NLS-1$
+ // Only single element selection is supported
+ Object element = selection.getFirstElement();
+
+ TreePath[] pathes = selection instanceof ITreeSelection ? ((ITreeSelection)selection).getPathsFor(element) : null;
+ if (pathes != null) {
+ for (TreePath path : pathes) {
+ // Find the category within the tree path
+ TreePath parentPath = path.getParentPath();
+ while (parentPath != null) {
+ Object lastSegment = parentPath.getLastSegment();
+ if (lastSegment instanceof ICategory
+ && ((ICategory)lastSegment).getId().equals(expectedValue)) {
+ return true;
+ }
+ parentPath = parentPath.getParentPath();
+ }
+ }
+ }
+ }
+
+ if ("validAddToCategoriesCount".equals(property)) { //$NON-NLS-1$
+ // Determine the number of valid "Add To" Categories
+ AbstractCategoryContributionItem item = new CategoryAddToContributionItem();
+ ICategory[] categories = item.getCategories(selection, true);
+ final int count = categories.length;
+
+ // Re-use the count expression to allow the same value syntax
+ String value = expectedValue instanceof String ? (String)expectedValue : expectedValue != null ? expectedValue.toString() : null;
+ if (value != null) {
+ CountExpression expression = new CountExpression(value);
+ IEvaluationContext context = new EvaluationContext(null, new ICountable() {
+ @Override
+ public int count() {
+ return count;
+ }
+ });
+
+ EvaluationResult result = EvaluationResult.FALSE;
+ try {
+ result = expression.evaluate(context);
+ } catch (CoreException e) {
+ if (Platform.inDebugMode()) e.printStackTrace();
+ }
+
+ return result.equals(EvaluationResult.TRUE);
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Internal helper to {@link #test(Object, String, Object[], Object)}.
+ */
+ protected boolean internalTest(Object receiver, String property, Object[] args, Object expectedValue) {
+ ICategorizable categorizable = receiver instanceof IAdaptable ? (ICategorizable)((IAdaptable)receiver).getAdapter(ICategorizable.class) : null;
+ if (categorizable == null) categorizable = (ICategorizable)Platform.getAdapterManager().getAdapter(receiver, ICategorizable.class);
+
+ if ("belongsTo".equals(property) && categorizable != null) { //$NON-NLS-1$
+ String id = categorizable.getId();
+ if (id != null && expectedValue instanceof String) {
+ return Managers.getCategoryManager().belongsTo((String)expectedValue, id);
+ }
+ }
+
+ if ("isCategoryID".equals(property) && receiver instanceof ICategory) { //$NON-NLS-1$
+ String id = ((ICategory)receiver).getId();
+ return id.equals(expectedValue);
+ }
+
+ if ("isCategoryEnabled".equals(property) && expectedValue instanceof Boolean) { //$NON-NLS-1$
+ String categoryId = args != null && args.length == 1 && args[0] instanceof String ? (String)args[0] : null;
+ ICategory category = categoryId != null ? CategoriesExtensionPointManager.getInstance().getCategory(categoryId, false) : null;
+
+ return category != null && (category.isEnabled() == ((Boolean)expectedValue).booleanValue());
+ }
+
+ if ("isHiddenByPreferences".equals(property) && receiver instanceof ICategory && expectedValue instanceof Boolean) { //$NON-NLS-1$
+ String prefKey = ((ICategory)receiver).getId() + ".hide"; //$NON-NLS-1$
+ boolean isHidden = UIPlugin.getScopedPreferences().getBoolean(prefKey) || Boolean.getBoolean(prefKey);
+ return ((Boolean)expectedValue).booleanValue() == isHidden;
+ }
+
+ if ("isVisibleNavigatorContent".equals(property) && receiver instanceof ICategory && expectedValue instanceof Boolean) { //$NON-NLS-1$
+ boolean isVisible = false;
+
+ String navContentID = args != null && args.length == 1 && args[0] instanceof String ? (String)args[0] : null;
+ IWorkbenchPart part = ViewsUtil.getPart(IUIConstants.ID_EXPLORER);
+
+ if (part instanceof CommonNavigator) {
+ CommonNavigator navigator = (CommonNavigator)part;
+ INavigatorContentService service = navigator.getNavigatorContentService();
+ INavigatorActivationService activationService = service != null ? service.getActivationService() : null;
+ isVisible = activationService != null && navContentID != null && activationService.isNavigatorExtensionActive(navContentID);
+ }
+
+ return ((Boolean)expectedValue).booleanValue() == isVisible;
+ }
+
+ return false;
+ }
+}

Back to the top