org.eclipse.ui.ide.IGotoMarker Java Examples

The following examples show how to use org.eclipse.ui.ide.IGotoMarker. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ComponentEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #2
Source File: ERDiagramEditor.java    From ermaster-b with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Object getAdapter(Class type) {
	if (type == ZoomManager.class) {
		return ((ScalableFreeformRootEditPart) getGraphicalViewer()
				.getRootEditPart()).getZoomManager();
	}

	if (type == IContentOutlinePage.class) {
		return this.outlinePage;
	}

	if (type == IGotoMarker.class) {
		return this.gotoMaker;
	}

	if (type == IPropertySheetPage.class) {
		return this.propertySheetPage;
	}

	return super.getAdapter(type);
}
 
Example #3
Source File: IDEMultiPageReportEditor.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
public Object getAdapter( Class type )
{
	if ( type == ILibraryProvider.class )
	{
		return new LibraryProvider( );
	}

	if ( type == IReportProvider.class )
	{

		return getProvider( );
	}

	if ( type == IGotoMarker.class )
	{
		return new BIRTGotoMarker( this );
	}

	return super.getAdapter( type );
}
 
Example #4
Source File: ExtensionsEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("rawtypes")
	@Override
public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
Example #5
Source File: CoreEditor.java    From ifml-editor with MIT License 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("rawtypes")
	@Override
public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
Example #6
Source File: MainDiagramEditor.java    From erflute with Apache License 2.0 6 votes vote down vote up
@Override
public Object getAdapter(@SuppressWarnings("rawtypes") Class type) {
    if (type == ZoomManager.class) {
        return ((ScalableFreeformRootEditPart) getGraphicalViewer().getRootEditPart()).getZoomManager();
    }
    if (type == IContentOutlinePage.class) {
        return outlinePage;
    }
    if (type == IGotoMarker.class) {
        return gotoMaker;
    }
    if (type == IPropertySheetPage.class) {
        return propertySheetPage;
    }
    return super.getAdapter(type);
}
 
Example #7
Source File: EipEditor.java    From eip-designer with Apache License 2.0 6 votes vote down vote up
/**
   * This is how the framework determines which interfaces we implement.
   * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
   * @generated
   */
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class key) {
     if (key.equals(IContentOutlinePage.class)) {
        return showOutlineView() ? getContentOutlinePage() : null;
     }
     else if (key.equals(IPropertySheetPage.class)) {
        return getPropertySheetPage();
     }
     else if (key.equals(IGotoMarker.class)) {
        return this;
     }
     else {
        return super.getAdapter(key);
     }
  }
 
Example #8
Source File: ERDiagramMultiPageEditor.java    From ermasterr with Apache License 2.0 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public Object getAdapter(final Class type) {
    if (type == ERDiagram.class) {
        return diagram;

    } else if (type == IGotoMarker.class) {
        return gotoMaker;
    }

    else if (type == IPropertySheetPage.class) {
        return propertySheetPage;
    }

    return super.getAdapter(type);
}
 
Example #9
Source File: BeansEditor.java    From hybris-commerce-eclipse-plugin with Apache License 2.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("rawtypes")
@Override
public Object getAdapter(Class key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? getContentOutlinePage() : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	}
	else if (key.equals(IGotoMarker.class)) {
		return this;
	}
	else {
		return super.getAdapter(key);
	}
}
 
Example #10
Source File: CrossflowEditor.java    From scava with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public <T> T getAdapter(Class<T> key) {
	if (key.equals(IContentOutlinePage.class)) {
		return showOutlineView() ? key.cast(getContentOutlinePage()) : null;
	}
	else if (key.equals(IPropertySheetPage.class)) {
		return key.cast(getPropertySheetPage());
	}
	else if (key.equals(IGotoMarker.class)) {
		return key.cast(this);
	}
	else {
		return super.getAdapter(key);
	}
}
 
Example #11
Source File: ConfigurationEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #12
Source File: ItemEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #13
Source File: ProtocolEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #14
Source File: GlobalizeEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #15
Source File: SecurityEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #16
Source File: InfrastructureEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #17
Source File: RecipeEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #18
Source File: MemoryEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #19
Source File: WorldEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #20
Source File: OsgiEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #21
Source File: ProfileEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #22
Source File: SetupEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #23
Source File: DeploymentEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #24
Source File: VisualInterfaceEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #25
Source File: DetailViewEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #26
Source File: ChartEditor.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@SuppressWarnings ( "rawtypes" )
@Override
public Object getAdapter ( final Class key )
{
    if ( key.equals ( IContentOutlinePage.class ) )
    {
        return showOutlineView () ? getContentOutlinePage () : null;
    }
    else if ( key.equals ( IPropertySheetPage.class ) )
    {
        return getPropertySheetPage ();
    }
    else if ( key.equals ( IGotoMarker.class ) )
    {
        return this;
    }
    else
    {
        return super.getAdapter ( key );
    }
}
 
Example #27
Source File: GenconfEditor.java    From M2Doc with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Override
public Object getAdapter(Class key) {
    if (key.equals(IContentOutlinePage.class)) {
        return showOutlineView() ? getContentOutlinePage() : null;
    } else if (key.equals(IPropertySheetPage.class)) {
        return getPropertySheetPage();
    } else if (key.equals(IGotoMarker.class)) {
        return this;
    } else {
        return super.getAdapter(key);
    }
}
 
Example #28
Source File: TmfEventsEditor.java    From tracecompass with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public <T> T getAdapter(final Class<T> adapter) {
    if (IGotoMarker.class.equals(adapter)) {
        if (fTrace == null || fEventsTable == null) {
            return adapter.cast(this);
        }
        return adapter.cast(fEventsTable);
    } else if (IPropertySheetPage.class.equals(adapter)) {
        return adapter.cast(new UnsortedPropertySheetPage());
    }
    return super.getAdapter(adapter);
}
 
Example #29
Source File: BibtexEditor.java    From slr-toolkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This is how the framework determines which interfaces we implement. 
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Object getAdapter(Class key) {
	if (key.equals(IPropertySheetPage.class)) {
		return getPropertySheetPage();
	} else if (key.equals(IGotoMarker.class)) {
		throw new RuntimeException("Returning this as IGotoMarker.");
		//return this;
	} else {
		return super.getAdapter(key);
	}
}