Java源码示例:org.eclipse.emf.edit.ui.util.EditUIUtil
示例1
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例2
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例3
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例4
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例5
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例6
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例7
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例8
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例9
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例10
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例11
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例12
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例13
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例14
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput (), editingDomain.getResourceSet ().getURIConverter () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例15
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例16
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel ()
{
URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet ().getResource ( resourceURI, true );
}
catch ( Exception e )
{
exception = e;
resource = editingDomain.getResourceSet ().getResource ( resourceURI, false );
}
Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
resourceToDiagnosticMap.put ( resource, analyzeResourceProblems ( resource, exception ) );
}
editingDomain.getResourceSet ().eAdapters ().add ( problemIndicationAdapter );
}
示例17
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel() {
URI resourceURI = EditUIUtil.getURI(getEditorInput(), editingDomain.getResourceSet().getURIConverter());
Exception exception = null;
Resource resource = null;
try {
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
}
catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
示例18
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel() {
URI resourceURI = EditUIUtil.getURI(getEditorInput());
Exception exception = null;
Resource resource = null;
try {
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
}
catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
示例19
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel() {
URI resourceURI = EditUIUtil.getURI(getEditorInput());
Exception exception = null;
Resource resource = null;
try {
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
}
catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
示例20
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel() {
URI resourceURI = EditUIUtil.getURI(getEditorInput());
Exception exception = null;
Resource resource = null;
try {
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
}
catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
示例21
/**
* This is the method called to load a resource into the editing domain's resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void createModel() {
URI resourceURI = EditUIUtil.getURI(getEditorInput());
Exception exception = null;
Resource resource = null;
try {
// Load the resource through the editing domain.
//
resource = editingDomain.getResourceSet().getResource(resourceURI, true);
}
catch (Exception e) {
exception = e;
resource = editingDomain.getResourceSet().getResource(resourceURI, false);
}
Diagnostic diagnostic = analyzeResourceProblems(resource, exception);
if (diagnostic.getSeverity() != Diagnostic.OK) {
resourceToDiagnosticMap.put(resource, analyzeResourceProblems(resource, exception));
}
editingDomain.getResourceSet().eAdapters().add(problemIndicationAdapter);
}
示例22
/**
* This is the method called to load a resource into the editing domain's
* resource set based on the editor's input.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/
public void createModel ()
{
final URI resourceURI = EditUIUtil.getURI ( getEditorInput () );
Exception exception = null;
Resource resource = null;
try
{
// Load the resource through the editing domain.
//
resource = this.editingDomain.getResourceSet ().getResource ( resourceURI,
true );
}
catch ( final Exception e )
{
exception = e;
resource = this.editingDomain.getResourceSet ().getResource ( resourceURI,
false );
}
final Diagnostic diagnostic = analyzeResourceProblems ( resource, exception );
if ( diagnostic.getSeverity () != Diagnostic.OK )
{
this.resourceToDiagnosticMap.put ( resource,
analyzeResourceProblems ( resource, exception ) );
}
this.editingDomain.getResourceSet ().eAdapters ()
.add ( this.problemIndicationAdapter );
}