congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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 post requests using okhttp
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • BoxLayout (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
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