Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-07-20 06:56:49 +0000
committerEike Stepper2012-07-20 06:56:49 +0000
commite046dcc64fa9c527993fcb9881a921210f785e79 (patch)
tree1992888573239a006ba0cf797925e2fc319b7bbd /plugins
parentb24b712352e7e0d6daae43ccf2e8f298b7be5280 (diff)
downloadcdo-e046dcc64fa9c527993fcb9881a921210f785e79.tar.gz
cdo-e046dcc64fa9c527993fcb9881a921210f785e79.tar.xz
cdo-e046dcc64fa9c527993fcb9881a921210f785e79.zip
Fix restricted usage
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng.relativepaths/src/org/eclipse/emf/cdo/releng/relativepaths/CreateRelativePathAction.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.relativepaths/src/org/eclipse/emf/cdo/releng/relativepaths/CreateRelativePathAction.java b/plugins/org.eclipse.emf.cdo.releng.relativepaths/src/org/eclipse/emf/cdo/releng/relativepaths/CreateRelativePathAction.java
index b145b0b6c4..f38ad61000 100644
--- a/plugins/org.eclipse.emf.cdo.releng.relativepaths/src/org/eclipse/emf/cdo/releng/relativepaths/CreateRelativePathAction.java
+++ b/plugins/org.eclipse.emf.cdo.releng.relativepaths/src/org/eclipse/emf/cdo/releng/relativepaths/CreateRelativePathAction.java
@@ -25,6 +25,7 @@ import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IObjectActionDelegate;
import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.dialogs.FilteredResourcesSelectionDialog;
import java.io.File;
import java.util.ArrayList;
@@ -55,14 +56,12 @@ public class CreateRelativePathAction implements IObjectActionDelegate
this.selection = selection;
}
- @SuppressWarnings("restriction")
public void run(IAction action)
{
IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IResource source = (IResource)((IStructuredSelection)selection).getFirstElement();
- org.eclipse.ui.internal.ide.dialogs.OpenResourceDialog dialog = new org.eclipse.ui.internal.ide.dialogs.OpenResourceDialog(
- shell, root, IResource.FILE);
+ FilteredResourcesSelectionDialog dialog = new FilteredResourcesSelectionDialog(shell, false, root, IResource.FILE);
dialog.setTitle(TITLE);
if (dialog.open() == Dialog.OK)

Back to the top