congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Application.eResource
Code IndexAdd Tabnine to your IDE (free)

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

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

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

public IFile getAssociatedFile() {
  try {
    if (application != null && application.eResource() != null) {
      return WorkbenchResourceHelperBase.getIFile(application.eResource().getURI());
    }
  } catch (Throwable t) {
  }
  return null;
}
origin: org.eclipse/org.eclipse.jst.j2ee.ui

public IFile getAssociatedFile() {
  try {
    Application application = getParentApplication();
    if (application != null && application.eResource() != null) {
      return WorkbenchResourceHelperBase.getIFile(application.eResource().getURI());
    }
  } catch (Throwable t) {
  }
  return null;
}
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.core

if (earFile != null) {
  appDD = earFile.getDeploymentDescriptor();
  if (appDD != null && appDD.eResource() != null && appDD.eResource().isLoaded())
    validate();
  else {
org.eclipse.jst.j2ee.applicationApplicationeResource

Popular methods of Application

  • getFirstModule
    Returns the first module matching the specified uri
  • getModules
  • getModule
    Returns the first module matching the specified uri and altDD
  • getVersionID
    This returns the module version id. Compare with J2EEVersionConstants to determine module level
  • 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
  • runOnUiThread (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • startActivity (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • CodeWhisperer alternatives
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