|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
com.aptana.ide.editors.views.profiles.ProfilesView
public class ProfilesView
ProfilesView is the view in charge of Code Assist Profiles. It contains a collection of JavaScript files, and allows the user to add and remove files from the list. It will also automatically create a list of files based on the files in the current HTML document by reading the <script> tags at the top.
| Nested Class Summary | |
|---|---|
protected class |
ProfilesView.CheckboxAction
CheckboxAction |
| Field Summary | |
|---|---|
protected static java.lang.String |
GENERIC_EDITOR_CLASS
Generic editor class |
protected static java.lang.String |
HTML_EDITOR_CLASS
HTML editor class |
protected static java.lang.String |
HTML_EDITOR_ID
HTML editor id |
protected static java.lang.String |
JS_EDITOR_CLASS
JS editor class |
protected static java.lang.String |
JS_EDITOR_ID
JS editor id |
ProfileManager |
profileManager
profileManager |
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
PROP_TITLE |
| Constructor Summary | |
|---|---|
ProfilesView()
The constructor. |
|
| Method Summary | |
|---|---|
void |
addProfile(java.lang.Object profile)
addProfile |
void |
addProfilesViewEventListener(IProfilesViewEventListener l)
addProfilesViewEventListener |
ProfileURI[] |
convertSelectionToProfileURIs(org.eclipse.jface.viewers.StructuredSelection selection)
Converts a selection into a lists of paths |
Profile |
createDynamicProfile(java.lang.String name,
java.lang.String path)
createDynamicProfile |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize it. |
Profile |
createProfile(java.lang.String name,
java.lang.String path)
createProfile |
protected org.eclipse.jface.viewers.TreeViewer |
createTreeViewer(org.eclipse.swt.widgets.Composite parent)
createTreeViewer |
void |
dispose()
|
void |
expandAll()
|
void |
expandProfile(java.lang.String profilePath)
|
void |
fireProfilesViewEvent(ProfilesViewEvent e)
fireProfilesViewEvent |
Profile |
getCurrentProfile()
getCurrentProfile |
boolean |
getIsLinked()
getIsLinked |
boolean |
getLinkWithEditorState()
getLinkWithEditorState |
java.lang.String[] |
getProfilePaths()
getProfiles |
Profile[] |
getProfiles()
getProfiles Returns all profiles |
protected void |
handleDrop(org.eclipse.swt.dnd.DropTargetEvent event)
handleDrop |
void |
onContentChanged(FileContextContentEvent evt)
onContentChanged |
void |
removeProfile(java.lang.String name)
removeProfile |
void |
removeProfilesViewEventListener(IProfilesViewEventListener l)
removeProfilesViewEventListener |
void |
setCurrentProfile(java.lang.String name)
setCurrentProfile |
void |
setFocus()
Passing the focus request to the viewer's control. |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
|---|
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
|---|
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
|---|
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
protected static final java.lang.String JS_EDITOR_CLASS
protected static final java.lang.String HTML_EDITOR_CLASS
protected static final java.lang.String GENERIC_EDITOR_CLASS
protected static final java.lang.String JS_EDITOR_ID
protected static final java.lang.String HTML_EDITOR_ID
public ProfileManager profileManager
| Constructor Detail |
|---|
public ProfilesView()
| Method Detail |
|---|
public void fireProfilesViewEvent(ProfilesViewEvent e)
e - public void addProfilesViewEventListener(IProfilesViewEventListener l)
l - public void removeProfilesViewEventListener(IProfilesViewEventListener l)
l - public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.dispose()public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartparent - public void onContentChanged(FileContextContentEvent evt)
IFileContextListener
onContentChanged in interface IFileContextListenerIFileContextListener.onContentChanged(com.aptana.ide.editors.unified.FileContextContentEvent)protected void handleDrop(org.eclipse.swt.dnd.DropTargetEvent event)
event - protected org.eclipse.jface.viewers.TreeViewer createTreeViewer(org.eclipse.swt.widgets.Composite parent)
parent -
public ProfileURI[] convertSelectionToProfileURIs(org.eclipse.jface.viewers.StructuredSelection selection)
selection - The paths of the selection
public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartpublic void expandAll()
public void expandProfile(java.lang.String profilePath)
profilePath - public boolean getLinkWithEditorState()
public boolean getIsLinked()
public void addProfile(java.lang.Object profile)
profile -
public Profile createProfile(java.lang.String name,
java.lang.String path)
name - path -
public Profile createDynamicProfile(java.lang.String name,
java.lang.String path)
name - path -
public void removeProfile(java.lang.String name)
name - public void setCurrentProfile(java.lang.String name)
name - public Profile getCurrentProfile()
public java.lang.String[] getProfilePaths()
public Profile[] getProfiles()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||