Tabnine Logo
Application.getVersionID
Code IndexAdd Tabnine to your IDE (free)

How to use
getVersionID
method
in
org.eclipse.jst.j2ee.application.Application

Best Java code snippets using org.eclipse.jst.j2ee.application.Application.getVersionID (Showing top 3 results out of 315)

origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * Checks if the nature is consistent with doc type.
 */
protected void validateDocType(EnterpriseArtifactEdit edit,IVirtualComponent module) {
  if (edit == null)
    return;
  if (edit.getJ2EEVersion() >= J2EEVersionConstants.J2EE_1_3_ID && appDD.getVersionID() < J2EEVersionConstants.J2EE_1_3_ID) {
    String[] params = new String[3];
    params[0] = DOCTYPE_1_2;
    params[1] = getResourceName();
    params[2] = DOCTYPE_1_3;
    String tmp = NLS.bind(EARValidationMessageResourceHandler.EAR_INVALID_DOC_TYPE_ERROR_, params);            
    addLocalizedError(tmp, appDD);
  } else if (edit.getJ2EEVersion() < J2EEVersionConstants.J2EE_1_3_ID && appDD.getVersionID() >= J2EEVersionConstants.J2EE_1_3_ID) {
    String[] params = new String[3];
    params[0] = DOCTYPE_1_3;
    params[1] = getResourceName();
    params[2] = DOCTYPE_1_2;
    String tmp = NLS.bind(EARValidationMessageResourceHandler.EAR_INVALID_DOC_TYPE_ERROR_, params);            
    addLocalizedError(tmp, appDD);
  }
}
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * This returns Application.gif.
 */
public Object getImage(Object object) {
  String key = null;
  if (((Application) object).eResource() == null)
    return J2EEPlugin.getPlugin().getImage("earFile_obj"); //$NON-NLS-1$
  switch (((Application) object).getVersionID()) {
    case J2EEVersionConstants.J2EE_1_2_ID :
      key = "12_ear_obj"; //$NON-NLS-1$
      break;
    case J2EEVersionConstants.J2EE_1_3_ID :
      key = "13_ear_obj"; //$NON-NLS-1$
      break;
    case J2EEVersionConstants.J2EE_1_4_ID :
    default :
      key = "14_ear_obj"; //$NON-NLS-1$
      break;
  }
  return J2EEPlugin.getPlugin().getImage(key);
}
origin: org.eclipse/org.eclipse.jst.j2ee.ui

archiveType = EARFILE;
Application app = ((EARFile) anArchive).getDeploymentDescriptor();
if (app.getVersionID() == J2EEVersionConstants.J2EE_1_2_ID)
  archiveType |= J2EE12;
else if (app.getVersionID() == J2EEVersionConstants.J2EE_1_3_ID)
  archiveType |= J2EE13;
else if (app.getVersionID() == J2EEVersionConstants.J2EE_1_4_ID)
  archiveType |= J2EE14;
org.eclipse.jst.j2ee.applicationApplicationgetVersionID

Javadoc

This returns the module version id. Compare with J2EEVersionConstants to determine module level

Popular methods of Application

  • eResource
  • getFirstModule
    Returns the first module matching the specified uri
  • getModules
  • getModule
    Returns the first module matching the specified uri and altDD
  • containsSecurityRole
  • eIsProxy
  • getDisplayName
  • getModuleHavingAltDD
    Returns the first module where the alt dd matches the specified uri
  • getSecurityRoleNamed
  • getSecurityRoles
  • getVersion
    Returns the value of the 'Version' attribute. If the meaning of the 'Version' attribute isn't clear,
  • setDisplayName
  • getVersion,
  • setDisplayName,
  • setVersion

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Collectors (java.util.stream)
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now