use of com.intellij.openapi.actionSystem.Separator in project android by JetBrains.
the class AndroidToolWindowFactory method getToolbarActions.
@NotNull
public ActionGroup getToolbarActions(Project project, DeviceContext deviceContext) {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new ScreenshotAction(project, deviceContext));
group.add(new ScreenRecorderAction(project, deviceContext));
group.add(DumpSysActions.create(project, deviceContext));
group.add(new Separator());
group.add(new TerminateVMAction(deviceContext));
group.add(new HierarchyViewAction(project, deviceContext));
group.add(new Separator());
group.add(new BrowserHelpAction("Android Monitor", "http://developer.android.com/r/studio-ui/android-monitor.html"));
return group;
}
use of com.intellij.openapi.actionSystem.Separator in project android by JetBrains.
the class CpuMonitorView method getToolbarActions.
@Override
@NotNull
public ActionGroup getToolbarActions() {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new RecordingAction(this));
group.add(new Separator());
group.add(new ToggleMethodProfilingAction(myProject, myDeviceContext));
//group.add(new MyThreadDumpAction()); // thread dump -> systrace
group.add(new Separator());
group.add(new BrowserHelpAction("CPU monitor", "http://developer.android.com/r/studio-ui/am-cpu.html"));
return group;
}
use of com.intellij.openapi.actionSystem.Separator in project android by JetBrains.
the class MemoryMonitorView method getToolbarActions.
@Override
@NotNull
public ActionGroup getToolbarActions() {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new RecordingAction(this));
group.add(new Separator());
group.add(new GcAction(myDeviceContext));
group.add(new DumpHprofAction(myProject, myDeviceContext, myEvents));
group.add(new ToggleAllocationTrackingAction(myProject, myDeviceContext, myEvents));
group.add(new Separator());
group.add(new BrowserHelpAction("Memory monitor", "http://developer.android.com/r/studio-ui/am-memory.html"));
if (Boolean.getBoolean("studio.profiling.debug")) {
group.addSeparator();
group.add(new ToggleDebugRender(myTimelineComponent));
}
return group;
}
use of com.intellij.openapi.actionSystem.Separator in project android by JetBrains.
the class NetworkMonitorView method getToolbarActions.
@Override
@NotNull
public ActionGroup getToolbarActions() {
DefaultActionGroup group = new DefaultActionGroup();
group.add(new RecordingAction(this));
group.add(new Separator());
group.add(new BrowserHelpAction("Network monitor", "http://developer.android.com/r/studio-ui/am-network.html"));
return group;
}
use of com.intellij.openapi.actionSystem.Separator in project intellij-community by JetBrains.
the class ActionUrl method writeExternal.
@Override
public void writeExternal(Element element) throws WriteExternalException {
for (String s : myGroupPath) {
Element path = new Element(PATH);
path.setAttribute(VALUE, s);
element.addContent(path);
}
if (myComponent instanceof String) {
element.setAttribute(VALUE, (String) myComponent);
element.setAttribute(IS_ACTION, Boolean.TRUE.toString());
} else if (myComponent instanceof Separator) {
element.setAttribute(SEPARATOR, Boolean.TRUE.toString());
} else if (myComponent instanceof Group) {
final String groupId = ((Group) myComponent).getId() != null && ((Group) myComponent).getId().length() != 0 ? ((Group) myComponent).getId() : ((Group) myComponent).getName();
element.setAttribute(VALUE, groupId != null ? groupId : "");
element.setAttribute(IS_GROUP, Boolean.TRUE.toString());
}
element.setAttribute(ACTION_TYPE, Integer.toString(myActionType));
element.setAttribute(POSITION, Integer.toString(myAbsolutePosition));
DefaultJDOMExternalizer.writeExternal(this, element);
}
Aggregations