Tabnine Logo
IconType.getSmallIcon
Code IndexAdd Tabnine to your IDE (free)

How to use
getSmallIcon
method
in
org.eclipse.jst.j2ee.common.IconType

Best Java code snippets using org.eclipse.jst.j2ee.common.IconType.getSmallIcon (Showing top 8 results out of 315)

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

/**
 * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc
 * -->
 * 
 * @generated
 */
public String getText(Object object) {
  String label = ((IconType) object).getSmallIcon();
  return label == null || label.length() == 0 ? getString("_UI_IconType_type") : //$NON-NLS-1$
        getString("_UI_IconType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

public String getSmallIcon() {
  if(eResource() == null) 
    return getSmallIconGen();
  
  switch (getJ2EEVersionID()) {
  case J2EEVersionConstants.J2EE_1_2_ID :
  case J2EEVersionConstants.J2EE_1_3_ID :
    return getSmallIconGen(); 
  case J2EEVersionConstants.J2EE_1_4_ID :
  default :
    if (getIcons().size() > 0)
      return ((IconType)getIcons().get(0)).getSmallIcon();
  }
  return null;
}

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

private static String getSmallIcon(PortComponent portComponent, boolean isJ2EE14, boolean lang)
{
  String ret = null;
 if (isJ2EE14)
 {
  IconType iconType = portComponent.getIconType();
  if (iconType!=null)
  {
   if (lang)
   {
     ret = iconType.getLang();
   }
   else
   {
     ret = iconType.getSmallIcon();
   }
  }
 }
 else //must be J2EE 1.3 (JSR-109 1.0)
 {
  if( !lang )
  {
    ret = portComponent.getSmallIcon();
  }
 }
 return ret;
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

private static String getSmallIcon(WebServiceDescription webServicesDescription, boolean isJ2EE14, boolean lang)
{
  String ret = null;
 if (isJ2EE14)
 {
  IconType iconType = webServicesDescription.getIconType();
  if (iconType!=null)
  {
   if (lang)
   {
     ret =  iconType.getLang();
   }
   else
   {
     ret =  iconType.getSmallIcon();
   }
  }
 }
 else //must be J2EE 1.3 (JSR-109 1.0)
 {
  if( !lang)
  {
    ret =  webServicesDescription.getSmallIcon();
  }
 }
 return ret;
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

values[i] = ((IconType)icons[i]).getSmallIcon();
origin: org.eclipse/org.eclipse.jst.j2ee.core

/**
 * 
 */
private void synchIcons() {
  CompatibilityDescriptionGroup myTarget = (CompatibilityDescriptionGroup)getTarget();
  if (myTarget.getIcons().isEmpty()) {
    myTarget.setLargeIconGen(null);
    myTarget.setSmallIconGen(null);
  }
  else {
    IconType anIcon = (IconType)myTarget.getIcons().get(0);
    if (!anIcon.eAdapters().contains(this))
      anIcon.eAdapters().add(this);
    else {
      myTarget.setLargeIconGen(anIcon.getLargeIcon());
      myTarget.setSmallIconGen(anIcon.getSmallIcon());
    }
  }
}
origin: org.eclipse/org.eclipse.jst.j2ee.core

values[i] = ((IconType)icons[i]).getSmallIcon();
origin: org.eclipse/org.eclipse.jst.j2ee.core

public String getSmallIcon() {
  if(eResource() == null) 
    return getSmallIconGen();
  
  switch (getJ2EEVersionID()) {
  case J2EEVersionConstants.J2EE_1_2_ID :
  case J2EEVersionConstants.J2EE_1_3_ID :
    return getSmallIconGen(); 
  case J2EEVersionConstants.J2EE_1_4_ID :
  default :
    if (getIconType() != null)
      return getIconType().getSmallIcon();
  }
  return null;
}
org.eclipse.jst.j2ee.commonIconTypegetSmallIcon

Javadoc

Returns the value of the 'Small Icon' attribute.

If the meaning of the 'Small Icon' attribute isn't clear, there really should be more of a description here...

The small-icon element contains the name of a file containing a small (16 x 16) icon image. The file name is a relative path within the Deployment Component's Deployment File. The image may be either in the JPEG or GIF format. The icon can be used by tools. Example: employee-service-icon16x16.jpg

Popular methods of IconType

  • eAdapters
  • getLang
    Returns the value of the 'Lang' attribute. If the meaning of the 'Lang' attribute isn't clear, there
  • getLargeIcon
    Returns the value of the 'Large Icon' attribute. If the meaning of the 'Large Icon' attribute isn't
  • setLang
    Sets the value of the ' org.eclipse.jst.j2ee.common.IconType#getLang' attribute.
  • setLargeIcon
    Sets the value of the ' org.eclipse.jst.j2ee.common.IconType#getLargeIcon' attribute.
  • setSmallIcon
    Sets the value of the ' org.eclipse.jst.j2ee.common.IconType#getSmallIcon' attribute.

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • 21 Best IntelliJ Plugins
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