Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Schorn2015-05-05 07:22:26 +0000
committerUwe Stieber2015-05-05 08:23:36 +0000
commit188c74c2ebb0ab5a1650b95bee2810772487e896 (patch)
tree042b7860174ec4e5b21b93264c2ea9af9425425a /target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
parentd5c744d7f619e007d4a5d23f3321aeb383cb8b40 (diff)
downloadorg.eclipse.tcf-188c74c2ebb0ab5a1650b95bee2810772487e896.tar.gz
org.eclipse.tcf-188c74c2ebb0ab5a1650b95bee2810772487e896.tar.xz
org.eclipse.tcf-188c74c2ebb0ab5a1650b95bee2810772487e896.zip
Bug 465580: Expand file-system on target connect.
Change-Id: Icfcb5dfcc975fc234a17ce4bd275304516959266 Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml60
1 files changed, 46 insertions, 14 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
index ca7e2f0e2..7cd6897b7 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.filesystem.ui/plugin.xml
@@ -35,7 +35,10 @@
</or>
</triggerPoints>
<possibleChildren>
- <instanceof value="org.eclipse.tcf.te.tcf.filesystem.core.interfaces.runtime.IFSTreeNode"/>
+ <or>
+ <instanceof value="org.eclipse.tcf.te.tcf.filesystem.core.interfaces.runtime.IFSTreeNode"/>
+ <adapt type="org.eclipse.core.resources.IResource"/>
+ </or>
</possibleChildren>
<commonSorter
class="org.eclipse.tcf.te.tcf.filesystem.ui.controls.FSTreeViewerSorter"
@@ -523,7 +526,7 @@
</visibleWhen>
</command>
<command
- commandId="org.eclipse.tcf.te.tcf.filesystem.ui.download"
+ commandId="org.eclipse.tcf.te.tcf.filesystem.commands.download"
helpContextId="org.eclipse.tcf.te.tcf.filesystem.command_Download"
id="download"
label="%command.label.download"
@@ -547,6 +550,17 @@
label="%command.search.label"
style="push">
</command>
+ <dynamic
+ class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.handlers.ToggleRevealOnConnectContributionItem"
+ id="toggleRevealOnConnect">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate ifEmpty="false" operator="and">
+ <instanceof value="org.eclipse.tcf.te.tcf.filesystem.core.interfaces.runtime.IFSTreeNode"/>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </dynamic>
<separator name="group.properties" visible="true"/>
<command
commandId="org.eclipse.ui.file.properties"
@@ -632,6 +646,19 @@
</dynamic>
</menu>
</menuContribution>
+ <menuContribution locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.search">
+ <dynamic
+ class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.handlers.ToggleRevealOnConnectContributionItem"
+ id="toggleRevealOnConnect">
+ <visibleWhen checkEnabled="false">
+ <with variable="selection">
+ <iterate ifEmpty="false" operator="and">
+ <instanceof value="org.eclipse.tcf.te.tcf.filesystem.core.interfaces.runtime.IFSTreeNode"/>
+ </iterate>
+ </with>
+ </visibleWhen>
+ </dynamic>
+ </menuContribution>
<menuContribution
locationURI="popup:org.eclipse.tcf.te.ui.views.View#Popup?after=group.edit">
<command
@@ -955,7 +982,7 @@
</visibleWhen>
</command>
<command
- commandId="org.eclipse.tcf.te.tcf.filesystem.ui.download"
+ commandId="org.eclipse.tcf.te.tcf.filesystem.commands.download"
helpContextId="org.eclipse.tcf.te.tcf.filesystem.command_Download"
id="download"
label="%command.label.download"
@@ -1064,7 +1091,7 @@
name="%command.refreshViewer.name">
</command>
<command
- id="org.eclipse.tcf.te.tcf.filesystem.ui.download"
+ id="org.eclipse.tcf.te.tcf.filesystem.commands.download"
name="%command.download.name">
</command>
</extension>
@@ -1422,7 +1449,7 @@
</handler>
<handler
class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.handlers.DownloadFilesHandler"
- commandId="org.eclipse.tcf.te.tcf.filesystem.ui.download">
+ commandId="org.eclipse.tcf.te.tcf.filesystem.commands.download">
<activeWhen>
<and>
<with variable="activePartId">
@@ -1720,6 +1747,17 @@
</objectState>
</enablement>
</decorator>
+ <decorator
+ icon="icons/ovr/ovr_revealOnConnect.png"
+ id="revealOnConnect"
+ label="%decorator.revealOnConnect.label"
+ lightweight="true"
+ location="TOP_LEFT"
+ state="true">
+ <enablement>
+ <objectState name="isRevealOnConnect" value="true"/>
+ </enablement>
+ </decorator>
</extension>
<!-- Preference contributions -->
@@ -1837,7 +1875,8 @@
autoExpandLevel="0"
contentProvider="org.eclipse.tcf.te.tcf.filesystem.ui.controls.FSTreeContentProvider"
id="org.eclipse.tcf.te.ui.controls.viewer.fs"
- persistent="true">
+ persistent="true"
+ useLabelDecorator="true">
<creation>
<style name="SWT.FULL_SELECTION" />
<style name="SWT.MULTI" />
@@ -1876,7 +1915,7 @@
alignment="SWT.LEFT"
comparator="org.eclipse.tcf.te.tcf.filesystem.ui.internal.columns.FSTreeElementComparator"
id="name"
- labelProvider="org.eclipse.tcf.te.tcf.filesystem.ui.internal.columns.FSTreeElementLabelProvider"
+ labelProvider="org.eclipse.tcf.te.tcf.filesystem.ui.internal.columns.DecoratingFSTreeElementLabelProvider"
moveable="true"
name="%column.name.name"
resizable="true"
@@ -2043,13 +2082,6 @@
</propertySections>
</extension>
<extension
- point="org.eclipse.ui.elementFactories">
- <factory
- class="org.eclipse.tcf.te.tcf.filesystem.ui.internal.adapters.FSTreeNodeFactory"
- id="org.eclipse.tcf.te.tcf.filesystem.ui.nodeFactory">
- </factory>
- </extension>
- <extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.ui.navigator.Open"

Back to the top