mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-28 02:33:18 +02:00
Bug 153089 - added copyright for DStoreServiceCommandShell
This commit is contained in:
parent
f3510bfea4
commit
4af17ed91b
1 changed files with 28 additions and 15 deletions
|
@ -1,3 +1,19 @@
|
||||||
|
/********************************************************************************
|
||||||
|
* Copyright (c) 2006 IBM Corporation. All rights reserved.
|
||||||
|
* This program and the accompanying materials are made available under the terms
|
||||||
|
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
|
||||||
|
* available at http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
*
|
||||||
|
* Initial Contributors:
|
||||||
|
* The following IBM employees contributed to the Remote System Explorer
|
||||||
|
* component that contains this file: David McKnight, Kushal Munir,
|
||||||
|
* Michael Berger, David Dykstal, Phil Coulthard, Don Yantzi, Eric Simpson,
|
||||||
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* {Name} (company) - description of contribution.
|
||||||
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.shells.dstore.model;
|
package org.eclipse.rse.subsystems.shells.dstore.model;
|
||||||
|
|
||||||
import org.eclipse.dstore.core.model.DataElement;
|
import org.eclipse.dstore.core.model.DataElement;
|
||||||
|
@ -50,23 +66,20 @@ public class DStoreServiceCommandShell extends ServiceCommandShell
|
||||||
if (lineObj instanceof DataElement)
|
if (lineObj instanceof DataElement)
|
||||||
{
|
{
|
||||||
DataElement line = (DataElement)lineObj;
|
DataElement line = (DataElement)lineObj;
|
||||||
if (line != null)
|
String type = line.getType();
|
||||||
|
if (event.isError())
|
||||||
{
|
{
|
||||||
String type = line.getType();
|
output = new RemoteError(this, type);
|
||||||
if (event.isError())
|
|
||||||
{
|
|
||||||
output = new RemoteError(this, type);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
output = new RemoteOutput(this, type);
|
|
||||||
}
|
|
||||||
output.setText(line.getName());
|
|
||||||
output.setAbsolutePath(line.getSource());
|
|
||||||
|
|
||||||
addOutput(output);
|
|
||||||
outputs[i] = output;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
output = new RemoteOutput(this, type);
|
||||||
|
}
|
||||||
|
output.setText(line.getName());
|
||||||
|
output.setAbsolutePath(line.getSource());
|
||||||
|
|
||||||
|
addOutput(output);
|
||||||
|
outputs[i] = output;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
|
if (_lastRefreshJob == null || _lastRefreshJob.isComplete())
|
||||||
|
|
Loading…
Add table
Reference in a new issue