Class Utils
- java.lang.Object
-
- org.palladiosimulator.pcmtx.pcmtxviews.util.Utils
-
public class Utils extends Object
Utility class.
-
-
Constructor Summary
Constructors Constructor Description Utils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
colorCompositeBackground(Composite c, int id)
static boolean
openReloadDialog(Shell shell, String views, URI resourceURI)
Shows a reload dialog asking the user whether a modied resource that is also modified by another party should be reloaded or not.static int
openSaveChangesDialog(Shell shell, String views, URI resourceURI)
Shows a save dialog asking the user whether the changes made by the views represented by the given representation should be saved or not.static boolean
openSaveDialog(Shell shell, String views, URI resourceURI)
Shows a save dialog asking the user whether a modified resource that is also modified by another party should be replaced or not.static void
setFont(Composite composite, int height, int style)
-
-
-
Method Detail
-
setFont
public static void setFont(Composite composite, int height, int style)
-
colorCompositeBackground
public static void colorCompositeBackground(Composite c, int id)
- Parameters:
c
- theComposite
to colorid
- the color constant
-
openReloadDialog
public static boolean openReloadDialog(Shell shell, String views, URI resourceURI)
Shows a reload dialog asking the user whether a modied resource that is also modified by another party should be reloaded or not.
-
openSaveDialog
public static boolean openSaveDialog(Shell shell, String views, URI resourceURI)
Shows a save dialog asking the user whether a modified resource that is also modified by another party should be replaced or not.
-
-