|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.util.CoreUtility
public class CoreUtility
Constructor Summary | |
---|---|
CoreUtility()
|
Method Summary | |
---|---|
static int |
compare(int lhs,
int rhs)
Comparse two integers. |
static java.lang.Object |
createExtension(org.eclipse.core.runtime.IConfigurationElement element,
java.lang.String classAttribute)
Creates an extension. |
static void |
createFolder(org.eclipse.core.resources.IFolder folder,
boolean force,
boolean local,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates a folder and all parent folders if not existing. |
static boolean |
safeEquals(java.lang.Object lhs,
java.lang.Object rhs)
Calls equals after checking for nulls |
static int |
safeHashcode(java.lang.Object o)
Calls hashCode after checking for null |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CoreUtility()
Method Detail |
---|
public static void createFolder(org.eclipse.core.resources.IFolder folder, boolean force, boolean local, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.ui.dialogs.ContainerGenerator
is too heavy
(creates a runnable)
org.eclipse.core.runtime.CoreException
public static java.lang.Object createExtension(org.eclipse.core.runtime.IConfigurationElement element, java.lang.String classAttribute) throws org.eclipse.core.runtime.CoreException
element
- the config element defining the extensionclassAttribute
- the name of the attribute carrying the class
org.eclipse.core.runtime.CoreException
public static boolean safeEquals(java.lang.Object lhs, java.lang.Object rhs)
public static int safeHashcode(java.lang.Object o)
public static int compare(int lhs, int rhs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |