RSE
Release 3.3

org.eclipse.rse.ui
Interface ISystemRenameTarget

All Superinterfaces:
ISelectionProvider
All Known Implementing Classes:
SystemCommandsView, SystemTableView

public interface ISystemRenameTarget
extends ISelectionProvider

Any UI part that supports the common rename action can implement this to enable the rename popup menu action, supplied by the system explorer view.


Method Summary
 boolean canRename()
          Return true if rename should be enabled based on your current selection.
 boolean doRename(String[] newNames)
          Actually do the rename of currently selected items.
 boolean showRename()
          Return true if rename should even be shown in the popup menu
 
Methods inherited from interface org.eclipse.jface.viewers.ISelectionProvider
addSelectionChangedListener, getSelection, removeSelectionChangedListener, setSelection
 

Method Detail

showRename

boolean showRename()
Return true if rename should even be shown in the popup menu


canRename

boolean canRename()
Return true if rename should be enabled based on your current selection.


doRename

boolean doRename(String[] newNames)
Actually do the rename of currently selected items. The array of new names matches the currently selected items. Return true if it worked. Return false if it didn't (you display msg), or throw an exception (framework displays msg)


RSE
Release 3.3

Copyright (c) IBM Corporation and others 2000, 2011. All Rights Reserved.