1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

[282996] Fix execution environment, @since tag and exsd copyright date

This commit is contained in:
Martin Oberhuber 2009-07-10 12:47:22 +00:00
parent 3bfb71d9c1
commit e91b9910b3
3 changed files with 11 additions and 10 deletions

View file

@ -76,7 +76,7 @@
</appInfo> </appInfo>
</annotation> </annotation>
</attribute> </attribute>
<attribute name="hidden" type="boolean"> <attribute name="hidden" type="boolean" use="default" value="false">
<annotation> <annotation>
<documentation> <documentation>
When set to &quot;true&quot;, the terminal connector will not be visible to the user in connector selections. When set to &quot;true&quot;, the terminal connector will not be visible to the user in connector selections.
@ -95,7 +95,7 @@
<meta.section type="copyright"/> <meta.section type="copyright"/>
</appInfo> </appInfo>
<documentation> <documentation>
Copyright (c) 2006, 2008 Wind River Systems, Inc. and others. Copyright (c) 2006, 2009 Wind River Systems, Inc. and others.
All rights reserved. This program and the accompanying materials All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0 are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at which accompanies this distribution, and is available at
@ -104,7 +104,7 @@ http://www.eclipse.org/legal/epl-v10.html
Contributors: Contributors:
Michael Scharf (Wind River) - initial API and implementation Michael Scharf (Wind River) - initial API and implementation
Martin Oberhuber (Wind River) - fixed copyright headers and beautified Martin Oberhuber (Wind River) - fixed copyright headers and beautified
Uwe Stieber (Wind River) - [282996] [terminal][api] Add "hidden" attribute to terminal connector extension point Uwe Stieber (Wind River) - [282996] [terminal][api] Add &quot;hidden&quot; attribute to terminal connector extension point
</documentation> </documentation>
</annotation> </annotation>

View file

@ -60,10 +60,11 @@ public interface ITerminalConnector extends IAdaptable {
* @since org.eclipse.tm.terminal 2.0 * @since org.eclipse.tm.terminal 2.0
*/ */
String getName(); String getName();
/** /**
* @return <code>True</code> if the connector is not visible in user selections. * @return <code>True</code> if the connector is not visible in user
* @since org.eclipse.tm.terminal 3.1 * selections.
* @since org.eclipse.tm.terminal 3.0.1
*/ */
boolean isHidden(); boolean isHidden();

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2006, 2008 Wind River Systems, Inc. and others. * Copyright (c) 2006, 2009 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -22,12 +22,12 @@ import org.eclipse.tm.internal.terminal.provisional.api.provider.TerminalConnect
/** /**
* A factory to get {@link ITerminalConnector} instances. * A factory to get {@link ITerminalConnector} instances.
* *
* @author Michael Scharf * @author Michael Scharf
* *
* @noextend This class is not intended to be subclassed by clients. * @noextend This class is not intended to be subclassed by clients.
* @noinstantiate This class is not intended to be instantiated by clients. * @noinstantiate This class is not intended to be instantiated by clients.
* *
* <p> * <p>
* <strong>EXPERIMENTAL</strong>. This class or interface has been added as * <strong>EXPERIMENTAL</strong>. This class or interface has been added as
* part of a work in progress. There is no guarantee that this API will work or * part of a work in progress. There is no guarantee that this API will work or
@ -46,7 +46,7 @@ public class TerminalConnectorExtension {
name=id; name=id;
} }
String hidden = config.getAttribute("hidden"); //$NON-NLS-1$ String hidden = config.getAttribute("hidden"); //$NON-NLS-1$
boolean isHidden = hidden != null ? Boolean.parseBoolean(hidden) : false; boolean isHidden = hidden != null ? new Boolean(hidden).booleanValue() : false;
TerminalConnector.Factory factory=new TerminalConnector.Factory(){ TerminalConnector.Factory factory=new TerminalConnector.Factory(){
public TerminalConnectorImpl makeConnector() throws Exception { public TerminalConnectorImpl makeConnector() throws Exception {
return (TerminalConnectorImpl)config.createExecutableExtension("class"); //$NON-NLS-1$ return (TerminalConnectorImpl)config.createExecutableExtension("class"); //$NON-NLS-1$