|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.rse.ui.actions.SystemBaseAction
org.eclipse.rse.ui.actions.SystemBaseDialogAction
org.eclipse.rse.ui.actions.SystemProfileNameCopyAction
A copy profile action. Will copy the profile, and all connections for the profile. We must first prompt user for a new name for the copied profile.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
cancelled, dlgHelpId, needsProgressMonitor, needsProgressMonitorSet, processAll, value |
| Fields inherited from class org.eclipse.rse.ui.actions.SystemBaseAction |
|---|
allowOnMultipleSelection, arrowCursor, helpId, selectionSensitive, shell, sSelection, traceSelections, traceTarget, viewer, waitCursor |
| Fields inherited from interface org.eclipse.jface.action.IAction |
|---|
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT |
| Constructor Summary | |
|---|---|
SystemProfileNameCopyAction(Shell shell)
Constructor for selection-sensitive popup menu for profiles in Team view. |
|
| Method Summary | |
|---|---|
protected Dialog |
createDialog(Shell parent)
Override of parent |
static String |
getCopyingMessage(String oldName,
String newName)
Helper method to return the message "Copying &1 to &2..." |
protected Object |
getDialogValue(Dialog dlg)
Required by parent. |
protected IRunnableContext |
getRunnableContext()
Get an IRunnable context to show progress in. |
void |
run(IProgressMonitor monitor)
Method required by IRunnableWithProgress interface. |
void |
setProfile(ISystemProfile profile)
Set the profile |
protected void |
showOperationCancelledMessage(Shell shell)
Show an error message when the user cancels the operation. |
protected void |
showOperationErrorMessage(Shell shell,
Throwable exc)
Show an error message when the operation fails. |
protected void |
showOperationMessage(Exception exc,
Shell shell)
Helper method to show an error message resulting from the attempted operation. |
| Methods inherited from class org.eclipse.rse.ui.actions.SystemBaseDialogAction |
|---|
getDialogHelpContextId, getNeedsProgressMonitor, getProcessAllSelections, getValue, run, setDialogHelp, setNeedsProgressMonitor, setProcessAllSelections, setValue, wasCancelled, wasNeedsProgressMonitorSet |
| Methods inherited from class org.eclipse.jface.action.AbstractAction |
|---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.rse.ui.actions.ISystemAction |
|---|
allowOnMultipleSelection, getContextMenuGroup, getHelpContextId, getSelection, getShell, getViewer, isDummy, isSelectionSensitive, setContextMenuGroup, setHelp, setInputs, setSelection, setSelectionSensitive, setShell, setViewer |
| Methods inherited from interface org.eclipse.jface.action.IAction |
|---|
addPropertyChangeListener, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Methods inherited from interface org.eclipse.jface.viewers.ISelectionChangedListener |
|---|
selectionChanged |
| Constructor Detail |
public SystemProfileNameCopyAction(Shell shell)
| Method Detail |
public void setProfile(ISystemProfile profile)
protected Dialog createDialog(Shell parent)
createDialog in class SystemBaseDialogActionSystemBaseDialogAction.run()protected Object getDialogValue(Dialog dlg)
getDialogValue in class SystemBaseDialogActiondlg - The dialog object, after it has returned from open.protected IRunnableContext getRunnableContext()
public void run(IProgressMonitor monitor)
throws InvocationTargetException,
InterruptedException
run in interface IRunnableWithProgressInvocationTargetException
InterruptedException
public static String getCopyingMessage(String oldName,
String newName)
protected void showOperationMessage(Exception exc,
Shell shell)
protected void showOperationErrorMessage(Shell shell,
Throwable exc)
protected void showOperationCancelledMessage(Shell shell)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||