COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.smlif.internal.dialogs
Class ResourceSelectionDialog

java.lang.Object
  extended by org.eclipse.swt.widgets.Dialog
      extended by 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.


Constructor Summary
ResourceSelectionDialog(org.eclipse.swt.widgets.Shell parent, int contentType)
          The constructor
 
Method Summary
 void dispose()
           
 java.lang.String getMessage()
           
 java.lang.String getTitle()
           
 boolean isMultiSelection()
           
 org.eclipse.core.resources.IFile[] open()
           
 void setMessage(java.lang.String message)
           
 void setMultiSelection(boolean multiSelection)
           
 void setTitle(java.lang.String title)
           
 
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
 

Constructor Detail

ResourceSelectionDialog

public ResourceSelectionDialog(org.eclipse.swt.widgets.Shell parent,
                               int contentType)
The constructor

Parameters:
parent - The parent shell
contentType - 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
Method Detail

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

COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification