org.eclipse.cosmos.rm.smlif.internal.dialogs
Class ResourceSelectionDialog
java.lang.Object
org.eclipse.swt.widgets.Dialog
org.eclipse.cosmos.rm.smlif.internal.dialogs.ResourceSelectionDialog
public class ResourceSelectionDialog
- extends org.eclipse.swt.widgets.Dialog
A dialog used to list relevant resources based on the set
content type.
| Methods inherited from class org.eclipse.swt.widgets.Dialog |
checkSubclass, getParent, getStyle, getText, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceSelectionDialog
public ResourceSelectionDialog(org.eclipse.swt.widgets.Shell parent,
int contentType)
- The constructor
- Parameters:
parent - The parent shellcontentType - The content type that this resource selection dialog should
be based on. The contentType should be one of the following constatns:
ISMLConstants#TYPE_DEFINITION
ISMLConstants#TYPE_INSTANCE
ISMLConstants#TYPE_SMLIF
open
public org.eclipse.core.resources.IFile[] open()
dispose
public void dispose()
isMultiSelection
public boolean isMultiSelection()
- Returns:
- the multiSelection
setMultiSelection
public void setMultiSelection(boolean multiSelection)
- Parameters:
multiSelection - the multiSelection to set
getTitle
public java.lang.String getTitle()
- Returns:
- the title
setTitle
public void setTitle(java.lang.String title)
- Parameters:
title - the title to set
getMessage
public java.lang.String getMessage()
- Returns:
- the message
setMessage
public void setMessage(java.lang.String message)
- Parameters:
message - the message to set