private void setTable(Table table, IProject project, AppManager appManager, IFile file) {
List<IFile> pagesList = getPageList(project, appManager);
+ if (pagesList == null) {
+ return;
+ }
+
changOrderOfList(pagesList, file);
setTableItem(table, pagesList);
}
public void load() {
String theme = mNScreenPageModel.getAppManager().getFrameworkTheme();
String scale = mNScreenPageModel.getAppManager().getFrameworkScale();
+ if (mNScreenPageModel.makeHtml() == null) {
+ return;
+ }
String html = mNScreenPageModel.makeHtml();
String css = mNScreenPageModel.makeCSS(mModel);
update(html, css, theme, scale);
}
Framework framework =
mAppManager.getAppFileData().findFramework(library.getParam());
- framework_script =
- framework_script + "<script src=\"" + rootPathUri + "/"
- + framework.getPath() + "\"";
- if (framework.getParam2() != null && !framework.getParam2().isEmpty()) {
- String param = new String(framework.getParam2());
- param = makeParamString(param);
- framework_script = framework_script + param;
+ if (framework == null) {
+ framework_script = framework_script + "<script></script>";
+ } else {
+ framework_script =
+ framework_script + "<script src=\"" + rootPathUri + "/"
+ + framework.getPath() + "\"";
+ if (framework.getParam2() != null && !framework.getParam2().isEmpty()) {
+ String param = new String(framework.getParam2());
+ param = makeParamString(param);
+ framework_script = framework_script + param;
+ }
+ framework_script = framework_script + "></script>";
}
- framework_script = framework_script + "></script>";
}
}
private static IWorkbenchPage getActivePage() {
IWorkbenchWindow window = getActiveWorkbenchWindow();
- if (window!= null){
- return getActiveWorkbenchWindow().getActivePage();
+ if (window == null) {
+ return null;
}
- return null;
+ return getActiveWorkbenchWindow().getActivePage();
}
// public static void open(final IFile file) {