summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorWilliam Chen2011-10-25 02:37:17 (EDT)
committer Uwe Stieber2011-10-25 07:43:21 (EDT)
commitedc33478aa7403e4457a23a44456a1657ed7156c (patch)
tree7ca37b18142fc2989732971854cd89248e96070b
parent8eed07c010449884613f4d33d3a45fa1d34bfe50 (diff)
downloadorg.eclipse.tcf-edc33478aa7403e4457a23a44456a1657ed7156c.zip
org.eclipse.tcf-edc33478aa7403e4457a23a44456a1657ed7156c.tar.gz
org.eclipse.tcf-edc33478aa7403e4457a23a44456a1657ed7156c.tar.bz2
Target Explorer: [361326] Remove the in-place editor from the "Open
With" sub menu items.
-rw-r--r--target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/handlers/OpenWithMenu.java5
-rw-r--r--target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/properties/GeneralInformationPage.java13
2 files changed, 11 insertions, 7 deletions
diff --git a/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/handlers/OpenWithMenu.java b/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/handlers/OpenWithMenu.java
index 8d84ff6..22e09fe 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/handlers/OpenWithMenu.java
+++ b/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/handlers/OpenWithMenu.java
@@ -276,11 +276,6 @@ public class OpenWithMenu extends ContributionItem {
.findEditor(IEditorRegistry.SYSTEM_EXTERNAL_EDITOR_ID);
createMenuItem(menu, descriptor, preferredEditor);
- // Add system in-place editor (can be null)
- descriptor = registry.findEditor(IEditorRegistry.SYSTEM_INPLACE_EDITOR_ID);
- if (descriptor != null) {
- createMenuItem(menu, descriptor, preferredEditor);
- }
createDefaultMenuItem(menu);
// add Other... menu item
diff --git a/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/properties/GeneralInformationPage.java b/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/properties/GeneralInformationPage.java
index 8740ab1..e47e599 100644
--- a/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/properties/GeneralInformationPage.java
+++ b/target_explorer/plugins/org.eclipse.tm.te.tcf.filesystem/src/org/eclipse/tm/te/tcf/filesystem/internal/properties/GeneralInformationPage.java
@@ -31,6 +31,7 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
import org.eclipse.tm.te.tcf.filesystem.internal.handlers.ContentTypeHelper;
import org.eclipse.tm.te.tcf.filesystem.internal.handlers.StateManager;
import org.eclipse.tm.te.tcf.filesystem.internal.nls.Messages;
@@ -100,9 +101,17 @@ public class GeneralInformationPage extends PropertyPage {
label.setText(text);
GridData data = new GridData();
data.horizontalAlignment = SWT.LEFT;
+ data.verticalAlignment = SWT.TOP;
label.setLayoutData(data);
- label = new Label(parent, SWT.NONE);
- label.setText(value);
+ Text txt = new Text(parent, SWT.WRAP | SWT.READ_ONLY);
+ data = new GridData();
+ data.verticalAlignment = SWT.TOP;
+ data.widthHint = 300;
+ data.grabExcessHorizontalSpace = true;
+ data.horizontalAlignment = GridData.FILL;
+ txt.setLayoutData(data);
+ txt.setBackground(txt.getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
+ txt.setText(value);
}
/**