projects
/
lgpl
/
argeo-commons.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix erroneous commit.
[lgpl/argeo-commons.git]
/
org.argeo.cms.ui
/
src
/
org
/
argeo
/
cms
/
ui
/
util
/
CmsUiUtils.java
diff --git
a/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java
b/org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java
index 33377b6ca365f1db0c3e57c258d733071d7fec67..65228aa5d559f7cb54a1e01418b8a94bd4d6d9ad 100644
(file)
--- a/
org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java
+++ b/
org.argeo.cms.ui/src/org/argeo/cms/ui/util/CmsUiUtils.java
@@
-13,7
+13,6
@@
import javax.servlet.http.HttpServletRequest;
import org.argeo.api.NodeConstants;
import org.argeo.api.NodeUtils;
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;
import org.argeo.cms.ui.CmsConstants;
import org.argeo.cms.ui.CmsView;
import org.argeo.eclipse.ui.Selected;
@@
-89,7
+88,7
@@
public class CmsUiUtils implements CmsConstants {
buf.append(':').append(url.getPort());
return buf;
} catch (MalformedURLException e) {
buf.append(':').append(url.getPort());
return buf;
} catch (MalformedURLException e) {
- throw new
Cms
Exception("Cannot extract server base URL from " + request.getRequestURL(), e);
+ throw new
IllegalArgument
Exception("Cannot extract server base URL from " + request.getRequestURL(), e);
}
}
}
}
@@
-100,7
+99,7
@@
public class CmsUiUtils implements CmsConstants {
buf.append(getDataPath(node));
return new URL(buf.toString()).toString();
} catch (MalformedURLException e) {
buf.append(getDataPath(node));
return new URL(buf.toString()).toString();
} catch (MalformedURLException e) {
- throw new
Cms
Exception("Cannot build data URL for " + node, e);
+ throw new
IllegalArgument
Exception("Cannot build data URL for " + node, e);
}
}
}
}
@@
-136,15
+135,6
@@
public class CmsUiUtils implements CmsConstants {
return layout;
}
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);
}
public static GridData fillAll() {
return new GridData(SWT.FILL, SWT.FILL, true, true);
}