mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +02:00
[190442][api] Make SystemActionViewerFilter API in org.eclipse.rse.ui
This commit is contained in:
parent
902573a3b4
commit
73423f9283
6 changed files with 50 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation 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
|
||||
|
@ -11,15 +11,15 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [190442] made SystemActionViewerFilter API
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.dialogs;
|
||||
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.SystemFileResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.ui.SystemActionViewerFilter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
* Contributors:
|
||||
* Kevin Doyle (IBM) - Added Double Click Listener that closes dialog on file double click
|
||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||
* Martin Oberhuber (Wind River) - [190442] made SystemActionViewerFilter API
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.dialogs;
|
||||
|
@ -22,8 +23,8 @@ import org.eclipse.jface.viewers.IDoubleClickListener;
|
|||
import org.eclipse.jface.viewers.IStructuredSelection;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.SystemFileResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.internal.ui.view.SystemView;
|
||||
import org.eclipse.rse.ui.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.ui.dialogs.SystemRemoteResourceDialog;
|
||||
import org.eclipse.swt.widgets.Composite;
|
||||
import org.eclipse.swt.widgets.Control;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation 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
|
||||
|
@ -11,15 +11,15 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - [190442] made SystemActionViewerFilter API
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.files.ui.dialogs;
|
||||
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.internal.subsystems.files.core.SystemFileResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.ui.SystemActionViewerFilter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*
|
||||
* Contributors:
|
||||
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
||||
* Martin Oberhuber (Wind River) - [190442] made SystemActionViewerFilter API
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
@ -22,10 +23,10 @@ import org.eclipse.rse.core.model.IHost;
|
|||
import org.eclipse.rse.files.ui.ISystemAddFileListener;
|
||||
import org.eclipse.rse.files.ui.dialogs.SystemRemoteFileDialog;
|
||||
import org.eclipse.rse.internal.files.ui.FileResources;
|
||||
import org.eclipse.rse.internal.ui.view.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.subsystems.files.core.model.RemoteFileUtility;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
|
||||
import org.eclipse.rse.ui.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.ui.actions.SystemBaseDialogAction;
|
||||
import org.eclipse.rse.ui.dialogs.SystemRemoteResourceDialog;
|
||||
import org.eclipse.rse.ui.validators.IValidatorRemoteSelection;
|
||||
|
@ -34,7 +35,7 @@ import org.eclipse.swt.widgets.Shell;
|
|||
|
||||
|
||||
/**
|
||||
* The action for allowing the user to select a remote folder.
|
||||
* The action for allowing the user to select a remote file.
|
||||
* <p>
|
||||
* To configure the functionality, call these methods:
|
||||
* <ul>
|
||||
|
@ -42,7 +43,7 @@ import org.eclipse.swt.widgets.Shell;
|
|||
* <li>{@link #setHost(IHost) or #setDefaultConnection(SystemConnection)}
|
||||
* <li>{@link #setSystemType(IRSESystemType)} or {@link #setSystemTypes(IRSESystemType[])}
|
||||
* <li>{@link #setRootFolder(IHost, String)} or {@link #setRootFolder(IRemoteFile)} or {@link #setPreSelection(IRemoteFile)}
|
||||
* <li>{@link #setAutoExpandDepth(int)}
|
||||
* <li>{@link #setPreSelection(IRemoteFile)}
|
||||
* <li>{@link #setShowPropertySheet(boolean)}
|
||||
* <li>{@link #enableAddMode(ISystemAddFileListener)}
|
||||
* <li>{@link #setMultipleSelectionMode(boolean)}
|
||||
|
@ -58,7 +59,7 @@ import org.eclipse.swt.widgets.Shell;
|
|||
* <p>
|
||||
* After running, call these methods to get the output:
|
||||
* <ul>
|
||||
* <li>{@link #getSelectedFolder()} or {@link #getSelectedFolders()}
|
||||
* <li>{@link #getSelectedFile()} or {@link #getSelectedFiles()}
|
||||
* <li>{@link #getSelectedConnection()}
|
||||
* </ul>
|
||||
*/
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/********************************************************************************
|
||||
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||
* Copyright (c) 2006, 2007 IBM Corporation 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
|
||||
|
@ -11,17 +11,50 @@
|
|||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||
*
|
||||
* Contributors:
|
||||
* {Name} (company) - description of contribution.
|
||||
* Martin Oberhuber (Wind River) - Add Javadoc
|
||||
********************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.files.ui.actions;
|
||||
|
||||
import org.eclipse.rse.core.IRSESystemType;
|
||||
import org.eclipse.rse.core.model.IHost;
|
||||
import org.eclipse.rse.files.ui.ISystemAddFileListener;
|
||||
import org.eclipse.rse.files.ui.dialogs.SystemRemoteFolderDialog;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.ui.dialogs.SystemRemoteResourceDialog;
|
||||
import org.eclipse.rse.ui.validators.IValidatorRemoteSelection;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
|
||||
/**
|
||||
* The action for allowing the user to select a remote folder.
|
||||
* <p>
|
||||
* To configure the functionality, call these methods:
|
||||
* <ul>
|
||||
* <li>{@link #setShowNewConnectionPrompt(boolean)}
|
||||
* <li>{@link #setHost(IHost) or #setDefaultConnection(SystemConnection)}
|
||||
* <li>{@link #setSystemType(IRSESystemType)} or {@link #setSystemTypes(IRSESystemType[])}
|
||||
* <li>{@link #setRootFolder(IHost, String)} or {@link #setRootFolder(IRemoteFile)} or {@link #setPreSelection(IRemoteFile)}
|
||||
* <li>{@link #setPreSelection(IRemoteFile)}
|
||||
* <li>{@link #setShowPropertySheet(boolean)}
|
||||
* <li>{@link #enableAddMode(ISystemAddFileListener)}
|
||||
* <li>{@link #setMultipleSelectionMode(boolean)}
|
||||
* <li>{@link #setSelectionValidator(IValidatorRemoteSelection)}
|
||||
* </ul>
|
||||
* <p>
|
||||
* To configure the text on the dialog, call these methods:
|
||||
* <ul>
|
||||
* <li>{@link #setDialogTitle(String)}
|
||||
* <li>{@link #setMessage(String)}
|
||||
* <li>{@link #setSelectionTreeToolTipText(String)}
|
||||
* </ul>
|
||||
* <p>
|
||||
* After running, call these methods to get the output:
|
||||
* <ul>
|
||||
* <li>{@link #getSelectedFolder()} or {@link #getSelectedFolders()}
|
||||
* <li>{@link #getSelectedConnection()}
|
||||
* </ul>
|
||||
*/
|
||||
public class SystemRemoteFolderSelectAction extends
|
||||
SystemRemoteFileSelectAction
|
||||
{
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
* Contributors:
|
||||
* Kushal Munir (IBM) - initial API and implementation.
|
||||
* Kevin Doyle (IBM) [189433] - Added Viewer Filter to display directories & archives
|
||||
* Martin Oberhuber (Wind River) - [190442] made SystemActionViewerFilter API
|
||||
********************************************************************************/
|
||||
package org.eclipse.rse.internal.files.ui.search;
|
||||
|
||||
import org.eclipse.rse.files.ui.dialogs.SystemRemoteFolderDialog;
|
||||
import org.eclipse.rse.internal.ui.view.SystemActionViewerFilter;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.ui.SystemActionViewerFilter;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue