import org.argeo.api.NodeConstants;
import org.argeo.api.NodeUtils;
-import org.argeo.cms.CmsException;
import org.argeo.cms.ui.CmsConstants;
import org.argeo.cms.ui.CmsView;
import org.argeo.eclipse.ui.Selected;
buf.append(':').append(url.getPort());
return buf;
} catch (MalformedURLException e) {
- throw new CmsException("Cannot extract server base URL from " + request.getRequestURL(), e);
+ throw new IllegalArgumentException("Cannot extract server base URL from " + request.getRequestURL(), e);
}
}
buf.append(getDataPath(node));
return new URL(buf.toString()).toString();
} catch (MalformedURLException e) {
- throw new CmsException("Cannot build data URL for " + node, e);
+ throw new IllegalArgumentException("Cannot build data URL for " + node, e);
}
}
return layout;
}
- public static GridLayout standardSpaceGridLayout(GridLayout layout) {
- layout.horizontalSpacing = 16;
- layout.verticalSpacing = 16;
- layout.marginWidth = 16;
- layout.marginHeight = 16;
- return layout;
- }
-
-
public static GridData fillAll() {
return new GridData(SWT.FILL, SWT.FILL, true, true);
}