|
|
|
@ -4,6 +4,7 @@ import com.fr.design.mainframe.DesignerContext;
|
|
|
|
|
import com.fr.file.FileFILE; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.stable.os.OperatingSystem; |
|
|
|
|
import com.fr.start.common.DesignerStartupUtil; |
|
|
|
|
|
|
|
|
|
import java.io.File; |
|
|
|
|
import java.util.Map; |
|
|
|
@ -23,6 +24,9 @@ public class FileOpen4MacDeepLink extends DeepLink {
|
|
|
|
|
public void run(String url, String host, String path, Map<String, Object> params) { |
|
|
|
|
File file = new File(url); |
|
|
|
|
if (file.exists()) { |
|
|
|
|
if (DesignerStartupUtil.openTemplateIfOnWaiting(file)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
DesignerContext.getDesignerFrame().openTemplate(new FileFILE(file)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|