Search in sources :

Example 1 with Plugin

use of org.eclipse.core.runtime.Plugin in project jbosstools-openshift by jbosstools.

the class CDKOpenshiftUtilityTest method getDotCDKFile.

private String getDotCDKFile() {
    IPath stateLoc = ((Plugin) CDKCoreActivator.getDefault()).getStateLocation();
    IPath folder = stateLoc.append("testFolder").append(".cdk");
    return folder.toOSString();
}
Also used : IPath(org.eclipse.core.runtime.IPath) Plugin(org.eclipse.core.runtime.Plugin)

Example 2 with Plugin

use of org.eclipse.core.runtime.Plugin in project jbosstools-openshift by jbosstools.

the class CDKOpenshiftUtilityTest method getDotCDKFolder.

private String getDotCDKFolder() {
    IPath stateLoc = ((Plugin) CDKCoreActivator.getDefault()).getStateLocation();
    IPath folder = stateLoc.append("testFolder");
    return folder.toOSString();
}
Also used : IPath(org.eclipse.core.runtime.IPath) Plugin(org.eclipse.core.runtime.Plugin)

Example 3 with Plugin

use of org.eclipse.core.runtime.Plugin in project jbosstools-openshift by jbosstools.

the class CDKRegistryTest method getDotCDKFolder.

private String getDotCDKFolder() {
    IPath stateLoc = ((Plugin) CDKCoreActivator.getDefault()).getStateLocation();
    IPath folder = stateLoc.append("testFolder");
    return folder.toOSString();
}
Also used : IPath(org.eclipse.core.runtime.IPath) Plugin(org.eclipse.core.runtime.Plugin)

Example 4 with Plugin

use of org.eclipse.core.runtime.Plugin in project ch.hsr.ifs.cdttesting by IFS-HSR.

the class CheckNoUnresolvedInclusionsTest method tearDown.

@Override
@After
public void tearDown() throws Exception {
    Plugin plugin = CCorePlugin.getDefault();
    if (plugin != null) {
        plugin.getLog().removeLogListener(this);
    }
    super.tearDown();
}
Also used : Plugin(org.eclipse.core.runtime.Plugin) CCorePlugin(org.eclipse.cdt.core.CCorePlugin) After(org.junit.After)

Example 5 with Plugin

use of org.eclipse.core.runtime.Plugin in project webtools.sourceediting by eclipse.

the class JsIndexManager method setIndexState.

synchronized void setIndexState(int state) {
    if (DEBUG) {
        // $NON-NLS-1$
        System.out.println("JSIndexManager setting index state to: " + state2String(state));
    }
    Plugin jspModelPlugin = JsCorePlugin.getDefault();
    jspModelPlugin.getPluginPreferences().setValue(PKEY_INDEX_STATE, state);
    jspModelPlugin.savePluginPreferences();
}
Also used : ResourcesPlugin(org.eclipse.core.resources.ResourcesPlugin) Plugin(org.eclipse.core.runtime.Plugin) JsCorePlugin(org.eclipse.wst.jsdt.web.core.internal.JsCorePlugin)

Aggregations

Plugin (org.eclipse.core.runtime.Plugin)14 IPath (org.eclipse.core.runtime.IPath)5 CCorePlugin (org.eclipse.cdt.core.CCorePlugin)2 ResourcesPlugin (org.eclipse.core.resources.ResourcesPlugin)2 Folder (org.talend.core.model.repository.Folder)2 File (java.io.File)1 IOException (java.io.IOException)1 InvocationTargetException (java.lang.reflect.InvocationTargetException)1 HashMap (java.util.HashMap)1 ExecutionException (org.eclipse.core.commands.ExecutionException)1 IFile (org.eclipse.core.resources.IFile)1 IFolder (org.eclipse.core.resources.IFolder)1 IProject (org.eclipse.core.resources.IProject)1 CoreException (org.eclipse.core.runtime.CoreException)1 CSSUIPlugin (org.eclipse.wst.css.ui.internal.CSSUIPlugin)1 DTDUIPlugin (org.eclipse.wst.dtd.ui.internal.DTDUIPlugin)1 HTMLUIPlugin (org.eclipse.wst.html.ui.internal.HTMLUIPlugin)1 JsCorePlugin (org.eclipse.wst.jsdt.web.core.internal.JsCorePlugin)1 SSEUIPlugin (org.eclipse.wst.sse.ui.internal.SSEUIPlugin)1 XMLUIPlugin (org.eclipse.wst.xml.ui.internal.XMLUIPlugin)1