sk.uniba.euromath.editor.widgets
Class Tools
java.lang.Object
sk.uniba.euromath.editor.widgets.Tools
public final class Tools
- extends Object
Utilities for creating and layout of controls.
- Author:
- Martin Vysny
Constructor Summary |
Tools()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tools
public Tools()
setButtonGridLayout
public static void setButtonGridLayout(Button button)
- Set the layout data of the button to a GridData with appropriate heights
and widths.
- Parameters:
button
-
loadSchema
public static boolean loadSchema(Shell shell,
SchemaReferences refs,
String namespaceURI)
- Tries to load the schema. If it succeeded then returns
true
.
On error prints a dialog and exits with false
.
- Parameters:
shell
- modal parent of the message dialog.refs
- the schema instance holdernamespaceURI
- the namespace for which to load the schema
- Returns:
true
if the schema is loaded, false
otherwise.
Copyright © 2003-2006 null. All Rights Reserved.