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 voidcolorCompositeBackground(Composite c, int id)static booleanopenReloadDialog(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 intopenSaveChangesDialog(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 booleanopenSaveDialog(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 voidsetFont(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- theCompositeto 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.
-
-