Browse Source

REPORT-10171

final/10.0
Mata.Li 6 years ago
parent
commit
cda92e4891
  1. 8
      designer-base/src/main/java/com/fr/design/actions/community/BBSAction.java
  2. 9
      designer-base/src/main/java/com/fr/design/actions/community/BugAction.java
  3. 8
      designer-base/src/main/java/com/fr/design/actions/community/CenterAction.java
  4. 11
      designer-base/src/main/java/com/fr/design/actions/community/CusDemandAction.java
  5. 9
      designer-base/src/main/java/com/fr/design/actions/community/NeedAction.java
  6. 9
      designer-base/src/main/java/com/fr/design/actions/community/QuestionAction.java
  7. 8
      designer-base/src/main/java/com/fr/design/actions/community/SignAction.java
  8. 11
      designer-base/src/main/java/com/fr/design/actions/community/TechSolutionAction.java
  9. 7
      designer-base/src/main/java/com/fr/design/actions/community/VideoAction.java
  10. 10
      designer-base/src/main/java/com/fr/design/utils/BrowseUtils.java

8
designer-base/src/main/java/com/fr/design/actions/community/BBSAction.java

@ -1,21 +1,15 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class BBSAction extends UpdateAction
{

9
designer-base/src/main/java/com/fr/design/actions/community/BugAction.java

@ -1,21 +1,14 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class BugAction extends UpdateAction
{

8
designer-base/src/main/java/com/fr/design/actions/community/CenterAction.java

@ -1,20 +1,12 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by XINZAI on 2018/8/23.

11
designer-base/src/main/java/com/fr/design/actions/community/CusDemandAction.java

@ -1,20 +1,13 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by XINZAI on 2018/8/23.

9
designer-base/src/main/java/com/fr/design/actions/community/NeedAction.java

@ -1,21 +1,14 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class NeedAction extends UpdateAction
{

9
designer-base/src/main/java/com/fr/design/actions/community/QuestionAction.java

@ -1,21 +1,14 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class QuestionAction extends UpdateAction
{

8
designer-base/src/main/java/com/fr/design/actions/community/SignAction.java

@ -1,21 +1,15 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
public class SignAction extends UpdateAction
{

11
designer-base/src/main/java/com/fr/design/actions/community/TechSolutionAction.java

@ -1,21 +1,16 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
/**
* Created by XINZAI on 2018/8/23.

7
designer-base/src/main/java/com/fr/design/actions/community/VideoAction.java

@ -1,21 +1,14 @@
package com.fr.design.actions.community;
import com.fr.base.BaseUtils;
import com.fr.base.FRContext;
import com.fr.design.actions.UpdateAction;
import com.fr.design.menu.MenuKeySet;
import com.fr.design.utils.BrowseUtils;
import com.fr.general.CloudCenter;
import com.fr.general.GeneralContext;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.StringUtils;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Locale;
public class VideoAction extends UpdateAction

10
designer-base/src/main/java/com/fr/design/utils/BrowseUtils.java

@ -15,6 +15,12 @@ import java.net.URISyntaxException;
* Created by XINZAI on 2018/8/23.
*/
public class BrowseUtils {
/**
* 处理内存异常win10下用rundll32打开
* @param uri 网址
* @param e
*/
public static void startBrowserFromCommand(String uri, IOException e) {
if (OperatingSystem.isWindows()) {
@ -30,6 +36,10 @@ public class BrowseUtils {
}
}
/**
* 打开网页,用默认浏览器
* @param url 网址
*/
public static void browser(String url) {
if (StringUtils.isEmpty(url)) {

Loading…
Cancel
Save