congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Application.getModule
Code IndexAdd Tabnine to your IDE (free)

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

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

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

/**
 * @see com.ibm.etools.commonarchive.EARFile
 */
public Module getModule(String aUri, String altDD) {
  return getDeploymentDescriptor().getModule(aUri, altDD);
}
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * This method will set the context root on the application for the passed in contextRoot. This
 * must be called in a write artifact edit and be saved for changes to be saved.
 * 
 * @param webProject
 * @param aContextRoot
 */
public void setWebContextRoot(IProject webProject, String aContextRoot) {
  verifyOperationSupported();
  if (webProject == null || !J2EEProjectUtilities.isDynamicWebProject(webProject))
    return;
  IVirtualComponent webComp = ComponentCore.createComponent(webProject);
  String webModuleURI = getModuleURI(webComp);
  if (webModuleURI != null) {
    WebModule webModule = (WebModule) getApplication().getModule(webModuleURI, null);
    if (webModule != null)
      webModule.setContextRoot(aContextRoot);
  }
}
public IModelProvider create(IProject project) {
origin: org.eclipse/org.eclipse.jst.j2ee

/**
 * This method will return the context root in this application for the passed in web project.
 * 
 * @param webProject
 * @return contextRoot String
 */
public String getWebContextRoot(IProject webProject) {
  verifyOperationSupported();
  if (webProject == null || !J2EEProjectUtilities.isDynamicWebProject(webProject))
    return null;
  IVirtualComponent webComp = ComponentCore.createComponent(webProject);
  String webModuleURI = getModuleURI(webComp);
  if (webModuleURI != null) {
    WebModule webModule = (WebModule) getApplication().getModule(webModuleURI, null);
    if (webModule != null)
      return webModule.getContextRoot();
  }
  return null;
}
org.eclipse.jst.j2ee.applicationApplicationgetModule

Javadoc

Returns the first module matching the specified uri

Popular methods of Application

  • eResource
  • getFirstModule
    Returns the first module matching the specified uri
  • getModules
  • 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

  • Making http requests using okhttp
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JTable (javax.swing)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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