Package org.eclipse.ui

Examples of org.eclipse.ui.IEditorMatchingStrategy


    // Phase 1: check editors that have their own matching strategy
    for (Iterator i = editorList.iterator(); i.hasNext();) {
      EditorReference editor = (EditorReference) i.next();
      IEditorDescriptor desc = editor.getDescriptor();
      if (desc != null) {
        IEditorMatchingStrategy matchingStrategy = desc
            .getEditorMatchingStrategy();
        if (matchingStrategy != null) {
          i.remove(); // We're handling this one here, so remove it
          // from the list.
          if (matchingStrategy.matches(editor, input)) {
            result.add(editor);
          }
        }
      }
    }
View Full Code Here


    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog.openWarning(shell,
            Messages.DispelDiagramEditor_SaveAsErrorTitle,
            Messages.DispelDiagramEditor_SaveAsErrorMessage);
        return;
      }
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog
            .openWarning(
                shell,
                eu.admire.visual.pmml.neuralnetwork._40.diagram.part.Messages.PMMLNeuralNetworkDiagramEditor_SaveAsErrorTitle,
                eu.admire.visual.pmml.neuralnetwork._40.diagram.part.Messages.PMMLNeuralNetworkDiagramEditor_SaveAsErrorMessage);
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog
            .openWarning(
                shell,
                eu.admire.visual.pmml._40.diagram.part.Messages.PMMLDiagramEditor_SaveAsErrorTitle,
                eu.admire.visual.pmml._40.diagram.part.Messages.PMMLDiagramEditor_SaveAsErrorMessage);
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog.openWarning(shell,
            Messages.DispelDiagramEditor_SaveAsErrorTitle,
            Messages.DispelDiagramEditor_SaveAsErrorMessage);
        return;
      }
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog
            .openWarning(
                shell,
                eu.admire.visual.pmml.treemodel._40.diagram.part.Messages.PMMLTreeModelDiagramEditor_SaveAsErrorTitle,
                eu.admire.visual.pmml.treemodel._40.diagram.part.Messages.PMMLTreeModelDiagramEditor_SaveAsErrorMessage);
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog
            .openWarning(
                shell,
                eu.admire.visual.pmml.radviz._40.diagram.part.Messages.PMMLDiagramEditor_SaveAsErrorTitle,
                eu.admire.visual.pmml.radviz._40.diagram.part.Messages.PMMLDiagramEditor_SaveAsErrorMessage);
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog.openWarning(shell,
            Messages.DispelDiagramEditor_SaveAsErrorTitle,
            Messages.DispelDiagramEditor_SaveAsErrorMessage);
        return;
      }
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog.openWarning(shell,
            Messages.CismodelDiagramEditor_SaveAsErrorTitle,
            Messages.CismodelDiagramEditor_SaveAsErrorMessage);
        return;
      }
View Full Code Here

    }
    IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
    IFile file = workspaceRoot.getFile(filePath);
    final IEditorInput newInput = new FileEditorInput(file);
    // Check if the editor is already open
    IEditorMatchingStrategy matchingStrategy = getEditorDescriptor()
        .getEditorMatchingStrategy();
    IEditorReference[] editorRefs = PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage()
        .getEditorReferences();
    for (int i = 0; i < editorRefs.length; i++) {
      if (matchingStrategy.matches(editorRefs[i], newInput)) {
        MessageDialog.openWarning(shell,
            Messages.CismodelDiagramEditor_SaveAsErrorTitle,
            Messages.CismodelDiagramEditor_SaveAsErrorMessage);
        return;
      }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.IEditorMatchingStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.