@Override protected Point getInitialSize() { Point result= super.getInitialSize(); if (fSize != null) { result.x= Math.max(result.x, fSize.x); result.y= Math.max(result.y, fSize.y); Rectangle display= getShell().getDisplay().getClientArea(); result.x= Math.min(result.x, display.width); result.y= Math.min(result.y, display.height); } return result; }
@Override protected Point getInitialSize() { Point result= super.getInitialSize(); if (fSize != null) { result.x= Math.max(result.x, fSize.x); result.y= Math.max(result.y, fSize.y); Rectangle display= getShell().getDisplay().getClientArea(); result.x= Math.min(result.x, display.width); result.y= Math.min(result.y, display.height); } return result; }
protected Point getInitialSize() { Point result= super.getInitialSize(); if (fSize != null) { result.x= Math.max(result.x, fSize.x); result.y= Math.max(result.y, fSize.y); Rectangle display= getShell().getDisplay().getClientArea(); result.x= Math.min(result.x, display.width); result.y= Math.min(result.y, display.height); } return result; }
@Override protected Point getInitialLocation(Point initialSize) { Point result= super.getInitialLocation(initialSize); if (fLocation != null) { result.x= fLocation.x; result.y= fLocation.y; Rectangle display= getShell().getDisplay().getClientArea(); int xe= result.x + initialSize.x; if (xe > display.width) { result.x-= xe - display.width; } int ye= result.y + initialSize.y; if (ye > display.height) { result.y-= ye - display.height; } } return result; }
protected Point getInitialLocation(Point initialSize) { Point result= super.getInitialLocation(initialSize); if (fLocation != null) { result.x= fLocation.x; result.y= fLocation.y; Rectangle display= getShell().getDisplay().getClientArea(); int xe= result.x + initialSize.x; if (xe > display.width) { result.x-= xe - display.width; } int ye= result.y + initialSize.y; if (ye > display.height) { result.y-= ye - display.height; } } return result; }
@Override protected Point getInitialLocation(Point initialSize) { Point result= super.getInitialLocation(initialSize); if (fLocation != null) { result.x= fLocation.x; result.y= fLocation.y; Rectangle display= getShell().getDisplay().getClientArea(); int xe= result.x + initialSize.x; if (xe > display.width) { result.x-= xe - display.width; } int ye= result.y + initialSize.y; if (ye > display.height) { result.y-= ye - display.height; } } return result; }
/** * 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$ }
String title= JavaUIMessages.PackageSelectionDialog_nopackages_title; String message= JavaUIMessages.PackageSelectionDialog_nopackages_message; MessageDialog.openInformation(getShell(), title, message); return CANCEL;
String title= JavaUIMessages.PackageSelectionDialog_nopackages_title; String message= JavaUIMessages.PackageSelectionDialog_nopackages_message; MessageDialog.openInformation(getShell(), title, message); return CANCEL;
String title= JavaUIMessages.PackageSelectionDialog_nopackages_title; String message= JavaUIMessages.PackageSelectionDialog_nopackages_message; MessageDialog.openInformation(getShell(), title, message); return CANCEL;