sk.uniba.euromath.editor.widgets
Class Tools

java.lang.Object
  extended by 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()
           
 
Method Summary
static boolean loadSchema(Shell shell, SchemaReferences refs, String namespaceURI)
          Tries to load the schema.
static void setButtonGridLayout(Button button)
          Set the layout data of the button to a GridData with appropriate heights and widths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tools

public Tools()
Method Detail

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 holder
namespaceURI - the namespace for which to load the schema
Returns:
true if the schema is loaded, false otherwise.


Copyright © 2003-2006 null. All Rights Reserved.