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

Fix Daytime icon path and disconnect

This commit is contained in:
Martin Oberhuber 2006-07-18 09:56:49 +00:00
parent e941ef943d
commit fc320160ed
2 changed files with 7 additions and 9 deletions

View file

@ -70,7 +70,7 @@ public class Activator extends SystemBasePlugin {
protected void initializeImageRegistry() {
String path = getIconPath();
putImageInRegistry(ICON_ID_DAYTIME, path+"full/obj16/daytime.gif"); //$NON-NLS-1$
putImageInRegistry(ICON_ID_DAYTIME, path+"/full/obj16/daytime.gif"); //$NON-NLS-1$
}
}

View file

@ -22,6 +22,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.osgi.util.NLS;
import org.eclipse.rse.core.subsystems.AbstractConnectorService;
import org.eclipse.rse.core.subsystems.CommunicationsEvent;
import org.eclipse.rse.examples.daytime.DaytimeResources;
import org.eclipse.rse.examples.daytime.service.DaytimeService;
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
@ -46,11 +47,6 @@ public class DaytimeConnectorService extends AbstractConnectorService {
}
protected void internalConnect(IProgressMonitor monitor) throws Exception {
internalConnect();
}
private void internalConnect() throws Exception
{
fDaytimeService.setHostName(getHostName());
try {
fDaytimeService.getTimeOfDay();
@ -61,6 +57,8 @@ public class DaytimeConnectorService extends AbstractConnectorService {
//if no exception is thrown, we consider ourselves connected!
fIsConnected = true;
//TODO force a refresh of the Viewer in order to show the resource
// Fire comm event to signal state changed
notifyConnection();
}
public IDaytimeService getDaytimeService() {
@ -71,11 +69,11 @@ public class DaytimeConnectorService extends AbstractConnectorService {
return fIsConnected;
}
public void disconnect() {
public void internalDisconnect(IProgressMonitor monitor) throws Exception {
fIsConnected = false;
//TODO force a refresh of the Viewer in order to hide the resource
super.internalDisconnect(monitor);
}
public boolean hasRemoteServerLauncherProperties() {
return false;
}