flex builder method
找到安装目录,如D:\Program Files\Adobe\Flex Builder 3\plugins\com.adobe.flexbuilder.project_3.0.190133这个目录下的zornproject.jar文件,对于其中的com.adobe.flexbuilder.project.asn.flexbuilder3.FlexBuilder3License...
·
找到安装目录,如
D:\Program Files\Adobe\Flex Builder 3\plugins\com.adobe.flexbuilder.project_3.0.190133
这个目录下的zornproject.jar文件,
对于其中的com.adobe.flexbuilder.project.asn.flexbuilder3.FlexBuilder3License类,用以下代码编译后代替即可
D:\Program Files\Adobe\Flex Builder 3\plugins\com.adobe.flexbuilder.project_3.0.190133
这个目录下的zornproject.jar文件,
对于其中的com.adobe.flexbuilder.project.asn.flexbuilder3.FlexBuilder3License类,用以下代码编译后代替即可
package com.adobe.flexbuilder.project.asn.flexbuilder3;
import com.adobe.asneu.a;
import com.adobe.flexbuilder.project.asn.d;
import java.util.Date;
import com.adobe.flexbuilder.project.asn.d;
import java.util.Date;
// Referenced classes of package com.adobe.flexbuilder.project.asn.flexbuilder3:
// Messages3
// Messages3
public final class FlexBuilder3License implements d {
private int getfDays() {
return 999999;
}
public FlexBuilder3License() {
fValid = true;
fExpired = false;
fDays = getfDays();
fEvalDays = 0L;
fExpireDate = new Date();
fIsTrial = true;
fIsDateBased = false;
fIsEdu = false;
fIsPro = false;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsTrial = false;
}
fValid = true;
fExpired = false;
fDays = getfDays();
fEvalDays = 0L;
fExpireDate = new Date();
fIsTrial = true;
fIsDateBased = false;
fIsEdu = false;
fIsPro = false;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsTrial = false;
}
public FlexBuilder3License(boolean flag) {
fExpired = false;
fDays = 0;
fEvalDays = 0L;
fExpireDate = new Date();
fIsDateBased = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsEdu = false;
fIsPro = true;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
fDays = getfDays();
fValid = true;
fExpired = false;
fIsTrial = false;
return;
}
fExpired = false;
fDays = 0;
fEvalDays = 0L;
fExpireDate = new Date();
fIsDateBased = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsEdu = false;
fIsPro = true;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
fDays = getfDays();
fValid = true;
fExpired = false;
fIsTrial = false;
return;
}
public FlexBuilder3License(a _a) {
fValid = true;
fExpired = false;
fDays = getfDays();
fEvalDays = 0L;
fExpireDate = new Date();
fIsTrial = false;
fIsDateBased = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsEdu = false;
fIsPro = false;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
return;
}
fValid = true;
fExpired = false;
fDays = getfDays();
fEvalDays = 0L;
fExpireDate = new Date();
fIsTrial = false;
fIsDateBased = false;
fEdition = Messages3.getString("FlexBuilderLicense.Pro");
fIsEdu = false;
fIsPro = false;
fIsUpgrade = false;
fIsUpsell = false;
fIsNFR = false;
fIsTryout = 0;
fIsSixtyDayTrialExtension = false;
fIsNinetyDayTrialExtension = false;
return;
}
public boolean isValid() {
return fValid;
}
return fValid;
}
public int getMajorVersion() {
return 2;
}
return 2;
}
public Date getExpirationDate() {
return fExpireDate;
}
return fExpireDate;
}
public int getEvalDays() {
return fDays;
}
return fDays;
}
public long getEvalDaysLeft() {
return fEvalDays;
}
return fEvalDays;
}
public boolean isExpired() {
return false;
}
return false;
}
public String getEdition() {
return Messages3.getString("FlexBuilderLicense.Pro");
}
return Messages3.getString("FlexBuilderLicense.Pro");
}
public boolean isTrial() {
return false;
}
return false;
}
public String getLastWarningMessage() {
return null;
}
return null;
}
public boolean isDateBased() {
return fIsDateBased;
}
return fIsDateBased;
}
public String toString() {
return Messages3.getString("FlexBuilderLicense.ProductName");
}
return Messages3.getString("FlexBuilderLicense.ProductName");
}
public boolean isMxmlCompileEnabled() {
return false;
}
return false;
}
public boolean isIPRestricted() {
return false;
}
return false;
}
public boolean isTimeoutRestricted() {
return false;
}
return false;
}
public boolean isEducationalVersion() {
return false;
}
return false;
}
public boolean isPro() {
return true;
}
return true;
}
public boolean isUpgrade() {
return false;
}
return false;
}
public boolean isUpsell() {
return false;
}
return false;
}
public boolean isNFR() {
return false;
}
return false;
}
public boolean isUpgradeable() {
return true;
}
return true;
}
public int isTryout() {
return 0;
}
return 0;
}
public int extendTrial() {
return 0;
}
return 0;
}
public static final boolean fIsBeta = true;
public static final int defaultTrialDays = 90;
public static final int sixtyDayTrialExtension = 61;
public static final int ninetyDayTrialExtension = 91;
public static final FlexBuilder3License BAD_LICENSE = new FlexBuilder3License();
public static final FlexBuilder3License TRIAL_LICENSE = new FlexBuilder3License(
true);
public static final FlexBuilder3License BETA_LICENSE = new FlexBuilder3License(
true);
private boolean fValid;
private boolean fExpired;
private int fDays;
private long fEvalDays;
private Date fExpireDate;
private boolean fIsTrial;
private boolean fIsDateBased;
private String fEdition;
private boolean fIsEdu;
private boolean fIsPro;
private boolean fIsUpgrade;
private boolean fIsUpsell;
private boolean fIsNFR;
private int fIsTryout;
private boolean fIsSixtyDayTrialExtension;
private boolean fIsNinetyDayTrialExtension;
public static final int defaultTrialDays = 90;
public static final int sixtyDayTrialExtension = 61;
public static final int ninetyDayTrialExtension = 91;
public static final FlexBuilder3License BAD_LICENSE = new FlexBuilder3License();
public static final FlexBuilder3License TRIAL_LICENSE = new FlexBuilder3License(
true);
public static final FlexBuilder3License BETA_LICENSE = new FlexBuilder3License(
true);
private boolean fValid;
private boolean fExpired;
private int fDays;
private long fEvalDays;
private Date fExpireDate;
private boolean fIsTrial;
private boolean fIsDateBased;
private String fEdition;
private boolean fIsEdu;
private boolean fIsPro;
private boolean fIsUpgrade;
private boolean fIsUpsell;
private boolean fIsNFR;
private int fIsTryout;
private boolean fIsSixtyDayTrialExtension;
private boolean fIsNinetyDayTrialExtension;
}
转载于:https://blog.51cto.com/199608/203577
开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!
更多推荐
已为社区贡献14条内容
所有评论(0)