|
Drools :: Eclipse :: Guvnor tools 6.2.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.guvnor.tools.utils.PlatformUtils
public class PlatformUtils
A set of utilities for interacting with the Eclipse platform.
| Nested Class Summary | |
|---|---|
class |
PlatformUtils.AuthPromptResults
The results from a log in dialog prompt. |
| Constructor Summary | |
|---|---|
PlatformUtils()
|
|
| Method Summary | |
|---|---|
boolean |
authenticateForServer(String server,
IWebDavClient client)
|
static org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parent,
int numColumns)
|
static org.eclipse.swt.widgets.Table |
createResourceHistoryTable(org.eclipse.swt.widgets.Composite parent)
|
static PlatformUtils |
getInstance()
For convenience, we keep one instance of PlatformUtils around |
static org.eclipse.core.resources.IFile |
getResourceFromFSPath(String location)
Resolves a file system location to an Eclipse workspace resource. |
static ResourceHistoryView |
getResourceHistoryView()
Tries to find the Resource History view, attempting to open it if necessary. |
static void |
openEditor(String contents,
String name)
Opens a read-only, in-memory editor. |
PlatformUtils.AuthPromptResults |
promptForAuthentication(String server)
Prompts for user name and password for a given Guvnor repository. |
static void |
refreshRepositoryView()
Causes the Repository view to refresh, if it is open. |
static void |
reportAuthenticationFailure()
Convenience method for reporting log in failure |
void |
updateAuthentication(String server,
String username,
String password,
boolean saveInfo)
|
static void |
updateDecoration()
Causes the platform to update Guvnor decoration notions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformUtils()
| Method Detail |
|---|
public static PlatformUtils getInstance()
public static org.eclipse.core.resources.IFile getResourceFromFSPath(String location)
location - The file system location
IFile, null if not found
public static org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parent,
int numColumns)
public static void updateDecoration()
public static void refreshRepositoryView()
public static ResourceHistoryView getResourceHistoryView()
throws Exception
Exception
public static void openEditor(String contents,
String name)
contents - The contents for the editorname - The name of the file. Will be used to determine
eclipse editor association, defaulting to text editor
if no association is foundpublic static org.eclipse.swt.widgets.Table createResourceHistoryTable(org.eclipse.swt.widgets.Composite parent)
public boolean authenticateForServer(String server,
IWebDavClient client)
throws Exception
Exception
public void updateAuthentication(String server,
String username,
String password,
boolean saveInfo)
throws Exception
Exceptionpublic static void reportAuthenticationFailure()
public PlatformUtils.AuthPromptResults promptForAuthentication(String server)
server - The repository for log in
|
Drools :: Eclipse :: Guvnor tools 6.2.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||