/** * Initializes itself from the dialog settings with the same state * as at the previous invocation. */ private void readSettings() { IDialogSettings s= getDialogSettings(); try { int x= s.getInt("x"); //$NON-NLS-1$ int y= s.getInt("y"); //$NON-NLS-1$ fLocation= new Point(x, y); int width= s.getInt("width"); //$NON-NLS-1$ int height= s.getInt("height"); //$NON-NLS-1$ fSize= new Point(width, height); } catch (NumberFormatException e) { fLocation= null; fSize= null; } }
/** * Initializes itself from the dialog settings with the same state * as at the previous invocation. */ private void readSettings() { IDialogSettings s= getDialogSettings(); try { int x= s.getInt("x"); //$NON-NLS-1$ int y= s.getInt("y"); //$NON-NLS-1$ fLocation= new Point(x, y); int width= s.getInt("width"); //$NON-NLS-1$ int height= s.getInt("height"); //$NON-NLS-1$ fSize= new Point(width, height); } catch (NumberFormatException e) { fLocation= null; fSize= null; } }
/** * Initializes itself from the dialog settings with the same state * as at the previous invocation. */ private void readSettings() { IDialogSettings s= getDialogSettings(); try { int x= s.getInt("x"); //$NON-NLS-1$ int y= s.getInt("y"); //$NON-NLS-1$ fLocation= new Point(x, y); int width= s.getInt("width"); //$NON-NLS-1$ int height= s.getInt("height"); //$NON-NLS-1$ fSize= new Point(width, height); } catch (NumberFormatException e) { fLocation= null; fSize= null; } }
/** * Stores it current configuration in the dialog store. */ private void writeSettings() { IDialogSettings s= getDialogSettings(); Point location= getShell().getLocation(); s.put("x", location.x); //$NON-NLS-1$ s.put("y", location.y); //$NON-NLS-1$ Point size= getShell().getSize(); s.put("width", size.x); //$NON-NLS-1$ s.put("height", size.y); //$NON-NLS-1$ }
/** * Stores it current configuration in the dialog store. */ private void writeSettings() { IDialogSettings s= getDialogSettings(); Point location= getShell().getLocation(); s.put("x", location.x); //$NON-NLS-1$ s.put("y", location.y); //$NON-NLS-1$ Point size= getShell().getSize(); s.put("width", size.x); //$NON-NLS-1$ s.put("height", size.y); //$NON-NLS-1$ }
/** * Stores it current configuration in the dialog store. */ private void writeSettings() { IDialogSettings s= getDialogSettings(); Point location= getShell().getLocation(); s.put("x", location.x); //$NON-NLS-1$ s.put("y", location.y); //$NON-NLS-1$ Point size= getShell().getSize(); s.put("width", size.x); //$NON-NLS-1$ s.put("height", size.y); //$NON-NLS-1$ }