~ubuntu-branches/ubuntu/vivid/eclipse-wtp/vivid

« back to all changes in this revision

Viewing changes to org.eclipse.wst.server.core/servercore/org/eclipse/wst/server/core/ServerUtil.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2013-06-28 08:42:01 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130628084201-houvqyt5uc6a3p27
Tags: 3.5.0-1
* New upstream release.
* Refreshed d/patches:
  - debian-custom-build.patch
  - regenerate-xpath2-parser.patch.
* Add patch for compatibility with rhino 1.7R4.
* Regenerate code from EMF models.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**********************************************************************
2
 
 * Copyright (c) 2003, 2012 IBM Corporation and others.
 
2
 * Copyright (c) 2003, 2013 IBM Corporation and others.
3
3
 * All rights reserved. This program and the accompanying materials
4
4
 * are made available under the terms of the Eclipse Public License v1.0
5
5
 * which accompanies this distribution, and is available at
137
137
        }
138
138
 
139
139
        /**
 
140
         * Get the display name of a given module
 
141
         * @return the display name
 
142
         * @since 1.5
 
143
         */
 
144
        public static String getModuleDisplayName(IModule curModule) {
 
145
                if (curModule instanceof IModule2) {
 
146
                        String displayProp = ((IModule2)curModule).getProperty(IModule2.PROP_DISPLAY_NAME);
 
147
                        if (displayProp != null) {
 
148
                                return displayProp;
 
149
                        }
 
150
                }
 
151
                return curModule.getName();
 
152
        }
 
153
 
 
154
        /**
140
155
         * Return all the available modules from all factories whose
141
156
         * type matches the given module types.
142
157
         * <p>
796
811
        public static ISchedulingRule getServerSchedulingRule(IServer server) {
797
812
                return server;
798
813
        }
 
814
 
799
815
}
 
 
b'\\ No newline at end of file'