本文整理汇总了Java中com.intellij.xdebugger.impl.breakpoints.XBreakpointBase类的典型用法代码示例。如果您正苦于以下问题:Java XBreakpointBase类的具体用法?Java XBreakpointBase怎么用?Java XBreakpointBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XBreakpointBase类属于com.intellij.xdebugger.impl.breakpoints包,在下文中一共展示了XBreakpointBase类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: readTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
public void readTo(Element parentNode, Breakpoint breakpoint) throws InvalidDataException {
readExternal(parentNode);
if (SUSPEND) {
breakpoint.setSuspendPolicy(SUSPEND_POLICY);
}
else {
breakpoint.setSuspendPolicy(DebuggerSettings.SUSPEND_NONE);
}
breakpoint.setCountFilterEnabled(COUNT_FILTER_ENABLED);
breakpoint.setCountFilter(COUNT_FILTER);
breakpoint.setCondition(myCondition);
((XBreakpointBase)breakpoint.myXBreakpoint).setConditionEnabled(CONDITION_ENABLED);
if (myCondition != null && !myCondition.isEmpty()) {
XDebuggerHistoryManager.getInstance(myProject).addRecentExpression(XLightBreakpointPropertiesPanel.CONDITION_HISTORY_ID, TextWithImportsImpl.toXExpression(myCondition));
}
breakpoint.setClassFiltersEnabled(CLASS_FILTERS_ENABLED);
breakpoint.setClassFilters(getClassFilters());
breakpoint.setClassExclusionFilters(getClassExclusionFilters());
breakpoint.setInstanceFiltersEnabled(INSTANCE_FILTERS_ENABLED);
breakpoint.setInstanceFilters(getInstanceFilters());
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:26,代码来源:FilteredRequestorImpl.java
示例2: actionPerformed
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void actionPerformed(AnActionEvent e) {
String groupName = myGroup;
if (myNewGroup) {
groupName = Messages.showInputDialog("New group name", "New Group", AllIcons.Nodes.NewFolder);
if (groupName == null) {
return;
}
}
for (BreakpointItem item : myTreeController.getSelectedBreakpoints(true)) {
Object breakpoint = item.getBreakpoint();
if (breakpoint instanceof XBreakpointBase) {
((XBreakpointBase)breakpoint).setGroup(groupName);
}
}
myTreeController.rebuildTree(myBreakpointItems);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:BreakpointsDialog.java
示例3: getAllBreakpoints
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
protected List<XBreakpoint<?>> getAllBreakpoints() {
final XBreakpointBase<?,?,?>[] breakpoints = ApplicationManager.getApplication().runReadAction(new Computable<XBreakpointBase<?,?,?>[]>() {
public XBreakpointBase<?,?,?>[] compute() {
return myBreakpointManager.getAllBreakpoints();
}
});
final List<XBreakpoint<?>> result = new ArrayList<XBreakpoint<?>>();
for (XBreakpointBase<?, ?, ?> breakpoint : breakpoints) {
final XBreakpointType type = breakpoint.getType();
if (type instanceof MySimpleBreakpointType || type instanceof MyLineBreakpointType) {
result.add(breakpoint);
}
}
Collections.sort(result, new Comparator<XBreakpoint<?>>() {
@Override
public int compare(XBreakpoint<?> o1, XBreakpoint<?> o2) {
return StringUtil.compare(((MyBreakpointProperties)o1.getProperties()).myOption,
((MyBreakpointProperties)o2.getProperties()).myOption, true);
}
});
return result;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:23,代码来源:XBreakpointsTestCase.java
示例4: loadFrom
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void loadFrom(@NotNull XLineBreakpoint<CloudLineBreakpointProperties> breakpoint) {
XBreakpointBase lineBreakpointImpl =
breakpoint instanceof XBreakpointBase ? (XBreakpointBase) breakpoint : null;
Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint);
CloudLineBreakpoint cloudBreakpoint = null;
if (javaBreakpoint instanceof CloudLineBreakpoint) {
cloudBreakpoint = (CloudLineBreakpoint) javaBreakpoint;
}
if (cloudBreakpoint == null || lineBreakpointImpl == null) {
return;
}
errorPanel.setVisible(cloudBreakpoint.hasError());
if (cloudBreakpoint.hasError()) {
errorLabel.setForeground(JBColor.RED);
errorDescription.setText(cloudBreakpoint.getErrorMessage());
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:21,代码来源:BreakpointErrorStatusPanel.java
示例5: saveProperties
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
public void saveProperties() {
for (XBreakpointPropertiesSubPanel<B> panel : mySubPanels) {
panel.saveProperties();
}
if (myConditionComboBox != null) {
final String text = myConditionComboBox.getText();
final String condition = StringUtil.isEmptyOrSpaces(text) ? null : text;
myBreakpoint.setCondition(condition);
if (condition != null) {
myConditionComboBox.saveTextInHistory();
}
}
for (XBreakpointCustomPropertiesPanel<B> customPanel : myCustomPanels) {
customPanel.saveTo(myBreakpoint);
}
if (!myCustomPanels.isEmpty()) {
((XBreakpointBase)myBreakpoint).fireBreakpointChanged();
}
myBreakpoint.setEnabled(myEnabledCheckbox.isSelected());
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:23,代码来源:XLightBreakpointPropertiesPanel.java
示例6: getAllBreakpoints
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
protected List<XBreakpoint<?>> getAllBreakpoints() {
final XBreakpointBase<?,?,?>[] breakpoints = myBreakpointManager.getAllBreakpoints();
final List<XBreakpoint<?>> result = new ArrayList<XBreakpoint<?>>();
for (XBreakpointBase<?, ?, ?> breakpoint : breakpoints) {
final XBreakpointType type = breakpoint.getType();
if (type instanceof MySimpleBreakpointType || type instanceof MyLineBreakpointType) {
result.add(breakpoint);
}
}
Collections.sort(result, new Comparator<XBreakpoint<?>>() {
@Override
public int compare(XBreakpoint<?> o1, XBreakpoint<?> o2) {
return StringUtil.compare(((MyBreakpointProperties)o1.getProperties()).myOption,
((MyBreakpointProperties)o2.getProperties()).myOption, true);
}
});
return result;
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:19,代码来源:XBreakpointsTestCase.java
示例7: actionPerformed
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@RequiredDispatchThread
@Override
public void actionPerformed(@Nonnull AnActionEvent e) {
String groupName = myGroup;
if (myNewGroup) {
groupName = Messages.showInputDialog("New group name", "New Group", AllIcons.Nodes.NewFolder);
if (groupName == null) {
return;
}
}
for (BreakpointItem item : myTreeController.getSelectedBreakpoints(true)) {
Object breakpoint = item.getBreakpoint();
if (item.allowedToRemove() && breakpoint instanceof XBreakpointBase) {
((XBreakpointBase)breakpoint).setGroup(groupName);
}
}
myTreeController.rebuildTree(myBreakpointItems);
}
开发者ID:consulo,项目名称:consulo,代码行数:20,代码来源:BreakpointsDialog.java
示例8: init
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
public void init(Project project, XBreakpointManager breakpointManager, @Nonnull XBreakpointBase breakpoint, @Nullable XDebuggerEditorsProvider debuggerEditorsProvider) {
init(project, breakpointManager, breakpoint);
if (debuggerEditorsProvider != null) {
ActionListener listener = new ActionListener() {
public void actionPerformed(final ActionEvent e) {
onCheckboxChanged();
}
};
myLogExpressionComboBox = new XDebuggerExpressionComboBox(project, debuggerEditorsProvider, LOG_EXPRESSION_HISTORY_ID, myBreakpoint.getSourcePosition(), true);
JComponent logExpressionComponent = myLogExpressionComboBox.getComponent();
myLogExpressionPanel.add(logExpressionComponent, BorderLayout.CENTER);
myLogExpressionComboBox.setEnabled(false);
myTemporaryCheckBox.setVisible(breakpoint instanceof XLineBreakpoint);
myLogExpressionCheckBox.addActionListener(listener);
DebuggerUIUtil.focusEditorOnCheck(myLogExpressionCheckBox, myLogExpressionComboBox.getEditorComponent());
}
else {
myExpressionPanel.getParent().remove(myExpressionPanel);
}
}
开发者ID:consulo,项目名称:consulo,代码行数:21,代码来源:XBreakpointActionsPanel.java
示例9: getJavaBreakpoint
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Nullable
public static Breakpoint getJavaBreakpoint(@Nullable final XBreakpoint xBreakpoint)
{
if(xBreakpoint == null)
{
return null;
}
Breakpoint breakpoint = xBreakpoint.getUserData(Breakpoint.DATA_KEY);
if(breakpoint == null && xBreakpoint.getType() instanceof JavaBreakpointType)
{
Project project = ((XBreakpointBase) xBreakpoint).getProject();
breakpoint = ((JavaBreakpointType) xBreakpoint.getType()).createJavaBreakpoint(project, xBreakpoint);
xBreakpoint.putUserData(Breakpoint.DATA_KEY, breakpoint);
}
return breakpoint;
}
开发者ID:consulo,项目名称:consulo-java,代码行数:17,代码来源:BreakpointManager.java
示例10: saveTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void saveTo(@NotNull B breakpoint) {
JavaBreakpointProperties properties = breakpoint.getProperties();
if (properties == null) {
return;
}
boolean changed = false;
try {
String text = myPassCountField.getText().trim();
int filter = !text.isEmpty() ? Integer.parseInt(text) : 0;
if (filter < 0) filter = 0;
changed = properties.setCOUNT_FILTER(filter);
}
catch (Exception ignored) {
}
changed = properties.setCOUNT_FILTER_ENABLED(properties.getCOUNT_FILTER() > 0 && myPassCountCheckbox.isSelected()) || changed;
reloadInstanceFilters();
reloadClassFilters();
updateInstanceFilterEditor(true);
updateClassFilterEditor(true);
changed = properties.setINSTANCE_FILTERS_ENABLED(myInstanceFiltersField.getText().length() > 0 && myInstanceFiltersCheckBox.isSelected()) || changed;
changed = properties.setCLASS_FILTERS_ENABLED(myClassFiltersField.getText().length() > 0 && myClassFiltersCheckBox.isSelected()) || changed;
changed = properties.setClassFilters(myClassFilters) || changed;
changed = properties.setClassExclusionFilters(myClassExclusionFilters) || changed;
changed = properties.setInstanceFilters(myInstanceFilters) || changed;
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:JavaBreakpointFiltersPanel.java
示例11: saveTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void saveTo(@NotNull XLineBreakpoint<JavaFieldBreakpointProperties> breakpoint) {
boolean changed = breakpoint.getProperties().WATCH_ACCESS != myWatchAccessCheckBox.isSelected();
breakpoint.getProperties().WATCH_ACCESS = myWatchAccessCheckBox.isSelected();
changed = breakpoint.getProperties().WATCH_MODIFICATION != myWatchModificationCheckBox.isSelected() || changed;
breakpoint.getProperties().WATCH_MODIFICATION = myWatchModificationCheckBox.isSelected();
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:FieldBreakpointPropertiesPanel.java
示例12: checkAndNotifyPossiblySlowBreakpoint
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
private static boolean checkAndNotifyPossiblySlowBreakpoint(XBreakpoint breakpoint) {
if (breakpoint.isEnabled() &&
(breakpoint.getType() instanceof JavaMethodBreakpointType || breakpoint.getType() instanceof JavaWildcardMethodBreakpointType)) {
XDebugSessionImpl.NOTIFICATION_GROUP.createNotification("Method breakpoints may dramatically slow down debugging", MessageType.WARNING)
.notify(((XBreakpointBase)breakpoint).getProject());
return true;
}
return false;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:BreakpointManager.java
示例13: getJavaBreakpoint
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Nullable
public static Breakpoint getJavaBreakpoint(@Nullable final XBreakpoint xBreakpoint) {
if (xBreakpoint == null) {
return null;
}
Breakpoint breakpoint = xBreakpoint.getUserData(Breakpoint.DATA_KEY);
if (breakpoint == null && xBreakpoint.getType() instanceof JavaBreakpointType) {
Project project = ((XBreakpointBase)xBreakpoint).getProject();
breakpoint = ((JavaBreakpointType)xBreakpoint.getType()).createJavaBreakpoint(project, xBreakpoint);
xBreakpoint.putUserData(Breakpoint.DATA_KEY, breakpoint);
}
return breakpoint;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:BreakpointManager.java
示例14: saveTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaMethodBreakpointProperties> breakpoint) {
boolean changed = breakpoint.getProperties().WATCH_ENTRY != myWatchEntryCheckBox.isSelected();
breakpoint.getProperties().WATCH_ENTRY = myWatchEntryCheckBox.isSelected();
changed = breakpoint.getProperties().WATCH_EXIT != myWatchExitCheckBox.isSelected() || changed;
breakpoint.getProperties().WATCH_EXIT = myWatchExitCheckBox.isSelected();
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:MethodBreakpointPropertiesPanel.java
示例15: saveTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void saveTo(@NotNull XBreakpoint<JavaExceptionBreakpointProperties> breakpoint) {
boolean changed = breakpoint.getProperties().NOTIFY_CAUGHT != myNotifyCaughtCheckBox.isSelected();
breakpoint.getProperties().NOTIFY_CAUGHT = myNotifyCaughtCheckBox.isSelected();
changed = breakpoint.getProperties().NOTIFY_UNCAUGHT != myNotifyUncaughtCheckBox.isSelected() || changed;
breakpoint.getProperties().NOTIFY_UNCAUGHT = myNotifyUncaughtCheckBox.isSelected();
if (changed) {
((XBreakpointBase)breakpoint).fireBreakpointChanged();
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:ExceptionBreakpointPropertiesPanel.java
示例16: getGroup
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
public XBreakpointCustomGroup getGroup(@NotNull final B breakpoint, @NotNull final Collection<XBreakpointCustomGroup> groups) {
if (!(breakpoint instanceof XBreakpointBase)) {
return null;
}
String name = ((XBreakpointBase)breakpoint).getGroup();
if (StringUtil.isEmpty(name)) {
return null;
}
return new XBreakpointCustomGroup(name, ((XBreakpointBase)breakpoint).getProject());
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:XBreakpointCustomGroupingRule.java
示例17: clearContext
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void clearContext() {
XBreakpointBase<?,?,?>[] breakpoints = myBreakpointManager.getAllBreakpoints();
for (final XBreakpointBase<?, ?, ?> breakpoint : breakpoints) {
ApplicationManager.getApplication().runWriteAction(new Runnable() {
public void run() {
myBreakpointManager.removeBreakpoint(breakpoint);
}
});
}
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:XDebuggerBreakpointsContextProvider.java
示例18: saveTo
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@SuppressWarnings("ConstantConditions")
@Override
public void saveTo(@NotNull final XLineBreakpoint<CloudLineBreakpointProperties> ideBreakpoint) {
CloudLineBreakpointProperties properties = ideBreakpoint.getProperties();
if (properties == null) {
LOG.error(
"Could not save changes to the breakpoint because for some reason it does not have cloud "
+ "properties.");
return;
}
XBreakpointBase lineBreakpointImpl =
ideBreakpoint instanceof XBreakpointBase ? (XBreakpointBase) ideBreakpoint : null;
if (rootNode != null && lineBreakpointImpl != null) {
List<String> expressionsToSave = new ArrayList<String>();
List<? extends WatchNode> children = rootNode.getAllChildren();
if (children != null) {
for (WatchNode node : rootNode.getAllChildren()) {
expressionsToSave.add(node.getExpression().getExpression());
}
if (properties.setWatchExpressions(
expressionsToSave.toArray(new String[expressionsToSave.size()]))) {
lineBreakpointImpl.fireBreakpointChanged();
}
}
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:29,代码来源:BreakpointConfigurationPanel.java
示例19: getGroup
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public XBreakpointCustomGroup getGroup(@Nonnull final B breakpoint, @Nonnull final Collection<XBreakpointCustomGroup> groups) {
if (!(breakpoint instanceof XBreakpointBase)) {
return null;
}
String name = ((XBreakpointBase)breakpoint).getGroup();
if (StringUtil.isEmpty(name)) {
return null;
}
return new XBreakpointCustomGroup(name);
}
开发者ID:consulo,项目名称:consulo,代码行数:12,代码来源:XBreakpointCustomGroupingRule.java
示例20: init
import com.intellij.xdebugger.impl.breakpoints.XBreakpointBase; //导入依赖的package包/类
@Override
public void init(Project project, XBreakpointManager breakpointManager, @Nonnull XBreakpointBase breakpoint) {
super.init(project, breakpointManager, breakpoint);
myDependentBreakpointManager = ((XBreakpointManagerImpl)breakpointManager).getDependentBreakpointManager();
myMasterBreakpointChooser = new BreakpointChooser(project, new BreakpointChooser.Delegate() {
@Override
public void breakpointChosen(Project project, BreakpointItem breakpointItem) {
updateAfterBreakpointHitPanel();
}
}, null, getBreakpointItemsExceptMy());
myMasterBreakpointComboBoxPanel.add(myMasterBreakpointChooser.getComponent(), BorderLayout.CENTER);
}
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:XMasterBreakpointPanel.java
注:本文中的com.intellij.xdebugger.impl.breakpoints.XBreakpointBase类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论