*** empty log message ***
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/FeatureEditorContributor.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/FeatureEditorContributor.java
index 4c62f96..b299b29 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/FeatureEditorContributor.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/FeatureEditorContributor.java
@@ -4,6 +4,7 @@
* All Rights Reserved.
*/
+import org.eclipse.swt.dnd.Clipboard;
import org.eclipse.ui.*;
import org.eclipse.jface.action.*;
import org.eclipse.pde.internal.ui.editor.*;
@@ -43,4 +44,8 @@
synchronizeAction.setActiveEditor((FeatureEditor) targetEditor);
previewAction.setActiveEditor((FeatureEditor)targetEditor);
}
+
+ protected boolean hasKnownTypes(Clipboard clipboard) {
+ return true;
+ }
}
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/InfoSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/InfoSection.java
index b398f98..f128985 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/InfoSection.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/feature/InfoSection.java
@@ -11,15 +11,17 @@
import org.eclipse.jface.text.*;
import org.eclipse.jface.text.rules.RuleBasedPartitioner;
import org.eclipse.jface.text.source.*;
+import org.eclipse.jface.viewers.*;
import org.eclipse.pde.core.*;
+import org.eclipse.pde.internal.core.ifeature.*;
import org.eclipse.pde.internal.ui.PDEPlugin;
import org.eclipse.pde.internal.ui.editor.*;
import org.eclipse.pde.internal.ui.editor.text.*;
-import org.eclipse.pde.internal.core.ifeature.*;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.*;
-import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
+import org.eclipse.swt.events.*;
+import org.eclipse.swt.dnd.Clipboard;
+import org.eclipse.swt.custom.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.update.ui.forms.internal.FormWidgetFactory;
@@ -122,6 +124,11 @@
sourceViewer = new SourceViewer(container, null, styles);
sourceViewer.configure(sourceConfiguration);
sourceViewer.setDocument(document);
+ sourceViewer.addSelectionChangedListener(new ISelectionChangedListener() {
+ public void selectionChanged(SelectionChangedEvent event) {
+ updateSelection(event.getSelection());
+ }
+ });
StyledText styledText = sourceViewer.getTextWidget();
styledText.setFont(JFaceResources.getTextFont());
if (SWT.getPlatform().equals("motif") == false)
@@ -171,6 +178,9 @@
});
return container;
}
+ private void updateSelection(ISelection selection) {
+ getFormPage().getEditor().setSelection(selection);
+ }
public boolean doGlobalAction(String actionId) {
if (actionId.equals(org.eclipse.ui.IWorkbenchActionConstants.CUT)) {
sourceViewer.doOperation(sourceViewer.CUT);
@@ -356,4 +366,8 @@
element = input;
ignoreChange = false;
}
+
+ public boolean canPaste(Clipboard clipboard) {
+ return sourceViewer.canDoOperation(sourceViewer.PASTE);
+ }
}
\ No newline at end of file
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionPointSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionPointSection.java
index 82a1473..f19c410 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionPointSection.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionPointSection.java
@@ -206,13 +206,21 @@
IStructuredSelection ssel = (IStructuredSelection) sel;
if (!ssel.isEmpty() && ssel.getFirstElement().equals(changeObject)) {
// update property sheet
- getFormPage().setSelection(sel);
+ asyncResendSelection(sel);
}
}
}
}
}
}
+
+ private void asyncResendSelection(final ISelection sel) {
+ pointTable.getControl().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ getFormPage().setSelection(sel);
+ }
+ });
+ }
public void setFocus() {
pointTable.getTable().setFocus();
}
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionSection.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionSection.java
index 1105606..d23807b 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionSection.java
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/manifest/DetailExtensionSection.java
@@ -551,7 +551,7 @@
IStructuredSelection ssel = (IStructuredSelection) sel;
if (!ssel.isEmpty() && ssel.getFirstElement().equals(changeObject)) {
// update property sheet
- getFormPage().setSelection(sel);
+ asyncResendSelection(sel);
}
}
}
@@ -559,6 +559,15 @@
}
}
}
+
+ private void asyncResendSelection(final ISelection sel) {
+ extensionTree.getControl().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ getFormPage().setSelection(sel);
+ }
+ });
+ }
+
private Image resolveObjectImage(Object obj) {
if (obj instanceof IPluginExtension) {
return extensionImage;
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties
index dc8aec6..6e99fdb 100644
--- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties
+++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/pderesources.properties
@@ -140,9 +140,9 @@
FeatureEditor.InfoSection.desc = Enter description, license and copyright information. To work with \
one of these information items at a time, select it from the drop-down box and enter text.
-FeatureEditor.InfoSection.info = &Section:
-FeatureEditor.InfoSection.url = Optional &URL:
-FeatureEditor.InfoSection.text = &Text:
+FeatureEditor.InfoSection.info = Section:
+FeatureEditor.InfoSection.url = Optional URL:
+FeatureEditor.InfoSection.text = Text:
FeatureEditor.info.description = Feature Description
FeatureEditor.info.license = License Agreement
FeatureEditor.info.copyright = Copyright Notice
@@ -210,23 +210,23 @@
ManifestEditor.DetailExtensionPointSection.title = All Extension Points
ManifestEditor.DetailExtensionPointSection.desc = The following extension points are provided:
-ManifestEditor.DetailExtensionPointSection.new = &New...
+ManifestEditor.DetailExtensionPointSection.new = Add...
ManifestEditor.DetailExtensionPointSection.newExtensionPoint = &New Extension Point...
ManifestEditor.DetailExtensionSection.title = All Extensions
-ManifestEditor.DetailExtensionSection.new = &New...
+ManifestEditor.DetailExtensionSection.new = Add...
ManifestEditor.DetailExtensionSection.newExtension = Extension...
-ManifestEditor.DetailExtensionSection.showAllChildren = &Show full extension hierarchy
+ManifestEditor.DetailExtensionSection.showAllChildren = Show full extension hierarchy
ManifestEditor.DetailExtensionSection.up = Up
ManifestEditor.DetailExtensionSection.down = Down
ManifestEditor.ExportSection.title = Library exporting
ManifestEditor.ExportSection.desc = Define the portions of the selected library\nthat should be visible to plug-ins.
-ManifestEditor.ExportSection.noExport = &Do not export
-ManifestEditor.ExportSection.fullExport = &Export the entire library
-ManifestEditor.ExportSection.selectedExport = Export u&sing content filters
-ManifestEditor.ExportSection.add = &Add
-ManifestEditor.ExportSection.remove = &Remove
+ManifestEditor.ExportSection.noExport = Do not export
+ManifestEditor.ExportSection.fullExport = Export the entire library
+ManifestEditor.ExportSection.selectedExport = Export using content filters
+ManifestEditor.ExportSection.add = Add
+ManifestEditor.ExportSection.remove = Remove
ManifestEditor.ExportSection.newFilter = &New filter
ManifestEditor.ExtensionElementPR.finish = Finish implementation of {0}
@@ -236,12 +236,12 @@
ManifestEditor.ExtensionPointSection.title = Extension Points
ManifestEditor.ExtensionPointSection.desc = Other plug-ins can use the following extension points to extend this plug-in:
ManifestEditor.ExtensionPointSection.fdesc = Plug-ins can use the following extension points to extend this fragment:
-ManifestEditor.ExtensionPointSection.more = M&ore...
+ManifestEditor.ExtensionPointSection.more = More...
ManifestEditor.ExtensionSection.title = Extensions
ManifestEditor.ExtensionSection.desc = The following extensions are defined in this plug-in:
ManifestEditor.ExtensionSection.fdesc = The following extensions are defined in this fragment:
-ManifestEditor.ExtensionSection.more = &More...
+ManifestEditor.ExtensionSection.more = More...
ManifestEditor.ExtensionForm.title = Extensions
@@ -286,7 +286,7 @@
ManifestEditor.JarsSection.title = Library Content
ManifestEditor.JarsSection.desc = List source folders that should be included\ninto the selected library.
-ManifestEditor.JarsSection.new = &New...
+ManifestEditor.JarsSection.new = Add...
ManifestEditor.JarsSection.newFolder = &New Folder...
ManifestEditor.JarsSection.dialogTitle = New Source Folder
ManifestEditor.JarsSection.rtitle = {0} (in use - read only)
@@ -297,9 +297,9 @@
ManifestEditor.LibrarySection.title = Run-time libraries
ManifestEditor.LibrarySection.fdesc = Define libraries that need to be included in the class path of your fragment.
ManifestEditor.LibrarySection.desc = Define libraries that need to be included in the class path of your plug-in.
-ManifestEditor.LibrarySection.new = &New
-ManifestEditor.LibrarySection.up = &Up
-ManifestEditor.LibrarySection.down = &Down
+ManifestEditor.LibrarySection.new = Add
+ManifestEditor.LibrarySection.up = Up
+ManifestEditor.LibrarySection.down = Down
ManifestEditor.LibrarySection.newLibrary = &New Library...
ManifestEditor.LibrarySection.newLibraryEntry = New Library
@@ -310,7 +310,7 @@
ManifestEditor.ImportListSection.title = Required Plug-ins
ManifestEditor.ImportListSection.desc = Specify the plug-ins required for the operation of this plug-in.
ManifestEditor.ImportListSection.fdesc = Specify the plug-ins required for the operation of this fragment.
-ManifestEditor.ImportListSection.new = &New...
+ManifestEditor.ImportListSection.new = Add...
ManifestEditor.ImportListSection.new.wtitle = New Required Plug-in
ManifestEditor.ImportListSection.new.title = Available Plug-ins
ManifestEditor.ImportListSection.new.desc = Select plug-ins from the provided list that should be added to the dependency list.
@@ -321,16 +321,16 @@
ManifestEditor.ImportStatusSection.title = Dependency Status
ManifestEditor.ImportStatusSection.desc = Explore information related to the paths of the dependency graph.
-ManifestEditor.ImportStatusSection.comboLabel= &Find:
+ManifestEditor.ImportStatusSection.comboLabel= Find:
ManifestEditor.ImportStatusSection.comboLoops = Loops in dependency graph
ManifestEditor.ImportStatusSection.comboRefs = Plug-ins that reference this plug-in
ManifestEditor.ImportStatusSection.comboFrefs = Fragments that reference this plug-in
ManifestEditor.MatchSection.title = Import Details
ManifestEditor.MatchSection.desc = Define the properties of the selected dependency.
-ManifestEditor.MatchSection.reexport = &Reexport the dependency
-ManifestEditor.MatchSection.version = &Version to match:
-ManifestEditor.MatchSection.rule = &Match rule:
+ManifestEditor.MatchSection.reexport = Reexport the dependency
+ManifestEditor.MatchSection.version = Version to match:
+ManifestEditor.MatchSection.rule = Match rule:
ManifestEditor.MatchSection.none = None
ManifestEditor.MatchSection.perfect = Perfect
ManifestEditor.MatchSection.equivalent = Equivalent
@@ -363,7 +363,7 @@
ManifestEditor.RequiresSection.title = Required Plug-ins
ManifestEditor.RequiresSection.desc = The following plug-ins must be installed for this plug-in to work properly:
ManifestEditor.RequiresSection.fdesc = The following plug-ins must be installed for this fragment to work properly:
-ManifestEditor.RequiresSection.more = Mo&re...
+ManifestEditor.RequiresSection.more = More...
ManifestEditor.ResourceAttributeCellEditor.title = Resource Attribute Value
@@ -372,7 +372,7 @@
ManifestEditor.RuntimeSection.title = Runtime Libraries
ManifestEditor.RuntimeSection.fdesc = The following libraries will be added\nto the classpath of this fragment:
ManifestEditor.RuntimeSection.desc = The following libraries will be added\nto the classpath of this plug-in:
-ManifestEditor.RuntimeSection.more = Mor&e...
+ManifestEditor.RuntimeSection.more = More...
###### Schema Editor ##################################
SchemaEditor.oldExtension = Extension point schema file content type 'xsd' has been deprecated. You should change it to 'exsd' at the earliest convenience.
@@ -417,8 +417,8 @@
SchemaEditor.ElementSection.title = Extension Point Elements
SchemaEditor.ElementSection.desc = The following XML elements and attributes are allowed\nin this extension point:
-SchemaEditor.ElementSection.newElement = &New Element
-SchemaEditor.ElementSection.newAttribute = Ne&w Attribute
+SchemaEditor.ElementSection.newElement = New Element
+SchemaEditor.ElementSection.newAttribute = New Attribute
SchemaEditor.RestrictionDialog.wtitle = Type Restriction
SchemaEditor.RestrictionDialog.type = &Restriction type